我想在asp.net配置中爲我的web應用程序設置應用程序名稱,但是沒有任何內容適用於我。它總是說「應用程序:/」。我花了好幾個小時尋找答案。我相信這很簡單(因爲它總是)。有人可以幫忙指出嗎?asp.net配置不顯示我的應用程序名稱
這裏是我的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>
愚蠢的問題 - 不顯示它*哪裏*? – blowdart 2011-05-25 01:02:11
當你點擊Project-> ASP.NET Configuration時,它啓動「網站管理工具」並顯示應用程序名稱。我總是顯示「應用程序:/」。而不是「申請:/ AbetEvaluation」。 – Theo 2011-08-16 15:51:47
@Theo那麼答案是什麼? – GoClimbColorado 2012-02-11 18:29:22