我们如何使用iis运行asp.net应用程序 [英] how we run asp.net application using iis
问题描述
我正在使用asp.net(Visual Studio 2010),SQL Server 2008和& iis 5.1;
我完成了所有任务,例如创建虚拟目录等.
每当我运行连接代码时.然后给出错误
登录名请求无法打开数据库我的".登录失败.
用户"G \ ASPNET"登录失败."
我的连接字符串是=>
connection String ="Data Source = g \ sqlexpress; Initial Catalog = my; Integrated Security = True"
请帮助我.
预先感谢
i am using asp.net (visual studio 2010), sql server 2008, & iis 5.1;
and i done all the task like create virtual directory etc.
whenever i am running connectivity code. then it give the error
"Cannot open database "my" requested by the login. The login failed.
Login failed for user ''G\ASPNET''."
my connection string is =>
connection String ="Data Source=g\sqlexpress;Initial Catalog=my;Integrated Security=True "
plese help me.
thanks in advance
推荐答案
请尽快给我解决方案."这很不礼貌.这是一个志愿者站点,人们将根据自己的时间(不是您自己的时间)回答或不回答.如果您想快速获得答案,请支付支持费用.
该错误消息是很不言自明的.当前用户无权访问数据库.如果未使用Windows身份验证,则可能必须使用aspnet用户
"please give me the solution quickly." This is very rude. This is a volunteer site and people will answer, or not, on their own time, not yours. If you want a quick answer, then pay for support.
The error message is quite self-explanatory. The current user does not have access to the database. You are must likely using the aspnet user if not using Windows authentication
这篇关于我们如何使用iis运行asp.net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!