[英]published asp.net web app and published wcf service not connectiing in IIS
I have published both my WCF service and ASP.NET Web application in IIS but i seem to have a problem connecting to the database after publishing. 我已经在IIS中发布了WCF服务和ASP.NET Web应用程序,但是发布后似乎无法连接数据库。 Its like the two cannot see each other.
就像两个无法看到对方一样。 I have tested both and saw that they have been successfully published.
我都对它们进行了测试,发现它们已经成功发布。
the service reference is referenced in the web application and works as normal when i run the web application locally but not working after publishing. 服务引用在Web应用程序中被引用,当我在本地运行Web应用程序但在发布后无法正常工作时,该引用正常工作。
Is there a setting that i am missing. 有我缺少的设置吗? Both are hosted on IIS.
两者都托管在IIS上。
There is possibility that you are using Windows authentication, I mean if Integrated Security = true in your connection string than make sure your Windows authentication enabled in your IIS. 您可能正在使用Windows身份验证,这意味着如果您的连接字符串中的Integrated Security = true,而不是确保在IIS中启用了Windows身份验证。
Do this if this is the case. 在这种情况下,请执行此操作。 IIS7: Setup Integrated Windows Authentication like in IIS6
IIS7:安装程序集成Windows身份验证,如IIS6
if this is not the case than this answer is helpful for you Change connection string from development to production when publishing 如果不是这种情况,那么此答案对您有帮助。 发布时将连接字符串从开发更改为生产
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.