我想在 asp.net 配置中为我的 Web 应用程序设置应用程序名称,但对我没有任何作用。它总是说“应用程序:/”。我花了好几个小时来寻找答案。我确信这很简单(一如既往)。有人可以帮忙指出吗?
这是我的 web.config ......
<configuration>
<connectionStrings>
<clear />
<add name="LocalSqlServer" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\AbetEvaluation.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
<add name="AbetConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\AbetEvaluation.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<authentication mode="Forms">
<forms loginUrl="~/Login.aspx" />
</authentication>
<authorization>
<allow users="*" />
</authorization>
<membership defaultProvider="AbetMembershipProvider">
<providers>
<clear />
<add
name="AbetMembershipProvider"
type="System.Web.Security.SqlMembershipProvider"
applicationName="/AbetEvaluation"
connectionStringName="AbetConnectionString"
requiresQuestionAndAnswer="false"
minRequiredPasswordLength="6"
minRequiredNonalphanumericCharacters="0"
requiresUniqueEmail="true"
passwordFormat="Clear"
/>
</providers>
</membership>
<roleManager enabled="true" defaultProvider="AbetRoleProvider">
<providers>
<clear />
<add
name="AbetRoleProvider"
type="System.Web.Security.SqlRoleProvider"
connectionStringName="AbetConnectionString"
applicationName="/AbetEvaluation"
/>
</providers>
</roleManager>
<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
<providers>
<add
name="XmlSiteMapProvider"
description="Default SiteMap provider."
type="System.Web.XmlSiteMapProvider"
siteMapFile="Web.sitemap"
securityTrimmingEnabled="true"
/>
</providers>
</siteMap>
</system.web>