2013-03-14 64 views
0

我正在嘗試構建一個基於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> 

感謝

吉米

+0

能否請您介紹更多關於這個錯誤嗎?示例:您訪問哪個鏈接,其中包含aspx代碼,登錄操作。 從我的猜測看起來像登錄後你試圖重定向到一個頁面,這是不存在的。 – Fendy 2013-03-14 02:28:32

回答

0

你沒有提供足夠的信息,所以我會採取搖擺。

在Visual Studio 2010中,如果將頁面設置爲Start Page並意外刪除該頁面,則會收到The resource cannot be found.錯誤。

enter image description here

enter image description here

+0

我該如何解決這個問題?如何在不使用PostbackURL的情況下提供路徑? – user2149178 2013-03-14 10:03:12

+0

右鍵單擊'aspx'頁面,然後點擊'Set As Start Page' – Win 2013-03-14 13:48:24

相關問題