简体   繁体   English

发布的asp.net Web应用程序和发布的wcf服务无法在IIS中连接

[英]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.

相关问题 已发布的asp.net应用中的应用代码 - App code in published asp.net app Asp.NET 发布到 IIS 服务器时显示“目录无效” - Asp.NET shows "The Directory is invalid" when published to IIS server 发布到IIS 7.5时ASP.NET Core 404错误 - ASP.NET Core 404 Error When Published to IIS 7.5 发布到 Azure 的 Asp.Net 应用仅显示“您的应用服务应用已创建” - Asp.Net App published to Azure only shows “Your App Service app has been created” 发布并通过身份验证后,ASP.NET MVC Web应用程序重定向到localhost - ASP.NET MVC Web app redirecting to localhost after being published and authenticated 已发布的Web应用程序部署中的部分ASP.NET WEB - Partial ASP.NET WEB FROM Published Web Application Deployment 为新的 WEB 项目重用已发布的旧 ASP.NET 代码 - Reuse old published ASP.NET code for new WEB project ASP.NET Core-发布应用程序后无法使用signInManager登录 - ASP.NET Core - Unable to signIn with signInManager when app is published 在调试模式下发布了一个asp.net Web应用程序? - Published an asp.net Web Application in debug mode? ASP.NET Core 5 Web API with Entity Framework works when running in IDE but not when published to folder and installed in IIS - ASP.NET Core 5 Web API with Entity Framework works when running in IDE but not when published to folder and installed in IIS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM