Last post Jun 24, 2010 03:17 AM by venkat.mru
Jun 21, 2010 06:38 AM|saumil_Deodhar|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
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..
Jun 21, 2010 07:59 AM|ChristiaanV|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.
Jun 21, 2010 08:33 AM|saumil_Deodhar|LINK
Thank you very much for prompt reply..Actually I'm using Visual Studio 2008 Team System..
Jun 22, 2010 05:25 AM|ChristiaanV|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.
I have always used the webapplication approach to convert my applications.
Jun 24, 2010 03:17 AM|venkat.mru|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