在Windows Server 2008上设置Mercurial时出错

我想建立一个Mercurial SC服务器并按照此处的说明进行操作:http // stackoverflow.com / questions / 818571 / how-to-setup-mercurial-and-hgwebdir-on-iis

我已经多次检查了所有设置,并且在完成配置后似乎无法通过此错误.任何意见将是有益的.谢谢.

Server Error in Application "DEFAULT WEB SITE/HG"Internet information Services 7.5

Error Summary
HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "Traceback (most recent call last): File "C:\inetpub\hgcgi\hgwebdir.cgi",line 12,in <module> from mercurial import demandimport; demandimport.enable() ImportError: No module named mercurial ". Detailed Error informationModule CgiModule
Notification ExecuteRequestHandler
Handler Python 2.5
**Error Code 0x00000001**
Requested URL http://localhost:80/hg/hgwebdir.cgi
Physical Path C:\inetpub\hgcgi\hgwebdir.cgi
logon Method Anonymous
logon User Anonymous
 Most likely causes:
The CGI process was shut down or terminated unexpectedly before it finished processing the request.
The CGI process has a flaw and does not return a complete set of HTTP headers.
 Things you can try:
Check the event logs on the system to see whether the CGI process is shutting down unexpectedly.
Troubleshoot the CGI application to determine why it is not sending a complete set of HTTP headers.
很长的一行中的追溯表示在PYTHON_PATH中找不到mercurial.尝试从 HgWebDirStopByStep页面的步骤5.1中看到hgwebdir.cgi编辑.
# adjust python path if not a system-wide install:
import sys
sys.path.insert(0,"c:/dev/Mercurial/lib")

当然,在哪里调整插入的路径元素以引用您的mercurial库文件所在的位置.

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...