Changing Target framework from .net 2.0 to .net 4.5
-
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
-
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
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
-
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
Hi, you can try changing the web.config file from target framework node from pointing to 2.0 to 4.5 and try.
-
Hi, you can try changing the web.config file from target framework node from pointing to 2.0 to 4.5 and try.
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
-
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
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.