开发者

ASP.net 2.0.50727 doesn't compile or process any .aspx pages

I've created a very simple test scenario - a开发者_StackOverflow社区 nice new empty web site without even a web.config. It returns 404 pages for my test .aspx page when I set the website to use ASP.NET 2.0.50727, but the page processes fine with ASP.NET 1.1.4322. Any plain .html pages are found and returned to the browser correctly. The sample page is very simple:

<html><head><title>Hello</title></head><body><%= "Hello" %></body></html>

I've got other real applications that originally showed the same signs of trouble (404 pages for the entire site) and I've tried doing remote debugging on this server, but it seems to never even load the application assemblies. I have so far tried rebooting, reinstalling IIS (which creates a new app pool and web site config), reinstalling .net 2.0.x and 3.5, and changing the app pool identity to Local System.

Also, nothing shows up in Windows Event Viewer (except that when I switch from 1.1 to 2.0, it shows "Restarting W3SVC").

I'm at a loss. How can I troubleshoot IIS itself? Can I enable some sort of IIS or ASP.NET logging to see what the problem might be?

Some other details:

  • Windows 2003 Server
  • IIS 7
  • ASP.NET 2.0.50727, 3.0, 3.5 installed


I would firstly check that the application pool is configured to use .NET Framework 2.0. If that is the case and it is not working, I would try running the ASP.NET IIS Registration tool to reinstall the ASP.NET IIS ISAPI bindings:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i


If you are using IIS 7, have you configured the site to run in ASP.NET 2.0 with Classic Pipeline Mode?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜