简体   繁体   English

在 IIS 上托管在 VS2010 中创建的 WCF 服务

[英]Hosting WCF service created in VS2010 on IIS

I have been through tons of threads and am unable to find the correct answer for my question.我已经通过了大量的线程,但无法为我的问题找到正确的答案。 I have created a very simple WCF service on my development machine using visual studio 2010. The service works correctly when using VS to host it.我使用 Visual Studio 2010 在我的开发机器上创建了一个非常简单的 WCF 服务。当使用 VS 托管它时,该服务工作正常。 I have even had success creating a small c# application to consume this service.我什至成功地创建了一个小型 c# 应用程序来使用此服务。 However I now need to move this service to IIS on my work's development server.但是,我现在需要将此服务移动到我工作的开发服务器上的 IIS。 I have tried following several guides online but nothing has worked so far.我已经尝试在网上遵循几个指南,但到目前为止没有任何效果。 Any help would be greatly appreciated.任何帮助将不胜感激。

if you are able to execute your wcf service using WCFTestClient successfully and not on IIS如果您能够成功地使用 WCFTestClient 而不是在 IIS 上执行您的 wcf 服务

that means problem is in endpoint configuration.这意味着问题出在端点配置中。 I suggest have a look once again endpoint suggestions.我建议再看看端点建议。

fore more info see hosting wcf service in IIS更多信息请参见在 IIS 中托管 wcf 服务

Using Web Deploy to publish from Visual Studio to a remote web server requires additional installation of Web Deploy on the server http://www.iis.net/learn/install/installing-publishing-technologies/installing-and-configuring-web-deploy使用 Web Deploy 从 Visual Studio 发布到远程 Web 服务器需要在服务器上额外安装 Web Deploy http://www.iis.net/learn/install/installing-publishing-technologies/installing-and-configuring-web-部署

Visual Studio generates an output log during the web deploy publish that may have additional information on why it is failing. Visual Studio 在 Web 部署发布期间生成输出日志,其中可能包含有关失败原因的其他信息。 Sometimes there are permission issues to work through as well http://blogs.iis.net/krolson/archive/2009/11/04/using-iis-manager-accounts-for-web-deployment-tool-msdeploy-delegation.aspx有时还有权限问题需要解决http://blogs.iis.net/krolson/archive/2009/11/04/using-iis-manager-accounts-for-web-deployment-tool-msdeploy-delegation。 aspx

You can also generate a Web Deploy Package with Visual Studio and manually deploy it to the serverhttp://msdn.microsoft.com/en-us/library/dd465323(v=vs.110).aspx您还可以使用 Visual Studio 生成 Web 部署包并手动将其部署到服务器http://msdn.microsoft.com/en-us/library/dd465323(v=vs.110).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM