2010-07-26 18 views
0

我將如何修復此錯誤。當我嘗試查看網頁時發佈了一個asp.net網站,我收到此錯誤「您的網頁尋找可能已被刪除名稱已更改或暫時不可用「。一切工作正常,直到我啓用web.config中的Windows身份驗證。您正在查找的頁面可能已被刪除名稱已更改或暫時不可用

我在做什麼不對?請幫助...

我的web.config看起來像這樣

<system.web> 

     <httpModules>  
      <add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />  
      <add name="AnonymousIdentification" type="System.Web.Security.AnonymousIdentificationModule" />  
     </httpModules> 

     <identity impersonate="true"/> 
     <compilation debug="true" targetFramework="4.0"> 
     <assemblies> 
     <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
     <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
     <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation> 
     <!--<authentication mode="Forms"> 
     <forms loginUrl="~/Account/Login.aspx" timeout="2880"/> 
     </authentication>--> 
     <authentication mode="Windows">  
     </authentication> 
     <authorization> 
      <deny users="?"/> 
     </authorization> 
     <membership> 
     <providers> 
     <clear/> 
     <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/> 
     </providers> 
     </membership> 
     <profile> 
     <providers> 
     <clear/> 
     <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/> 
     </providers> 
     </profile> 
     <roleManager enabled="false"> 
     <providers> 
     <clear/> 
     <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/> 
     <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/> 
     </providers> 
     </roleManager> 
     <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/> 
</system.web> 

回答

0

調試全局ASAX。你在使用MVC嗎?簡單地說,當您請求一個網頁時,它會檢測到您沒有通過身份驗證,並將您重新登錄到登錄頁面。如果沒有登錄頁面,它會說:頁面不存在。

檢查您的登錄頁面是否存在網址。

這可以通過檢查螢火蟲或全球asax中的請求來完成。

Grtz

1

進入控制面板>互聯網Opetions>高級選項卡>單擊「恢復提前設置」>點擊「重置」>然後一個對話框將打開>單擊刪除個人設置和等待,讓計算機完成該過程,然後點擊cloes。 注意:在這個過程中,您的瀏覽器應該被關閉。

100%爲我工作。

問候,

穆罕默德Atique阿什拉菲

+0

這似乎並沒有解決所提出的問題。 (當Windows身份驗證打開時,用戶失去訪問權限)。 – BuddhiP 2012-11-19 16:54:09

相關問題