开发者

Change to Asp.net 4.0 got "The page cannot be found"

I've just change the existing virtual dir ASP.net version from 2.0 to 4.0 and browsed previous working web page.

But right now I'm getting an error saying "HTTP Error 404 - File or directory not found."

Any ideas? 开发者_开发知识库

Revert it back to ASP.net 2.0, problem went away. I've also executed "aspnet_regiis.exe -i", it didn't work.


What's the path to your home page? Check that your home page is included as a "Default Document" in IIS. If you're using an Application Pool, try changing the Managed Pipeline Mode to Classic, and also check that the correct .NET version is set for it (App Pool basic settings).


At the server level, in INETMGR, select feature "ISAPI and CGI Restrictions" and set all .NET 4.0 entries to "Allow"


  1. Click "Web Service Extensions"
  2. Select "ASP.NET v4.0"
  3. Click "Allow" button

Change to Asp.net 4.0 got "The page cannot be found"

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜