470,631 Members | 1,788 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,631 developers. It's quick & easy.

ASP.NET Problem with Default Page

I have a very strange problem occurring on a couple of servers

I have an ASP.NET application written in C# running on IIS 5.0 with Windows 2000 Server. This is the first ASP.NET application running on these servers. There are actually 4 servers that this application has been installed on. The application is a simple ASPX page with a code-behind DLL. The one ASPX page I have is named default.aspx. It uses Windows authentication (anonymous access and basic authentication are not checked in IIS, plus Windows authentication has been set in the web.config file). Two of the servers run inside of our network and are having no problems. However, the other two servers run in the DMZ of our corporate network. I have no idea if that has anything to do with the problem, but I wanted to mention it in case it mattered

On the two servers in the DMZ, I am able to reach the ASP.NET page (default.aspx) by navigating like so

http://servername/ApplicationName

I then see the default.aspx page, which executes code and returns properly. However, if I navigate to the page like this

http://servername/Application/Name/default.asp

I get a page not found error. If I click on any of the links on the page that works (as mentioned above), it is programmed to take me to default.aspx with a bunch of stuff in the query string, so I also get a page not found. I can't figure out why the page works fine if I use the default document (which is set to default.aspx, along with several other documents in IIS), but I get page not found if I try to navigate directly to the page.

I haven't had a chance to try playing around with it, like renaming default.aspx to something else and trying it, and these are not servers I can just play around on, so I'm wondering if anyone has seen this issue before

Thank you

Michael McGuire
Nov 18 '05 #1
2 2208
Hi Michael,

From your description, you have an ASP.NET Web Application deployed on some
Win2k server machine. And you've set Default Documents in the IIS folder
for the "default.aspx" of the web application. However, currently , you
found that you can visit the default page via
http://servername/ApplicationName/
but unable to visit it via
http://servername/ApplicationName/default.aspx
and also, the link on the page will also not work and return page not found
error ,yes?

I do feel abit surprised on this behavior. Currently I haven't any definite
ideas on this problem, but I think you can confirm the following things:
1. You mentioned you're unable to visit the page via
http://servername/Application/Name/default.aspx , are you typing an
addition "/" by mistake?

2. Please try add another type of the default document such as a
default.asp or default.html and perform the same test on them to see
whether the same problem will occur.

3. Try use code to redirect page such as
Response.Redirect(Server.MapPath("~/default.aspx ");
or use full absolute path of the default page.

4. Also, since you mentioned that those links to other pages on the
default page also not work, would you try put some image <img> tags on the
page to see whether it can display correctly.

5. Will the problem also occur if we deployed another asp.net web
application on the server?

Please check out the above things, if you have any other findings, please
also feel free to post here . Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx


Nov 18 '05 #2
Hi Mike,

Thanks for the followup. Hope the problem is just as you mentioned and if
you have any new problem, please feel free to post here .Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Goober | last post: by
reply views Thread by i_have_control | last post: by
2 posts views Thread by Luke Dalessandro | last post: by
1 post views Thread by needin4mation | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.