locked
change from 2.0 to 4.0 using visual studio 2017 RRS feed

  • Question

  • User-605499000 posted

    I need to change from 2.0 to 4.0. I do not have the wizard conversion and can't seem to get it.  I am trying to get the new token keys for my config files.  I am still using xml 1.0. Do I need to change that and if so how do I do that.  The website was built in 2009  I was given Microsoft sites to convert but they all led to the wizard.  Can I reinstall visual studio 2017 to get the wizard

    Here is one config file

    <?xml version="1.0"?>

    <configuration>
      <configSections>
        <section name="bumplesMagazine" type="EP.BumplesMagazine.BumplesMagazineSection, __code"/>
      </configSections>

      <bumplesMagazine defaultConnectionStringName="BumplesConnectionString">
        <contactForm mailTo="contact@bumples.com"/>
        <newsletters fromEmail="info@bumples.com" fromDisplayName="Bumples Magazine" />
        <store sandboxMode="false" businessEmail="sales@bumples.com" />
      </bumplesMagazine>


      <connectionStrings>
        <!-- Local -->
        <add name="BumplesConnectionStringLocalhost"
             connectionString="Server=server3000; Database=BumplesDataBase; uid=SERVER3000\Junior; Trusted_Connection=True;"
             providerName="System.Data.SqlClient"/>

        <!-- Remote -->
        <add name="BumplesConnectionString"
             connectionString="Server=mssql1.myregisteredsite.com; Database=27534_BumplesDatabase; User Id=27534_login; Password=9u3673s!; Trusted_Connection=False;"
             providerName="System.Data.SqlClient"/>
      </connectionStrings>

      <system.net>
        <mailSettings>
          <!-- <smtp deliveryMethod="Network">
          <smtp deliveryMethod="PickupDirectoryFromIis" from="support@bumples.com">
            <network defaultCredentials="true" host="(localhost)" port="25" />
          </smtp>
          -->
          <smtp from="info@bumples.com">
            <network host="smtp.bumples.com" password="gr!77y09" userName="info@bumples.com"/>
          </smtp>
        </mailSettings>
      </system.net>

      <system.web>
        <!-- authentication -->
        <!--
        <authentication mode="Forms">
          <forms name=".ASPXAUTH" 
                 loginUrl="~/User/Login.aspx"
                 path="/"
                 protection="All"
                 timeout="60"
                 requireSSL="false"
                 slidingExpiration="true"
                 cookieless="AutoDetect"/>
        </authentication>
        -->

        <authentication mode="Forms">
          <forms name="BUMPLESAUTHENTICATION"
                 loginUrl="~/User/Login.aspx"
                 defaultUrl="~/Default.aspx"
                 protection="Validation"
                 timeout="180"
                 requireSSL="false"
                 slidingExpiration="false"
                 path="/"
                 cookieless="AutoDetect"
                 domain=""/>
        </authentication>

        <!-- custom errors -->
        <customErrors mode="RemoteOnly" defaultRedirect="~/Error.aspx">
          <error statusCode="404" redirect="~/Error.aspx?Code=404" />
          <error statusCode="408" redirect="~/Error.aspx?Code=408" />
          <error statusCode="505" redirect="~/Error.aspx?Code=505" />
        </customErrors>

        <compilation debug="true">
          <assemblies>
            <add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
          </assemblies>
        </compilation>

        <!-- profile -->
        <profile enabled="true" automaticSaveEnabled="false" defaultProvider="BM_ProfileProvider">
          <providers>
            <clear />
            <add name="BM_ProfileProvider"
                 connectionStringName="BumplesConnectionString"
                 applicationName="BumplesMagazine"
                 type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
          </providers>
          <properties>
            <clear />
            <add name="FirstName" type="String" />
            <add name="LastName" type="String" />
            <add name="Gender" type="String" />
            <add name="BirthDate" type="DateTime" />
            <group name="Address">
              <add name="Street1" type="String" />
              <add name="Street2" type="String" />
              <add name="City" type="String" />
              <add name="State" type="String" />
              <add name="PostalCode" type="String" />
              <add name="Country" type="String" />
            </group>
            <group name="Contacts">
              <add name="Phone" type="String" />
              <add name="Fax" type="String" />
            </group>
            <add name="ShoppingCart" type="EP.BumplesMagazine.BusinessLogicLayer.Store.ShoppingCart" serializeAs="Binary" allowAnonymous="true" />
            <group name="ChildInfo">
              <add name="ChildName" type="String" />
              <add name="Gender" type="Char" />
              <add name="BirthDate" type="DateTime" />
            </group>
            <group name="Forum">
              <add name="Posts" type="Int32" />
              <add name="AvatarUrl" type="String" />
              <add name="Signature" type="String" />
            </group>
            <group name="Preferences">
              <add name="Theme" type="String" allowAnonymous="true" />
              <add name="Culture" type="String" defaultValue="en-US" />
              <add name="NewsletterType" type="EP.BumplesMagazine.BusinessLogicLayer.Newsletters.NewsletterType" />
            </group>
            <add name="AnonymousEmail" type="String" serializeAs="String" allowAnonymous="true" />
            <add name="EmailStatus" type="EP.BumplesMagazine.BusinessLogicLayer.MembershipEx.EmailStatus" />
          </properties>
        </profile>

        <membership defaultProvider="BM_MembershipProvider"   >
          <providers>
            <clear />
            <add name="BM_MembershipProvider"
                 connectionStringName="BumplesConnectionString"
                 applicationName="BumplesMagazine"
                 enablePasswordRetrieval="true"
                 enablePasswordReset="true"
                 requiresQuestionAndAnswer="false"
                 requiresUniqueEmail="false"
                 passwordFormat="Encrypted"
                 maxInvalidPasswordAttempts="5"
                 passwordAttemptWindow="5"
                 minRequiredPasswordLength="5"
                 minRequiredNonalphanumericCharacters="0"
                 type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
          </providers>
        </membership>

        <roleManager enabled="true" cacheRolesInCookie="true" cookieName="BMROLES" defaultProvider="BM_RoleProvider">
          <providers >
            <clear />
            <add name="BM_RoleProvider"
                 connectionStringName="BumplesConnectionString"
                 applicationName="BumplesMagazine"
                 type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
          </providers>
        </roleManager>

        <anonymousIdentification cookieless="AutoDetect" enabled="true"/>

        <machineKey validationKey="287C5D125D6B7E7223E1F719E3D58D17BB967703017E1BBE28618FAC6C4501E910C7E59800B5D4C2EDD5B0ED98874A3E952D60BAF260D9D374A74C76CB741803"
                    decryptionKey="5C1D8BD9DF3E1B4E1D01132F234266616E0D5EF772FE80AB"
                    validation="SHA1"/>

        <!-- Handlers
        <httpHandlers>
          <remove verb="POST,GET" path="FileUploader.axd"/>
          <add verb="POST,GET" path="FileUploader.axd" type="FileUploader"/>
        </httpHandlers>
        -->

        <!-- Runtime -->
        <httpRuntime maxRequestLength="1234567" executionTimeout="3600"/>

        <!-- Session Timeout / timeout in minutes -->
        <sessionState timeout="60"/>

        <healthMonitoring heartbeatInterval="10800" >
          <providers>
            <remove name="SqlWebEventProvider" />
            <add name="SqlWebEventProvider" connectionStringName="BumplesConnectionString"
               buffer="false" bufferMode="Notification" maxEventDetailsLength="1073741823"
               type="System.Web.Management.SqlWebEventProvider,System.Web,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" />
          </providers>
          <eventMappings>
            <add name="Bumples Magazine Events" type="EP.BumplesMagazine.WebCustomEvent, EP.BumplesMagazine.CustomEvents" />
          </eventMappings>
          <rules>
            <clear />
            <add name="Bumples Magazine Events" eventName="Bumples Magazine Events" provider="SqlWebEventProvider" profile="Critical" />
            <add name="All Errors" eventName="All Errors" provider="SqlWebEventProvider" profile="Critical" />
            <add name="Failure Audits" eventName="Failure Audits" provider="SqlWebEventProvider" profile="Critical" />
            <add name="Heartbeats" eventName="Heartbeats" provider="SqlWebEventProvider" profile="Critical" />
          </rules>
        </healthMonitoring>

      
       
       
      </system.web>


    </configuration>

    Thank you Jen

    Saturday, November 4, 2017 4:52 PM

All replies

  • User475983607 posted

    I don't think Visual Studio 2017 has an upgrade Wizard.  I know VS 2010 has an upgrade Wizard and perhaps 2012/13.  You might try installing an older Visual Studio version if you need the upgrade wizard.

    I would simply change the target framework to 4.0 in the project properties build and see what happens. 

    I am trying to get the new token keys for my config files.

    What keys?

    I don't see anything in the web.config that is a problem.  The web.config looks pretty basic, except it is using the ASP Membership provider.  You'll lose the Membership configuration tool in Visual Studio 2017. I think you have to go back to 2010 for the config tool.

    IMHO, do not upgrade unless you need 4.0 features.

    Saturday, November 4, 2017 7:18 PM