移到IIS 7时.svc Web服务中断

我试图将应用程序从IIS 6移动到IIS 7.我已经设法让所有的工作,除了Web服务(.svc文件)。 这些返回404例外。

在失败的请求日志中,我收到以下警告,其他所有内容都显示正常:

 131. MODULE_SET_RESPONSE_ERROR_STATUS Warning ModuleName="IsapiModule", Notification="EXECUTE_REQUEST_HANDLER", HttpStatus="404", HttpReason="Not Found", HttpSubStatus="0", ErrorCode="The operation completed successfully. (0x0)", ConfigExceptionInfo="" 10:32:51.134 

当我做一个GET请求service.svc它工作正常,并返回开始的页面:

 You have created a service. To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax: 

但是当通过POST请求向服务发出请求时,会导致404错误。

你确定你是服务器,一般的应用程序设置为允许POST动词吗? 这听起来很像服务器,你的应用程序或两者的组合或者没有明确设置为允许POST。

确保您的web.config文件包含获取在IIS 7或7.5上运行的ASP.NET应用程序所需的所有相关configuration设置