简体   繁体   English

WCF:无法添加服务。 可能无法访问服务元数据。 确保您的服务正在运行并公开元数据

[英]WCF: Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata

I created a simple WCF application. 我创建了一个简单的WCF应用程序。 The platform is set to Any CPU. 该平台设置为Any CPU。 I can build and run the application successfully. 我可以成功构建和运行应用程序。 But when I change the platform to x64 I get the following error: 但是当我将平台更改为x64时,我收到以下错误:

Failed to add a service. 无法添加服务。 Service metadata may not be accessible. 可能无法访问服务元数据。 Make sure your service is running and exposing metadata 确保您的服务正在运行并公开元数据

My system has 64 bit OS. 我的系统有64位操作系统。 Actually i have to set the platform to x64 to laod a dll in my app. 实际上我必须将平台设置为x64以在我的应用程序中添加一个dll。 What would be the possible reasons for this error. 这个错误的可能原因是什么? Please help me. 请帮我。

I am using IIS Express. 我正在使用IIS Express。

使用IIS Express和VS2013时,需要在调试x64 Web项目时检查VS Options中的以下选项:

Tools -> Options -> Projects and Solutions -> Web Projects -> Use the 64 bit version of IIS Express for web sites and projects

IIS -> Advanced Settings of Application Pool. IIS - >应用程序池的高级设置。 Set "Enable 32-bit Applications" to true. 将“启用32位应用程序”设置为true。 Also check if the Service is depending on a library that is not x64. 还要检查服务是否依赖于非x64的库。

暂无
暂无

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

相关问题 添加服务失败。 服务元数据可能无法访问。 确保您的服务正在运行并公开元数据 - Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata WCF测试客户端:无法添加服务。可能无法访问服务元数据。确保您的服务正在运行并公开元数据 - WCF Test Client : Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata WCF无法添加服务。 可能无法访问服务元数据。 确保您的服务正在运行并公开元数据 - WCF Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata 添加服务失败。 服务元数据可能无法访问。 确保您的服务正在运行并公开元数据。 WCF错误 - Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata. WCF Error 获取'无法添加服务。 服务元数据可能无法访问。 测试 WCF 项目时出错 - Getting 'Failed to add a service. Service metadata may not be accessible.' error when testing a WCF project WCF:无法添加服务。 服务元数据可能无法访问 - WCF:Failed to add a service. Service metadata may not be accessible 运行WCF服务获取错误添加服务失败。 服务元数据可能无法访问 - Run WCF service getting error Failed to add a service. Service metadata may not be accessible 添加服务失败。 服务元数据可能无法访问 - Failed to add a service. Service metadata may not be accessible WcfTestClient:添加服务失败。 服务元数据可能无法访问 - WcfTestClient: Failed to add a service. Service metadata may not be accessible 服务元数据可能无法在WCF中访问 - Service metadata may not be accessible In WCF
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM