你好傢伙我有一個網站在線訪問數據庫。對於名爲GardenLadies的連接字符串的數據庫訪問是好的並且可行。我已經向主機數據庫添加了localsqlServer數據庫信息。 我的問題是當我登錄它給我「服務器錯誤'/'應用程序。」。asp.NET Web.config
here's我的web配置
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="GardenLadies" connectionString="Database=GardenLadies.mdf; Data Source=195.22.11.199;Initial Catalog=GardenLadies;User ID=****;Password=*****;" providerName="System.Data.SqlClient"/>
<add name="LocalSqlServer" connectionString="Database=GardenLadies.mdf; Data Source=195.22.11.199;Initial Catalog=GardenLadies;User ID=****;Password=****;" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<authentication mode="Forms"/>
<authorization>
<allow users="*"/>
<deny users="?"/>
</authorization>
<compilation debug="true"/>
</system.web>
</configuration>
我用在其他網站webconfig的這個公式,它已經爲我工作,我沒有得到什麼,我在這裏失蹤。
感謝
這告訴我,這個問題是不是BD或登錄,但我在母版使用的圖像。
「訪問路徑 'E:\的Inetpub \虛擬主機\ garden-ladies.pt \ httpdocs資料\圖片\ Imagens \ fundo.jpg' 被拒絕」
我在類似位置的其他圖像,但在匿名頁面。 任何想法?
你能給我們提供其餘的錯誤細節嗎? – 2010-09-22 22:52:25
YSOD的內容是否由於雜散角支架而在帖子中隱藏?如果不是,請張貼錯誤的內容。 – 2010-09-22 22:55:13
首先進入web配置文件並設置 customErrors>,然後檢查您得到的確切錯誤併發布該錯誤。 –
2010-09-23 04:56:12