Solved

IIS 7.5 Default Document Login.aspx disappears randomly

Posted on 2013-06-17
4
938 Views
Last Modified: 2013-06-29
We have a production website running in IIS 7.5, on Windows Server 2008 R2. In IIS, in the website's settings, we added Login.aspx to the top of the Default Document list. However, on several seemingly random occasions, Login.aspx has disappeared from the Default Document list as we have had to manually re-add it after finding that the website was not loading properly due to this. Also something to note is that the Web.config file, under "<system.webServer>", specifies "<add value="Login.aspx" />". Not sure if that creates some sort of conflict, but either way, why is our Login.aspx Default Document disappearing? Thanks very much.
0
Comment
Question by:cvistas
4 Comments
 
LVL 11

Expert Comment

by:Sanjay Santoki
ID: 39256013
Hello,

Since IIS 7; there are lots of improvement done by the Microsoft so that developer don't need to relay more on Admin. There are lots of things which can be managed from within web.config file which would be loaded upon the request. Ie. Default Docs.

I would suggest you to please see if there any conflict in web.config which is causing IIS not to read that particular section.

You can try adding plain web.config file having only default docs specific code to test on IIS whether it is working or not.

Regards,
Sanjay Santoki
0
 
LVL 23

Accepted Solution

by:
Roopesh Reddy earned 500 total points
ID: 39256878
Hi,

Are you sure that you haven't recreated the site etc., If not, it should be working fine. Moreover, instead of doing it manually, you can define the same in web.config file and it takes care of every thing!

http://www.iis.net/configreference/system.webserver/defaultdocument#002

Hope it helps u...
0
 
LVL 9

Expert Comment

by:tanujchandna
ID: 39276973
Hi,

After uploading web.config file on server, if you make any changes in your website thru IIS, it will applicable on your web.config as IIS7 have this facility. Its seems to me that you are directly working on your website thru IIS that's why problem is occurring. What you can do is, Add login.aspx directly in default documents on server and you should not face this issue again.
0
 

Author Closing Comment

by:cvistas
ID: 39286955
We did this and have since not had any problems.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now