首页  编辑  

Bonobo.Git.Server安装后出现500.19错误

Tags: /计算机文档/软件应用技巧/   Date Created:
https://stackoverflow.com/questions/26633346/bonobo-git-server-http-error-500-19-code-0x80070021
Bonobo Git Server需要在安装IIS的时候,把所有组件都尽量打钩!
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Module
   IIS Web Core 

Notification
   BeginRequest 

Handler
   Not yet determined 

Error Code
   0x80070021 

Config Error
   不能在此路径中使用此配置节。如果在父级别上锁定了该节,便会出现这种情况。锁定是默认设置的(overrideModeDefault="Deny"),或者是通过包含 overrideMode="Deny" 或旧有的 allowOverride="false" 的位置标记明确设置的。  

Config File
   \\?\C:\inetpub\wwwroot\Bonobo.Git.Server\web.config 

Requested URL
   http://127.0.0.1:8080/Bonobo.Git.Server/ 
Physical Path
   C:\inetpub\wwwroot\Bonobo.Git.Server\ 
Logon Method
   Not yet determined 
Logon User
   Not yet determined 

Config Source:
   58:   <system.webServer>
   59:     <modules runAllManagedModulesForAllRequests="true">
   60:       <remove name="RoleManager" />

More Information:
This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error. 
View more information »

解决方法:
运行如下命令:
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/modules
接着出现如下错误:
HTTP Error 403.14 - Forbidden

The Web server is configured to not list the contents of this directory.

Most likely causes:
•A default document is not configured for the requested URL, and directory browsing is not enabled on the server.

Things you can try:
•If you do not want to enable directory browsing, ensure that a default document is configured and that the file exists.
• Enable directory browsing using IIS Manager. 1.Open IIS Manager.
2.In the Features view, double-click Directory Browsing.
3.On the Directory Browsing page, in the Actions pane, click Enable.

•Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file.

Detailed Error Information:

Module
   DirectoryListingModule 

Notification
   ExecuteRequestHandler 

Handler
   StaticFile 

Error Code
   0x00000000 

Requested URL
   http://127.0.0.1:8080/Bonobo.Git.Server/ 

Physical Path
   C:\inetpub\wwwroot\Bonobo.Git.Server\ 

Logon Method
   Anonymous 

Logon User
   Anonymous 

More Information:
This error occurs when a document is not specified in the URL, no default document is specified for the Web site or application, and directory listing is not enabled for the Web site or application. This setting may be disabled on purpose to secure the contents of the server. 
View more information »