ihorko
ihorko

Reputation: 6945

IIS 7.5 doesn't open aspx, html pages

I have two ASP.NET sites on my IIS 7 (Windows Server 2008 R2)

First one works perfect, it opens default.aspx page any other aspx pages as well as html, but second site doesn't open neither .aspx nor .html links, so for example if I try to open http://mysite.com/Default.aspx url, it just shows an empty page without any content or any error.

What it could be? Thanks.

Upvotes: 1

Views: 3325

Answers (2)

Tomas Voracek
Tomas Voracek

Reputation: 5914

Well, many things can be broken.

Few tips:

  • Start Chrome, Firefox (with Firebug addon) or Fiddler or any other http proxy and check what the server is sending - is it HTTP 200, 404, something else?
  • check IIS logs c:\inetpub\logs\Logfiles\w3svc
  • check EventLog
  • compare httpmodules in working website with those of the website which is not working
  • ensure correct app pool with correct .net version is set for site
  • try to convert website to webapp
  • if all fails, delete website and create it from scratch. If it works it may suggest that IIS metabase was damaged.

Upvotes: 2

Harold Javier
Harold Javier

Reputation: 887

Another workaround that I suggest:

Open the "hosts" file using Notepad in C:\Windows\System32\Drivers\etc\hosts

then add

127.0.0.1 YourWebsite

Next, try to add binding to a site as suggested here at (http://technet.microsoft.com/en-us/library/cc731692%28v=WS.10%29.aspx)

I hope it helps you.

Upvotes: 0

Related Questions