ASP.NET Problem with Default Page

G

Guest

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
 
S

Steven Cheng[MSFT]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top