[英]Hosting WebSite in IIS 5.1
我已經創建了一個示例網站。 我正在使用Linq作為模型。 我試圖將我的網站托管在IIS 5.1中,但是當我嘗試登錄(通過IIS 5.1訪問頁面)時出現以下錯誤:
Cannot open database "WCF" requested by the login. The login failed.Login failed for user .
WCF是數據庫的名稱。 我的身份驗證部分web.config是
<authentication mode="Forms">
<forms loginUrl="Default2.aspx" timeout="2880" />
</authentication>
我在IIS中擁有的安全性和身份驗證設置是
我的connectionString是
<connectionStrings>
<add name="WCFConnectionString" connectionString="Data Source=localhost;Initial Catalog=WCF;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
知道為什么會這樣嗎? 請幫忙。
IUSR_ExXP
對您的數據庫是否具有登錄權限? 使用集成安全性時,它將使用IIS進程運行時使用的任何帳戶-在這種情況下,該帳戶似乎是IUSR_ExXP
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.