2015-11-10 28 views
-1

我知道有很多問題已經存在,但我嘗試了很多解決方案,但沒有任何工作。虛擬目錄未配置爲iis應用程序

錯誤 服務器上發生應用程序錯誤。此應用程序的當前自定義錯誤設置可防止遠程查看應用程序錯誤的細節(出於安全原因)。但是,它可以通過本地服務器上運行的瀏覽器來查看。

我試圖將其配置在IIS,但仍然沒有工作

UPDATE 的Web.config

<?xml version="1.0" encoding="UTF-8"?> 
<!-- 
    For more information on how to configure your ASP.NET application, please visit 
    http://go.microsoft.com/fwlink/?LinkId=169433 
    --> 
<configuration> 
    <connectionStrings> 
     <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /> 
    </connectionStrings> 
    <system.web> 
     <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" /> 
     <customErrors mode="Off" /> 
     <authentication mode="Forms"> 
      <forms loginUrl="~/Account/Login.aspx" timeout="2880" /> 
     </authentication> 
     <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> 
    </system.web> 
    <system.webServer> 
     <modules runAllManagedModulesForAllRequests="true" /> 
     <directoryBrowse enabled="true" showFlags="Date, Time, Size, Extension, LongDate" /> 
    </system.webServer> 
</configuration> 

ERROR PAGE LINK

請幫忙解決這個問題..

+0

您是否在web.config中設置了customError,並且是否爲錯誤頁面創建了自定義視圖? – Gnqz

+0

@Gnqz謝謝你的回覆。我更新了帖子。發佈web.config。請參考並幫助我.. –

回答

0

燦您嘗試瀏覽服務器中的網站並分享確切的錯誤。這可能是因爲在IIS中虛擬目錄未配置正確的應用程序池。

+0

我在文章中給出了錯誤頁面的鏈接 –

+0

您可以共享IIS設置的屏幕截圖,虛擬目錄並檢查應用程序池是否正確分配給虛擬目錄。 – Baskar

相關問題