【问题标题】:Namespace and AjaxToolkit Errors in Visual Studio 2008 after installing Visual Studio 2012,安装 Visual Studio 2012 后 Visual Studio 2008 中的命名空间和 AjaxToolkit 错误,
【发布时间】:2012-09-18 17:41:36
【问题描述】:

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

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

【问题讨论】:

    标签: .net visual-studio-2008 namespaces web-config visual-studio-2012


    【解决方案1】:

    我不知道为什么,但是从 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>
    

    【讨论】:

      【解决方案2】:

      我遇到了类似的问题。但是通过删除网络参考来修复它。没有它一切正常。有了它的抱怨: 找不到 LiquidTechnologies.Runtime.Net20,版本=7.1.4.1284,文化=中性, PublicKeyToken=64bee40f6e1c14f0.

      与制作网络服务的人交谈,但他说不需要 3rd 方 dll...

      我的解决方案中不再有网络参考。所以这不是一个好的解决方案。

      但这里的问题可能是由于从 windows/.Net framerok 等中删除了 dlss 等...

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-12-28
        • 1970-01-01
        • 2013-07-08
        • 2013-04-07
        • 2013-09-15
        • 1970-01-01
        • 2014-06-07
        • 2013-10-23
        相关资源
        最近更新 更多