ASP.Net页面不';在iis8上加载

ASP.Net页面不';在iis8上加载,asp.net,iis-8,windows-server-2012,Asp.net,Iis 8,Windows Server 2012,我正在Windows Server 2012上进行应用程序测试,以检查我们的web应用程序(在.Net 4中)的兼容性,并且在加载任何ASPX页面时遇到问题。我多次尝试从服务器管理器卸载并重新安装所有.Net、IIS和ASP.Net角色。我还发现,aspnet\u regis在Server2012中不再起作用,它只是给出了一条使用角色/功能页的消息。我不知所措,还有人试过IIS 8吗 我得到以下信息: HTTP Error 404.3 - Not Found The page you are

我正在Windows Server 2012上进行应用程序测试,以检查我们的web应用程序(在.Net 4中)的兼容性,并且在加载任何ASPX页面时遇到问题。我多次尝试从服务器管理器卸载并重新安装所有.Net、IIS和ASP.Net角色。我还发现,
aspnet\u regis
在Server2012中不再起作用,它只是给出了一条使用角色/功能页的消息。我不知所措,还有人试过IIS 8吗

我得到以下信息:

HTTP Error 404.3 - Not Found

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

Most likely causes:
•It is possible that a handler mapping is missing. By default, the static file handler processes all content.
•The feature you are trying to use may not be installed.
•The appropriate MIME map is not enabled for the Web site or application. (Warning: Do not create a MIME map for content that users should not download, such as .ASPX pages or .config files.)
•If ASP.NET is not installed.

Things you can try:
•In system.webServer/handlers: ◦Ensure that the expected handler for the current page is mapped.
    ◦Pay extra attention to preconditions (for example, runtimeVersion, pipelineMode, bitness) and compare them to the settings for your application pool.
    ◦Pay extra attention to typographical errors in the expected handler line.

•Please verify that the feature you are trying to use is installed.
• Verify that the MIME map is enabled or add the MIME map for the Web site using the command-line tool appcmd.exe. 
    1.To set a MIME type, use the following syntax: %SystemRoot%\windows\system32\inetsrv\appcmd set config /section:staticContent /+[fileExtension='string',mimeType='string']
    2.The variable fileExtension string is the file name extension and the variable mimeType string is the file type description.
    3.For example, to add a MIME map for a file which has the extension ".xyz": appcmd set config /section:staticContent /+[fileExtension='.xyz',mimeType='text/plain']
    Warning: Ensure that this MIME mapping is needed for your Web server before adding it to the list. Configuration files such as .CONFIG or dynamic scripting pages such as .ASP or .ASPX, should not be downloaded directly and should always be processed through a handler. Other files such as database files or those used to store configuration, like .XML or .MDF, are sometimes used to store configuration information. Determine if clients can download these file types before enabling them. 
 •Install ASP.NET.
 •Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here. 

 Detailed Error Information:

 Module
    StaticFileModule 

 Notification
    ExecuteRequestHandler 

 Handler
    StaticFile 

 Error Code
    0x80070032 

 Requested URL
    http://localhost:80/login.aspx 

 Physical Path
    C:\Inetpub\WEBSITE\login.aspx 

 Logon Method
    Anonymous 

 Logon User
    Anonymous 

好吧,在过去几天与这个问题斗争之后,我将VM重置为基本快照,这是我在完成OS安装后立即拍摄的。我按照我第一次运行时记录的步骤安装了IIS和应用程序开发功能,然后安装了我的应用程序,现在它可以工作了。我不知道为什么,也不知道这一次它是如何工作的,但至少它现在起作用了