I just recently installed VS2005 and want to upgrade the few VS2003 web projects I have created. I never dreamed it would be so difficult!
Rather than talking in the theoretical, I'd like to present you with a simple one page project I can't convert. You can download it
here.
Here's my experience with the conversion:
Opened the project in VS2005. The conversion wizard appeared and all seemed to be going normally.
It prompted to me to "Convert to Web Application" once it was loaded in the IDE. I did so and received no errors.
So naturally I ran the project. I immediately got an error.
I went to the Project Properties, to the Web tab, and clicked on the "Create Virtual Directory" button.
I ran the the project again. This time the earlier error didn't appear but all that happened was a web page opened and "Directory Listing Denied" was displayed.
I would much appreciate it if someone could point me in the right direction, for I think if I can figure this one out then the conversion of the larger projects will go much easier.
I have downloaded your sample project and upgraded without any problem. However, when I tried to build the project, these error messages were received:
"ASP.NET runtime error: '/LM/W3SVC/1/ROOT/CKNW_AudioVault' is not a valid IIS "
"Attribute 'MS_POSITIONING' is not a valid attribute of element 'body'"
I would like to know if you have received the same error messages. If so, please perform the following suggestions. If not, please skip the steps below and let
me know the detailed error.
To fix the first error, please open the “CKNW_AudioVault.csproj” file, and find this section:
Sincerely,
Benson Yu
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.
I tried it on my machine and get the same result as yours.
Since in VS2005 supports running web application from its own development server, I suggest you use this option to run the migrated app.
Select "Use Visual Studio Development Server" in the Web tab in project properties. You will be able to run it. It works will on my machine.
HTH. If this does not answer your question, please feel free to mark the post as Not Answered and reply. Thank you!
Sincerely,
Kevin Yu
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Mark as Not Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Marked as answer by Kevin Yu - MSFT on May 08, 2007 05:52 AM
Thank you both for looking into this for me. I tried many more things and eventually got the project converted. But it didn't look right. The drop-down list boxes were much bigger than the text they contained and it wouldn't even run properly.
Here's my problem: What's the point of a code converter if it doesn't do the job properly? Yes, I know it's a complicated process but who would want to have their code turned into something that is unstable at best and just plain not working at worst?
I finally solved the problem by building the project again from scratch and just copying the core code.
The example I provided you was just that, a one-page demo. But I have two other multi-page web projects that I need to upgrade as well. I've become convinced that the best way to "convert" them is to just rebuild them from scratch.
Sorry if I seem pessimistic but I think I'm looking at this issue with a healthy dose of realism.
You need to go into IIS Manager and add your default page (e.g. Default.aspx) to the default pages for that virtual directory. By default, ASPX pages are not in that list, only html(l) and asp.
rmdw
Participant
825 Points
1235 Posts
Struggling to upgrade a simple VS2003 Web Project
May 06, 2007 06:45 PM|LINK
I just recently installed VS2005 and want to upgrade the few VS2003 web projects I have created. I never dreamed it would be so difficult!
Rather than talking in the theoretical, I'd like to present you with a simple one page project I can't convert. You can download it here.
Here's my experience with the conversion:
I would much appreciate it if someone could point me in the right direction, for I think if I can figure this one out then the conversion of the larger projects will go much easier.
Sincerely,
Robert Werner
Vancouver, BC
Vancouver, BC
Technical Blog
Pocket Pollster
Benson Yu - ...
All-Star
34797 Points
2497 Posts
Re: Struggling to upgrade a simple VS2003 Web Project
May 08, 2007 04:36 AM|LINK
Hi Robert,
I have downloaded your sample project and upgraded without any problem. However, when I tried to build the project, these error messages were received:
"ASP.NET runtime error: '/LM/W3SVC/1/ROOT/CKNW_AudioVault' is not a valid IIS "
"Attribute 'MS_POSITIONING' is not a valid attribute of element 'body'"
I would like to know if you have received the same error messages. If so, please perform the following suggestions. If not, please skip the steps below and let me know the detailed error.
To fix the first error, please open the “CKNW_AudioVault.csproj” file, and find this section:
<UseIIS>True</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>0</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost/CKNW_AudioVault</IISUrl>
Change it to:
<UseIIS>False</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>0</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl></IISUrl>
To fix the second error, please remove “ms_positioning="GridLayout"” from the page.
About how to set GridLayout in ASP.NET 2.0, please refer to the link below:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=167147&SiteID=1
Benson Yu
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.
Kevin Yu - M...
All-Star
19021 Points
1467 Posts
Re: Struggling to upgrade a simple VS2003 Web Project
May 08, 2007 05:51 AM|LINK
Hi Robert,
I tried it on my machine and get the same result as yours.
Since in VS2005 supports running web application from its own development server, I suggest you use this option to run the migrated app.
Select "Use Visual Studio Development Server" in the Web tab in project properties. You will be able to run it. It works will on my machine.
HTH. If this does not answer your question, please feel free to mark the post as Not Answered and reply. Thank you!
Kevin Yu
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Mark as Not Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
rmdw
Participant
825 Points
1235 Posts
Re: Struggling to upgrade a simple VS2003 Web Project
May 08, 2007 04:42 PM|LINK
Dear Gentlemen:
Thank you both for looking into this for me. I tried many more things and eventually got the project converted. But it didn't look right. The drop-down list boxes were much bigger than the text they contained and it wouldn't even run properly.
Here's my problem: What's the point of a code converter if it doesn't do the job properly? Yes, I know it's a complicated process but who would want to have their code turned into something that is unstable at best and just plain not working at worst? I finally solved the problem by building the project again from scratch and just copying the core code.
The example I provided you was just that, a one-page demo. But I have two other multi-page web projects that I need to upgrade as well. I've become convinced that the best way to "convert" them is to just rebuild them from scratch.
Sorry if I seem pessimistic but I think I'm looking at this issue with a healthy dose of realism.
Robert W.
Vancouver, BC
Vancouver, BC
Technical Blog
Pocket Pollster
DanielWilson
Member
98 Points
20 Posts
Re: Struggling to upgrade a simple VS2003 Web Project
Jun 16, 2008 06:55 PM|LINK
>>and "Directory Listing Denied" was displayed.
You need to go into IIS Manager and add your default page (e.g. Default.aspx) to the default pages for that virtual directory. By default, ASPX pages are not in that list, only html(l) and asp.