Web services WCF服务';找不到资源;出版后
我有一个MVC网站,需要运行WCF服务从外部源导入数据 该服务位于应用程序根目录中的“Services”目录中。 (http://(站点名称)/Services/Importer.svc-合同位于同一文件夹中) 在我的开发环境中,这一切都可以正常工作,但当我将其发布到web服务器时,它就遇到了404错误 我发现很多人都有同样的问题,但他们的解决方案都不适合我 这是我的web.config:Web services WCF服务';找不到资源;出版后,web-services,wcf,deployment,publish,Web Services,Wcf,Deployment,Publish,我有一个MVC网站,需要运行WCF服务从外部源导入数据 该服务位于应用程序根目录中的“Services”目录中。 (http://(站点名称)/Services/Importer.svc-合同位于同一文件夹中) 在我的开发环境中,这一切都可以正常工作,但当我将其发布到web服务器时,它就遇到了404错误 我发现很多人都有同样的问题,但他们的解决方案都不适合我 这是我的web.config: <system.serviceModel> <services>
<system.serviceModel>
<services>
<service name="APP_NAME.Services.Importer">
<endpoint address="" binding="wsHttpBinding" bindingConfiguration=""
contract="APP_NAME.Services.IImporter" />
<endpoint address="mex" binding="mexHttpBinding" bindingConfiguration=""
contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"
multipleSiteBindingsEnabled="true" />
</system.serviceModel>
任何建议和指导都将不胜感激。404是一个“未找到”错误,意味着您的客户无法联系到您的主机。所以在调试时,您必须从这里开始。你可能需要小提琴手来观察来往的车辆。您可能还需要在客户端和主机端打开额外的日志来捕获详细信息。我已经尝试过了,我无法从fiddler那里获得任何有用的信息。