asp.net配置不支持';不要显示我的申请名称
我想在asp.net配置中为我的web应用程序设置应用程序名,但没有任何功能。它总是说“Application:/”。我花了好几个小时寻找答案。我相信这是件简单的事(一直如此)。有人能帮我指出吗 这是我的web.configasp.net配置不支持';不要显示我的申请名称,asp.net,membership,sqlmembershipprovider,Asp.net,Membership,Sqlmembershipprovider,我想在asp.net配置中为我的web应用程序设置应用程序名,但没有任何功能。它总是说“Application:/”。我花了好几个小时寻找答案。我相信这是件简单的事(一直如此)。有人能帮我指出吗 这是我的web.config <configuration> <connectionStrings> <clear /> <add name="LocalSqlServer" connectionString="Data Source=.\SQL
<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>
允许配置ASP.NET成员资格、角色和配置文件的ASP.NET配置网站使用ApplicationURL查询字符串参数中的值显示在网站上。(即应用程序:/CoolApp)大多数人只有反斜杠字符。您可以通过将项目属性中的web应用程序虚拟路径参数设置为除/(无论您在那里放置了什么)以外的其他参数来更改此设置,这将在查询字符串中使用
允许配置ASP.NET成员资格、角色和配置文件的ASP.NET配置网站使用ApplicationURL查询字符串参数中的值显示在网站上。(即应用程序:/CoolApp)大多数人只有反斜杠字符。您可以通过将项目属性中的web应用程序虚拟路径参数设置为除/(无论您在那里放置了什么)以外的其他参数来更改此设置,这将在查询字符串中使用
还必须更改虚拟路径,因为提供者元素中的applicationname属性是不够的
通过在Visual Studio中打开项目的属性,然后选择左侧的“Web”选项卡,可以更改虚拟路径。在右侧窗格中,然后选择“使用Visual Studio Development Server”单选按钮,默认情况下未选中该按钮,只有这样,您才能更改虚拟路径。默认值为“使用本地IIS Web服务器”,因此为/application name。还必须更改虚拟路径,提供程序元素中的application name属性不够
通过在Visual Studio中打开项目的属性,然后选择左侧的“Web”选项卡,可以更改虚拟路径。在右侧窗格中,然后选择“使用Visual Studio Development Server”单选按钮,默认情况下未选中该按钮,只有这样,您才能更改虚拟路径。默认值为“使用本地IIS Web服务器”,因此是/应用程序名称。愚蠢的问题-不显示在哪里?当您单击Project->ASP.NET配置时,它会启动“网站管理工具”,并显示应用程序名称。我的总是显示“Application:/”。而不是“应用程序:/AbetEvaluation”。@Theo那么答案是什么?愚蠢的问题-不显示它在哪里?当您单击Project->ASP.NET配置时,它会启动“网站管理工具”,并显示应用程序名称。我的总是显示“Application:/”。而不是“应用:/AbetEvaluation”。@Theo那么答案是什么?