I have windows server 2008 with IIS7.
I was having problems getting a new website to work in today...I've been troublshooting for about 2 hours now and haven't come up with anything.
Heres what is weird:
I have a working website running on IIS named "TI." It points to the directory "C:\Websites\TI\web". This website works perfectly!!!
If I:
- copy this directory then paste it as "C:\Websites\TI\web - Copy"
- go to IIS Manager
- "Add Web Site"
- then select the "web - copy" directory
- point a new domain to it
- fireup my browser to point to the site
- I get: "500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed."
Any ideas as to what the problem could be?
Imma 'bout gunna break this here darned keyboard over my face outta frustration.
UPDATE
If I change the original site ("TI") to point to the new copy of itself ("web - Copy") the website will work fine! WTF?
Maybe try something that doesn't contain spaces or special characters? It worked for me once.
The web sites may be configured to use the same HTTP port without setting up a host header in IIS. If you check for ASP.NET errors in the event viewer you may find an error stating that IIS failed to set up the new website using those particular bindings.
If you stop the original website, then create the new one does it work?
It ended up being a problem with windows' Permissions. Resetting them did the trick.