WCF服务在cassini中工作,但在IIS中不工作 [英] WCF service works in cassini, but not in IIS

查看:209
本文介绍了WCF服务在cassini中工作,但在IIS中不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个服务,它有一个数据库连接,它在Cassini中正常工作,当复制服务到inetpub所有工作正常,除了数据库调用,他们总是返回这个错误:

I created a service that has a database connection which is working fine in Cassini, when in copy the service to the inetpub all works fine except database calls, they always return this error:


服务器在处理请求时遇到错误。有关详情,请参阅服务器日志。

The server encountered an error processing the request. See server logs for more details."

现在我有2个问题,


  1. 我可以在我的C:\inetpub\logs\LogFiles\W3SVC1文件夹中找到服务器日志,但是这些是提到的,因为它们似乎不包含任何有用的

  1. I can find server logs in my C:\inetpub\logs\LogFiles\W3SVC1 folder. But are these the ones mentioned because these do not seem to contain any usefull data.

如果对我的问题有任何疑问,请继续!

If there are any questions about my question please go ahead!

编辑工作室团队系统2008和IIS 7.0

Edit I am using Visual studio team system 2008 and IIS 7.0

推荐答案

以管理员身份运行Visual Studio

Run Visual Studio as administrator

这篇关于WCF服务在cassini中工作,但在IIS中不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆