如何在Iis6.0中访问已发布的网站 [英] How Do I Access Published Website In Iis6.0

查看:65
本文介绍了如何在Iis6.0中访问已发布的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Microsoft动态Nav 2009 R2 ..我已经在IIS 6.0中发布了我的Web应用程序。现在,当我尝试从iis..i访问我的Web应用程序时出现错误连接到SQL Server KRISHAB-PC时登录失败。是否在web.config或配置iis期间遗漏了某些内容? ny help ..

I am using Microsoft dynamic Nav 2009 R2.. I have published my web application in IIS 6.0. Now when i attempt to access my web application from iis..i get an error " The login failed when connecting to SQL Server KRISHAB-PC. " is it that something is missed in web.config or during configuration of iis??? ny help..

推荐答案

听起来好像在发布网站时没有更改连接字符串。我还怀疑您的连接字符串使用可信连接而不是用户名和密码。



发布时,您的网站代码默认运行为ASP.NET服务帐户,从Visual Studio内部运行它时不再像你一样。



你有两种选择。



将网站用于运行代码的帐户更改为SQL Server信任的帐户,或更改连接字符串以使用指定用户名和密码的帐户而不是可信连接。



什么不是可选的,你必须做一些研究并自学IIS,Windows和SQL Server安全模型,以及它们对你的连接字符串有什么影响。
It sounds as though you didn't change your connection string when you published the website. I also suspect your connection string uses a Trusted Connection instead of a username and password.

When published, your website code runs as the ASP.NET service account by default, no longer as you when you run it from inside Visual Studio.

You have two options.

Either change the account that the website is using to run your code to an account trusted by the SQL Server or change your connection string to use a username and password specified account instead of Trusted Connection.

What is not optional is that you have to do some research and teach yourself about IIS, Windows and SQL Server security models, along with what impacts they have on your connection string.


这篇关于如何在Iis6.0中访问已发布的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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