[英]Hosting WebSite in IIS 5.1
I have created a sample website . 我已经创建了一个示例网站。 I am using Linq as Model.
我正在使用Linq作为模型。 I am trying to host my website in IIS 5.1.But when i am trying to login (acceesing page via IIS 5.1) i am getting follwing error:
我试图将我的网站托管在IIS 5.1中,但是当我尝试登录(通过IIS 5.1访问页面)时出现以下错误:
Cannot open database "WCF" requested by the login. The login failed.Login failed for user .
WCF is the name of the database. WCF是数据库的名称。 My authentication section web.config is
我的身份验证部分web.config是
<authentication mode="Forms">
<forms loginUrl="Default2.aspx" timeout="2880" />
</authentication>
Security and authentication setting which i have in IIS is 我在IIS中拥有的安全性和身份验证设置是
My connectionString is 我的connectionString是
<connectionStrings>
<add name="WCFConnectionString" connectionString="Data Source=localhost;Initial Catalog=WCF;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
Any idea why is it happening? 知道为什么会这样吗? please help.
请帮忙。
Does IUSR_ExXP
have login rights to your database? IUSR_ExXP
对您的数据库是否具有登录权限? When you use integrated security, it will use whatever account the IIS process is running as - which in this case seems to be IUSR_ExXP
. 使用集成安全性时,它将使用IIS进程运行时使用的任何帐户-在这种情况下,该帐户似乎是
IUSR_ExXP
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.