2015-11-10 80 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

相关问题