简体   繁体   English

Windows Server 2008 R2上的WCF服务问题

[英]WCF Service Issue on Windows Server 2008 R2

I had a WCF Service running without issue on Windows Server 2008 and just moved that service over to a Windows Server 2008 R2 instance. 我在Windows Server 2008上运行了没有问题的WCF服务,只是将该服务移到了Windows Server 2008 R2实例上。 The domain name for the site and service were pointed to the new service and the ASP.NET site works just fine. 站点和服务的域名指向新服务,ASP.NET站点工作得很好。 That stated, the WCF Service keeps throwing Endpoint not found responses when trying to run the wsdl=wsdl10 command. 这就是说,在尝试运行wsdl = wsdl10命令时,WCF服务不断抛出Endpoint未找到的响应。

I tried installing the ServiceModelReg in the v3.0/Windows Communication Foundation directory; 我尝试在v3.0 / Windows Communication Foundation目录中安装ServiceModelReg; editing the applicationHost.config file to add in the .svc mimeType, I checked the Handler Mappings but SVC was already there. 编辑applicationHost.config文件以添加.svc mimeType,我检查了Handler Mappings但SVC已经存在。 And I tried running aspnet_regiis -iru from the 4.0 directory. 我尝试从4.0目录运行aspnet_regiis -iru。

Nothing worked. 没有任何效果。

I then tried removing and adding back in the WCF Activation and Process Activation Features - no help there. 然后我尝试删除并添加回WCF激活和进程激活功能 - 没有帮助。 I rechecked the web.config file but it is using domain names and not IP addresses to define the endpoint's location. 我重新检查了web.config文件,但它使用域名而不是IP地址来定义端点的位置。

I am completely stuck - does anybody have any ideas? 我完全陷入困境 - 有没有人有任何想法?

As it turns out, you need to add the Application Server role to the web server (http://technet.microsoft.com/en-us/library/cc754024%28v=ws.10%29.aspx) in Windows Server 2008 and above. 事实证明,您需要在Windows Server 2008中将Application Server角色添加到Web服务器(http://technet.microsoft.com/en-us/library/cc754024%28v=ws.10%29.aspx)以上。 That takes care of most of the issues. 这解决了大多数问题。

Second, all files - including DLLs, images, everything - in the folder containing the website needs to provide Read & Execute privileges to the IUsers group. 其次,包含网站的文件夹中的所有文件(包括DLL,图像,所有文件)都需要为IUsers组提供读取和执行权限。

Finally if you are using any 3rd party DLLs, you need to make sure IIS has full control - http://learn.iis.net/page.aspx/624/application-pool-identities/ 最后,如果您使用任何第三方DLL,您需要确保IIS具有完全控制权 - http://learn.iis.net/page.aspx/624/application-pool-identities/

I would like to add a fourth option in this. 我想在此添加第四个选项。

My AJAX-enabled WCF service was not working, because on the server the application has a secure SSL connection. 我的AJAX启用的WCF服务无法正常工作,因为在服务器上,应用程序具有安全的SSL连接。 You can find more here: MSDN 你可以在这里找到更多: MSDN

It states: 它指出:

IIS-hosted WCF services can make use of HTTP transport security (for example, HTTPS and HTTP authentication schemes such as Basic, Digest, and Windows Integrated Authentication) as long as the IIS virtual directory that contains the service supports those settings. 只要包含该服务的IIS虚拟目录支持这些设置,IIS托管的WCF服务就可以使用HTTP传输安全性(例如,HTTPS和HTTP身份验证方案,如Basic,Digest和Windows集成身份验证)。 The HTTP Transport Security settings on a hosted endpoint's binding must match the transport security settings on the IIS virtual directory that contains it. 托管端点绑定上的HTTP传输安全性设置必须与包含它的IIS虚拟目录上的传输安全性设置相匹配。

Here is an approach to solve it: How to programmatically configure SSL for WCF Services 以下是解决此问题的方法: 如何以编程方式为WCF服务配置SSL

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

相关问题 显示Windows Server 2008 R2 - display windows server 2008 R2 Windows Server 2008 R2中的ODBC连接 - ODBC connection in Windows Server 2008 R2 在UAC已打开的服务器(Windows 2008 R2)上重新启动Windows服务(从ASP.NET应用程序) - Restart windows service on server (Windows 2008 R2) having UAC turned ON (from ASP.NET application) Crystal Reports使用SAP Crystal Reports 2013 Viewer将现有应用程序从Windows Server 2008 R2升级到2012 R2的问题 - Issue with Crystal Reports upgrading existing app from Windows Server 2008 R2 to 2012 R2 with SAP Crystal Reports 2013 Viewer Windows Server 2008 R2上的.NET 2.0 Web Service找不到模块异常 - Module Not Found Exception From .NET 2.0 Web Service On Windows Server 2008 R2 Visual Studio —在Windows Server 2008 R2和Windows 7上 - Visual Studio — On Windows Server 2008 R2 vs. Windows 7 在SQL Server 2008 R2中复制数据库问题 - Copying db in SQL Server 2008 R2 issue 在Windows Server 2008 R2上托管Web应用程序 - Hosting web application on windows server 2008 R2 asp.net中Windows Server 2008 R2上的PDF缩略图 - PDF Thumbnails on windows server 2008 R2 in asp.net 慢响应网站Windows Server 2008 r2 - slow response website windows server 2008 r2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM