Hey everyone..I'm facing one problem..Hope i can find answers here.
I have one ASP>NET 1.1 project,Now according to requirements i need to migrate it to ASP.NET 2.0 Project.
I've checked many online blogs and guidelines about migration by microsoft.During my research I've found 2 ways of migrating a Webproject from 1.1 to 2.0
One is you open new the project by file-->open new file and select VBPROJ file,then conversion wizard starts and you'r able to convert the project.
Other way is you select File-->Open web site and then through conversion wizard,Convert the application.
There's a difference in the both methods.
In method 1 you dont see any change in the directory structre of the application and application is converted in to 2.0,After solving some reference and variable scoping errors,Application runs smoothly.Still I've nt tested whole application whether its
converted properly or not.
In method 2,you see a change in the directory structure of the application and new folders App_Code is created and selected webforms and class files are moved in the App_code folder,One folder named "Migrated" is created and very few files are created in
that folder and "Stub_" is prefixed to the file names which are moved in the migrated folder.for example Password.aspx.vb converted to stub_password.aspx.vb.Only code behind files are moved to the migrated folder. and following comment is added to the newly
created (stub prefixed ) file
' This file was generated as part of an ASP.NET 2.0 Web project conversion.
' This code file 'App_Code\Migrated\XX\XX\Stub_Password_aspx_vb.vb' was created and contains an abstract class
' used as a base class for the class 'Migrated_Password' in file XX\XX\Password.aspx.vb'.
' This allows the the base class to be referenced by all code files in your project.
Now i'm confused that which method should i use??If i use the 2nd method than,there is a defination of User control in the stub_ prefixed files.
(for ex. Public
MustOverride
ReadOnly
Property ctrError()
As ctrError )
My code is not getting compiled and sayas "<class of the user control> not declared.How to remove this error??
saumil_Deodh...
Member
1 Points
4 Posts
Help in converting visua studio 2003 project to 2005 project
Jun 21, 2010 10:38 AM|LINK
Hey everyone..I'm facing one problem..Hope i can find answers here.
I have one ASP>NET 1.1 project,Now according to requirements i need to migrate it to ASP.NET 2.0 Project.
I've checked many online blogs and guidelines about migration by microsoft.During my research I've found 2 ways of migrating a Webproject from 1.1 to 2.0
One is you open new the project by file-->open new file and select VBPROJ file,then conversion wizard starts and you'r able to convert the project.
Other way is you select File-->Open web site and then through conversion wizard,Convert the application.
There's a difference in the both methods.
In method 1 you dont see any change in the directory structre of the application and application is converted in to 2.0,After solving some reference and variable scoping errors,Application runs smoothly.Still I've nt tested whole application whether its converted properly or not.
In method 2,you see a change in the directory structure of the application and new folders App_Code is created and selected webforms and class files are moved in the App_code folder,One folder named "Migrated" is created and very few files are created in that folder and "Stub_" is prefixed to the file names which are moved in the migrated folder.for example Password.aspx.vb converted to stub_password.aspx.vb.Only code behind files are moved to the migrated folder. and following comment is added to the newly created (stub prefixed ) file
' This file was generated as part of an ASP.NET 2.0 Web project conversion.
' This code file 'App_Code\Migrated\XX\XX\Stub_Password_aspx_vb.vb' was created and contains an abstract class
' used as a base class for the class 'Migrated_Password' in file XX\XX\Password.aspx.vb'.
' This allows the the base class to be referenced by all code files in your project.
Now i'm confused that which method should i use??If i use the 2nd method than,there is a defination of User control in the stub_ prefixed files.
(for ex. Public MustOverride ReadOnly Property ctrError() As ctrError )
My code is not getting compiled and sayas "<class of the user control> not declared.How to remove this error??
Any help is appricieated..
ChristiaanV
Member
576 Points
109 Posts
Re: Help in converting visua studio 2003 project to 2005 project
Jun 21, 2010 11:59 AM|LINK
Have you installed VS2005 SP1?
After that automatic conversion wizard doesn't create the App_Code folder, but leaves your current structure intact.
Installing the servicepack and then doing the conversion solved lot's of problems for me.
saumil_Deodh...
Member
1 Points
4 Posts
Re: Help in converting visua studio 2003 project to 2005 project
Jun 21, 2010 12:33 PM|LINK
Thank you very much for prompt reply..Actually I'm using Visual Studio 2008 Team System..
ChristiaanV
Member
576 Points
109 Posts
Re: Help in converting visua studio 2003 project to 2005 project
Jun 22, 2010 09:25 AM|LINK
The difference can be found in the type of project to which it is converted:
Method 1: Web application
Method 2: Website
Checkout this webcast to see the differences.
http://www.asp.net/learn/webcasts/web-application-projects-vs-web-site-projects-in-visual-studio-2008
I have always used the webapplication approach to convert my applications.
venkat.mru
Member
54 Points
29 Posts
Re: Help in converting visua studio 2003 project to 2005 project
Jun 24, 2010 07:17 AM|LINK
while convert 2003 to 2005 , class files by default moved into App_Code folder.....
After converting the you need change the class file reference in your code or delete App_Code class use the existing folder structure....
Migrating .NET 1.1 Visual studio .net 2003 to 2005
M.Venkatesh Kumar