Last post Jan 31, 2006 07:28 AM by Bone612
Jan 30, 2006 01:47 PM|Bone612|LINK
I am attempting to migrate my application from VS 2003 to VS 2005. Here is my setup and process of migration.
Setup - Windows 2K Server. In IIS I have the main website (application). Within that website/application I have a nested application.
Process - I open VS 2005 and click open website. I go to the local IIS tab and I select the main website/application. The conversion wizard comes up and asks me to convert the files. The conversion completes successfully and I see my
files in the Solution Explorer along with the nested application (none of the files for the nested application have been brought in yet).
Problem 1 - I try to build this website and I receive an error for a file that is in the nested application. At this point, the file receiving the error is not even visible in the solution explorer. I had read that only the application
in the solution would be built, but it appears that both applications are being built.
Thnking that Problem 1 was caused because the nested application is not yet converted to VS 2005, I double click the application in the solution explorer and tell it to add the application to the current solution. The migration wizard appears and all files
are converted successfully.
Problem 2 - I can now build the nested application without a problem. If I try to build the main application I again receive an error that points to a file in the nested application.
I have tried referncing all my dlls within both projects. I then put all my classes in the App_Code directory of each application. These dlls or classes are not shared across applications, but it seems to make the initial problems go away. However, a
whole slow of other problems seems to come to surface.
I have gone as far as starting with a blank application. The application will obviously build fine. I then add my nested application. As soon as I do that, I get the error once again from the main (and now blank) application for a file that is in the
nested application. If I build the nested application alone, I get no errors. If I remove the main appliaction from the solution and build again, no errors. I add the main application back and once again I receive errors.
If anyone has ever experienced this or has any ideas on what I could possible be doing wrong I would highly appreciate your assistance.
Jan 31, 2006 01:05 AM|ScottGu|LINK
From the sounds of it above, it looks like you might be opening the web-projects as file-system based web projects instead of as IIS projects. That would explain why your sub-application is included when you try and build the parent application.
This blog post goes into more detail on how to open up web projects and IIS projects:
http://weblogs.asp.net/scottgu/archive/2005/08/23/423409.aspx Can you try doing this (File->Open Web Site and then click on the IIS tab) to add the root web project to your solution
and see if that works.
Jan 31, 2006 07:28 AM|Bone612|LINK
The very first time I did the conversion I did exactly as you thought; opened the project through the file system. At that point, my nested sub application was brought in with a folder icon. I read your blog and discovered that was incorrect, so I started
The problems I am having occur after I open the application through the Local IIS tab. When I open the main application, I see the new icon for the nested sub applications. None of the files are accessible or included in the solution explorer for this
sub application. If I were to double click this new icon, I get the option to add the project to the new solution, or close the current project and open a new one. However, prior to doing anything with the nested application, I am receiving build errors
for files within this nested application. Again, these files are not even visible in the solution explorer and I have no way to access them until I double click the new icon and add the nested application to the current solution.
Unfortunately I have no idea what to try next because I have literally tried everything. I fear my only option is to create 2 blank projects and copy and paste all my html and code into new files.