473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 2307
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hypo | last post by:
Im relatilvly new to a web programming in general, and here's the situation i have: I have a default page with dynamic content, and one button with onclick code something like this: { // do...
2
by: Goober | last post by:
I have the following default.aspx page that works properly. However, what I want to do is to link the graphics within it (that are hard coded now in the default web page) to our corporate...
4
by: | last post by:
I have earlier used an HttpModule that did URL rewrites on the BeginRequest event. Now I am trying to use the same module in a different application on a new and upgraded machine (winxp sp2). ...
0
by: i_have_control | last post by:
I'd be grateful for any input on this one: I have three web domains. The destinations of two are set to folders on the first, though that fact is transparent to the user (i.e: it does not...
7
by: Timo Haberkern | last post by:
Hi there, i have some troubles with my TSearch2 Installation. I have done this installation as described in http://www.sai.msu.su/~megera/oddmuse/index.cgi/Tsearch_V2_compound_words...
2
by: Luke Dalessandro | last post by:
I have an application with the following layout /root/ /root/Default.aspx /root/web.config /root/child/ /root/child/web.config web.config has a custom configuration section "testSection"...
1
by: needin4mation | last post by:
protected void Page_Load(object sender, EventArgs e) { TextBox mpTextBox = (TextBox)(Master.FindControl("txtFreeSearch")); Response.Write("mp" + mpTextBox.Text); //only works the second time ...
2
by: David | last post by:
Sent this to alt.php a couple of days back, but doesn't look like I'll get an answer, so trying here. I'm trying to convert a script to use friendly URLs, I've done this before, but my PHP...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.