我正在嘗試構建一個基於ASP.net的網站。我有一個登錄頁面,在數據庫中已經有一些用戶。但是當我輸入正確的用戶名和密碼時,系統向我顯示一個錯誤,它表示:「/」應用程序服務器錯誤,無法找到資源。 我認爲我的web.congif有問題嗎?或任何其他問題。我確實需要幫助。我在Web應用程序中有一些錯誤
<configuration>
<connectionStrings>
<add name="ConnectionString" connectionString="Server=databaseurl; pwd=password;uid=username; database=databasename"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<roleManager enabled="true" />
<authorization>
<allow users="*"/>
</authorization>
<authentication mode="Forms">
<forms loginUrl="~/Register/Login.aspx" timeout="2800"/>
</authentication>
<compilation debug="true" targetFramework="4.0" />
</system.web>
</configuration>
感謝
吉米
能否請您介紹更多關於這個錯誤嗎?示例:您訪問哪個鏈接,其中包含aspx代碼,登錄操作。 從我的猜測看起來像登錄後你試圖重定向到一個頁面,這是不存在的。 – Fendy 2013-03-14 02:28:32