Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Changing Target framework from .net 2.0 to .net 4.5

Changing Target framework from .net 2.0 to .net 4.5

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netvisual-studio
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    indian143
    wrote on last edited by
    #1

    hi, We are trying to convert our asp.net application from targeting to .net 2.0 to .net 4.0 or 4.5. For that what we have done is we changed the application pool to run under .net 4.0 and registered aspnet_regiis from VS2010 command prompt and set the target framework property of the application in Visual Studio IDE to point to .Net 4.0. Now the application is not building it is showing errors in xsd, xsds designer and xsds .cs file. I don't know when .Net can convert everything from 2.0 to 4.0 why it cant handle the xsd files. Is there any ways to convert the xsd files from .net2.0 to .net4.0 automatically, without recreating the xsd files from the scratch, because it is giving the following errors. Please help in solving the problem. Thanks in advance. Here is the error message:

    Error 7 Missing partial modifier on declaration of type 'DIS.CnpWeb.XMLFiles.Model.SurveysDataTable'; another partial declaration of this type exists C:\Abdul\ZZFDPSource\ORFdpProd\XMLFiles\SurveyBalance.cs 319 22 ORFdpProd

    Thanks & Regards, Abdul Aleem Mohammad St Louis MO - USA

    M L 2 Replies Last reply
    0
    • I indian143

      hi, We are trying to convert our asp.net application from targeting to .net 2.0 to .net 4.0 or 4.5. For that what we have done is we changed the application pool to run under .net 4.0 and registered aspnet_regiis from VS2010 command prompt and set the target framework property of the application in Visual Studio IDE to point to .Net 4.0. Now the application is not building it is showing errors in xsd, xsds designer and xsds .cs file. I don't know when .Net can convert everything from 2.0 to 4.0 why it cant handle the xsd files. Is there any ways to convert the xsd files from .net2.0 to .net4.0 automatically, without recreating the xsd files from the scratch, because it is giving the following errors. Please help in solving the problem. Thanks in advance. Here is the error message:

      Error 7 Missing partial modifier on declaration of type 'DIS.CnpWeb.XMLFiles.Model.SurveysDataTable'; another partial declaration of this type exists C:\Abdul\ZZFDPSource\ORFdpProd\XMLFiles\SurveyBalance.cs 319 22 ORFdpProd

      Thanks & Regards, Abdul Aleem Mohammad St Louis MO - USA

      M Offline
      M Offline
      Marco Bertschi
      wrote on last edited by
      #2

      The error itself doesn't say too much. But as a shot into the dark I'd say that some class has moved into another namespace than it was on .Net 2.0. You could try to do an incremental update and update to 3.0 first, then to 3.5 and so on, if the error has to do with the framework you can either determine at which version the change affecting you has occured, or you might even see a "Blablabla was deprecated" warning if you are lucky.

      Veni, vidi, caecus | Everything summarizes to Assembly code

      P 1 Reply Last reply
      0
      • M Marco Bertschi

        The error itself doesn't say too much. But as a shot into the dark I'd say that some class has moved into another namespace than it was on .Net 2.0. You could try to do an incremental update and update to 3.0 first, then to 3.5 and so on, if the error has to do with the framework you can either determine at which version the change affecting you has occured, or you might even see a "Blablabla was deprecated" warning if you are lucky.

        Veni, vidi, caecus | Everything summarizes to Assembly code

        P Offline
        P Offline
        Prabhu S M
        wrote on last edited by
        #3

        Hi, you can try changing the web.config file from target framework node from pointing to 2.0 to 4.5 and try.

        M 1 Reply Last reply
        0
        • P Prabhu S M

          Hi, you can try changing the web.config file from target framework node from pointing to 2.0 to 4.5 and try.

          M Offline
          M Offline
          Marco Bertschi
          wrote on last edited by
          #4

          1. You answered to the wrong post. 2. Your answer is useless, since the OP already tried that, and THEN his code stopped compiling.

          Veni, vidi, caecus | Everything summarizes to Assembly code

          1 Reply Last reply
          0
          • I indian143

            hi, We are trying to convert our asp.net application from targeting to .net 2.0 to .net 4.0 or 4.5. For that what we have done is we changed the application pool to run under .net 4.0 and registered aspnet_regiis from VS2010 command prompt and set the target framework property of the application in Visual Studio IDE to point to .Net 4.0. Now the application is not building it is showing errors in xsd, xsds designer and xsds .cs file. I don't know when .Net can convert everything from 2.0 to 4.0 why it cant handle the xsd files. Is there any ways to convert the xsd files from .net2.0 to .net4.0 automatically, without recreating the xsd files from the scratch, because it is giving the following errors. Please help in solving the problem. Thanks in advance. Here is the error message:

            Error 7 Missing partial modifier on declaration of type 'DIS.CnpWeb.XMLFiles.Model.SurveysDataTable'; another partial declaration of this type exists C:\Abdul\ZZFDPSource\ORFdpProd\XMLFiles\SurveyBalance.cs 319 22 ORFdpProd

            Thanks & Regards, Abdul Aleem Mohammad St Louis MO - USA

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            The error itself doesn't say too much. But as a shot into the dark I'd say that some class has moved into another namespace than it was on .Net 2.0.
            You could try to do an incremental update and update to 3.0 first, then to 3.5 and so on, if the error has to do with the framework you can either determine at which version the change affecting you has occured, or you might even see a "Blablabla was deprecated" warning if you are lucky.

            Hire Freelancer || Definitive Lab

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups