WCF First Sample 遇到问题
2011-05-26 22:24
375 查看
问题1:
使用wcftestclient 测试 发生错误, 错误信息如下:
Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.
Details:
Error: Cannot obtain Metadata from http://localhost/WCFService/Service.svc
If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.
WS-Metadata Exchange Error
URI: http://localhost/WCFService/Service.svc
Metadata contains a reference that cannot be resolved: 'http://localhost/WCFService/Service.svc'.
The remote server returned an unexpected response: (405) Method Not Allowed.
The remote server returned an error: (405) Method Not Allowed.
HTTP GET Error
URI: http://localhost/WCFService/Service.svc
There was an error downloading 'http://localhost/WCFService/Service.svc'.
The request failed with HTTP status 404: Not Found.
解决方法: 进入 c:/windows/Microsoft.Net/Framework/v3.0/Windows Communication Foundation/
执行 ServiceModelReg.exe -i
问题二:
无法打开登录所请求的数据库 "AutoLot"。登录失败。
用户 'IIS APPPOOL/DefaultAppPool' 登录失败。
windows-> inetmgr (打开IIS) -> Application Pools -> DefaultAppPool(或其他)-> Advance Setting -> 设置Identify为NetWorkService
使用wcftestclient 测试 发生错误, 错误信息如下:
Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.
Details:
Error: Cannot obtain Metadata from http://localhost/WCFService/Service.svc
If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.
WS-Metadata Exchange Error
URI: http://localhost/WCFService/Service.svc
Metadata contains a reference that cannot be resolved: 'http://localhost/WCFService/Service.svc'.
The remote server returned an unexpected response: (405) Method Not Allowed.
The remote server returned an error: (405) Method Not Allowed.
HTTP GET Error
URI: http://localhost/WCFService/Service.svc
There was an error downloading 'http://localhost/WCFService/Service.svc'.
The request failed with HTTP status 404: Not Found.
解决方法: 进入 c:/windows/Microsoft.Net/Framework/v3.0/Windows Communication Foundation/
执行 ServiceModelReg.exe -i
问题二:
无法打开登录所请求的数据库 "AutoLot"。登录失败。
用户 'IIS APPPOOL/DefaultAppPool' 登录失败。
windows-> inetmgr (打开IIS) -> Application Pools -> DefaultAppPool(或其他)-> Advance Setting -> 设置Identify为NetWorkService
相关文章推荐
- WCF + EF 遇到的问题
- 做项目遇到的几个小问题(first:居中问题)
- 程序员说:"爱你不容易 WCF! " 持续遇到12个问题,杯巨
- OpenCV4Android调试人脸识别sample时遇到的问题和解决办法
- 【问题总结】WCF寄宿与IIS里时遇到的问题
- WCF集成COM+应用程序遇到的问题
- .NET : 在实现WCF的双工服务时可能遇到的问题
- XML序列化与REST WCF Data Contract匹配时遇到的2个问题
- WIN7下的WCF遇到的问题:HTTP 错误 404.17 - Not Found 请求的内容似乎是脚本,因而将无法由静态文件处理程序来处理
- PCL 编译中遇到 error C4996: 'pcl::SAC_SAMPLE_SIZE': 问题解决
- WCF集成COM+应用程序遇到的问题
- WCF遇到Oracle问题
- windows 2003 IIS 发布 WCF + Silverlight 发布过程可能会遇到几个问题的解决方法
- Hybris安装Sample及遇到的一些问题
- vs2012 遇到 First_Chance Exception 的问题
- Ajax跨域访问wcf服务中所遇到的问题总结。
- WIN7下的WCF遇到的问题:HTTP 错误 404.17 - Not Found 请求的内容似乎是脚本,因而将无法由静态文件处理程序来处理
- WCF单元测试遇到的问题
- 在IIS中部署WCF中遇到的问题
- WCF 数据传输遇到的问题