2012-03-31 56 views
0

我跟着第4部分here步骤来尝试和本地建立一个网站,但我不断收到以下错误:“HTTP错误500.19 - 内部服务器错误”当试图拥有一个网站在IIS 7

HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.

首先,我尝试输入物理目录作为我的visual studio项目存储的文件夹,因为它包含网页,并且它是一项正在进行的工作(以避免每次都要重新发布)。这不起作用,所以我然后将网站发布到wwwroot文件夹,并将物理目录更改为此,但它给了我同样的错误。

我读的问题可能有事情做与应用程序池使用该框架的版本,但我既V2和V4,并继续得到同样的错误(PS哪个版本我应该是我该如何检查试了一下使用?)。

这是我第一次尝试这个,我很迷茫,对此事的任何帮助将不胜感激。

编辑:我删除从我的web.config

下面的代码,我现在出现以下错误

HTTP Error 401.3 - Unauthorized You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.

编辑2:当我尝试浏览我的网站上的网页,说http://localhost/SponsorAChild/Login.aspx我现在得到以下错误:

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error:

Line 16: Line 17: Line 18: Line 19: Line 20:

如在此question但更改应用程序池一个,它使用V4框架给人的第一500.19错误再次

+0

同样的错误? http://stackoverflow.com/questions/2054582/iis-7-0-error-500-19-internal-server-error – shriek 2012-03-31 17:32:15

+0

可能是由于包含您的ASP.NET网站的服务器上的文件夹的权限 - 它需要我认为拥有读取和执行权限的IUSER或NETWORK SERVICE。 – 2012-04-01 00:53:48

回答

0

后你得到了错误500.19,并运行此命令?

aspnet_regiis.exe -i 
相关问题