Geeks With Blogs
Pankaj Sharma Staying Connected In A Disconnected World...

Recently i faced a bizarre problem in IIS 7.0 where none of my configured local sites worked. Hitting the starting URL of each application took me to the general error page. Infact when i tried to check if IIS is running or not i tried with http://localhost. But no success i still got the same error page.



The IIS Manager was launched and checked if everything was okay? I found everything perfect over there. But still IIS was not working and none of my application was launching.

Then i tried several workarounds.

    * Thought that binding of IIS might got lost so i fired the aspnet_regiis -i command from VS comand Prompt to re register the IIS with the lastest version of .NET.
    * Uninstalled the IIS from the machine, then reinstalled the IIS. It did not work. Then again i executed the command above to register the IIS.

Inspite of trying everything possible as per my understanding it did not seem to work. Then i suddenly found that the Default Web Site is not running. So i tried to start it by right clicking on the default site node and then selecting the Start option from Manage Web Site.



Infact the situation got worse and i was staring another error pop up that looked like



That turned me crazy, as everything was working until last time. What i did that really crashed everything. I investigated and i found out that i created a new solution in VS 2010 and used the URL as it is that i was using to visit the application in IE. It contained the %20 in the root URL of the application. Web Browser replaces the space in the URL with the equivalent code that is %20.



That typographical error in URL caused all the problem.

I removed the Virutal Directory URL http://localhost/My%20Application from IIS by right clicking, selecting Remove. Then recreated one with correct Virtual URL http://localhost/My Application.

It then allowed to start the Default Web Site successfully and silently. Everything worked perfectly afterwards. I could see the default page of IIS start on hitting the http:/localhost. All my applications started working.

It seems that IIS does not like special characters in the Virtual Directory URLs. I will investigate it further as what was wrong with that encoded URL.

Posted on Friday, April 15, 2011 8:56 PM IIS | Back to top


Comments on this post: Sudden crash of IIS, due to improper virtual directory URL.

# re: Sudden crash of IIS, due to improper virtual directory URL.
Requesting Gravatar...
Its a great happiness reading your post. Its full of information I am looking for and I love to post a comment that "The content of your post is grand" Great work .
Left by Visa Specialists on Dec 10, 2011 12:15 PM

# re: Sudden crash of IIS, due to improper virtual directory URL.
Requesting Gravatar...
This is a Good writing, gorgeous pictures, wow, it is wonderful,I'm involved in these right,I have found it very useful, looking forward to you as soon as likely to update your works! we will always support.
Left by Reflection of love on Jan 11, 2012 9:54 PM

# re: Sudden crash of IIS, due to improper virtual directory URL.
Requesting Gravatar...
it is wonderful,I'm involved in these right,I have found it very useful, observing forward to you as soon as likely to update your works! we will always support.
Left by stairs renovation on Jan 19, 2012 10:09 PM

# Latest technology news
Requesting Gravatar...
Techtopedia.com provides news about latest technologies and new inventions in all technologies to all over the world.

Left by Technology News on Jan 20, 2012 2:52 PM

# immigration services canada
Requesting Gravatar...

Accept that some days you're the pigeon, and some days you're the statue
Left by david on Jan 31, 2012 2:54 PM

# Hi
Requesting Gravatar...
I have found it very useful, looking forward to you as soon as likely to update your works! we will always support.
Left by reconstructive framingham on Mar 21, 2012 4:13 PM

Your comment:
 (will show your gravatar)


Copyright © pankajsharma | Powered by: GeeksWithBlogs.net | Join free