gpt4 book ai didi

.net - 安装 Visual Studio 2012 后 Visual Studio 2008 中的命名空间和 AjaxToolkit 错误,

转载 作者:行者123 更新时间:2023-12-04 16:52:23 24 4
gpt4 key购买 nike

我已经使用 Visual Studio 2008 Professional 几年了。去年我下载并安装了 Visual Studio 2010 express,没有任何问题。最近我下载并安装了visual studio 2012 web express,现在我在vs 2008中现有的web应用程序有很多错误。大多数错误都与缺少命名空间有关,即使它们已在 web.config 文件中详细说明。 是什么导致了这些错误,更重要的是我怎样才能摆脱它们???

一些错误:
名称“AjaxControlToolkit”未声明。
未声明名称“替换”。
未定义类型“Guid”。
未定义类型“列表”。

最佳答案

我不知道为什么,但从 web.config 中删除以下内容后,一切又开始工作了。

<roleManager enabled="true" defaultProvider="MySQLRoleProvider">
<providers>
<add name="MySQLRoleProvider" connectionStringName="App_DBConnection" applicationName="GRMS 3.0" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=xxxxx"/>
</providers>
</roleManager>
<membership defaultProvider="MySqlMembershipProvider">
<providers>
<add name="MySqlMembershipProvider" connectionStringName="App_DBConnection" applicationName="App3.0" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=xxxxx" passwordFormat="Encrypted" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="true" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
</providers>
</membership>
<profile enabled="true" defaultProvider="MySQLProfileProvider">
<providers>
<add name="MySQLProfileProvider" connectionStringName="App_DBConnection" applicationName="App 3.0" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=xxxxxx"/>
</providers>
<properties>
<add name="Name" type="System.String" provider="MySQLProfileProvider" allowAnonymous="true"/>
<group name="ProjectInfo">
<add name="CurrProjectID" allowAnonymous="false" type="System.guid"/>
<add name="CurrProjectName" allowAnonymous="false" type="System.String"/>
</group>
</properties>
</profile>

关于.net - 安装 Visual Studio 2012 后 Visual Studio 2008 中的命名空间和 AjaxToolkit 错误,,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12612880/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com