Unable to open vc2002 ASP.NET web project with vc2003 HELP

A

alan_coffman2004

Opening an ASP.NET VS2002 project in VS2003, am getting this error:

"Unable to open Web project 'MyProject'. The file
path 'c:\inetpub\wwwroot\MyProject' does not correspond to
the URL 'http://Localhost:/MyProject'. The two need to map
to the same server location. HTTP Error 404: Not Found."


I have tried fixing this using both of these KB articles and usenet
advises, still problem not solved:
http://support.microsoft.com/default.aspx?scid=kb;en-us;327283
http://support.microsoft.com/support/kb/articles/q306/0/05.asp
http://groups-beta.google.com/group/microsoft.public.vsnet.general/msg/472e9dbe5a5ab7e3
http://groups-beta.google.com/group/microsoft.public.vsnet.general/msg/89fe75ab02fd53bc

microsoft.public.vsnet.general
microsoft.public.dotnet.framework.aspnet
Any help is appreciated.

Alan
 
J

Juan T. Llibre

Is the site created with VS2002 still running
as a v1.0.3705 website ?

VS 2003 uses v 1.1.4322.

Yuo could try using Denis Bauer's "ASP.NET Version Switcher"
to check the version number for that app (1.0 or 1.1).

http://www.denisbauer.com/NETTools/ASPNETVersionSwitcher.aspx

If it's still listed as running under v1.0, change it to v1.1.

Click the desired app, select the ASP.NET version wanted,
and click the "Switch .Net Framework Version" button.

That should allow VS2003 to open the project.

As a last resort, you could try unloading the application
using IIS Manager, and then creating an empty web project,
and then using the "Add existing item" to insert the existing files
into your new project.

A bit of a kludge, but it will do the job for you.




Juan T. Llibre
ASP.NET MVP
===========
 
A

alan_coffman2004

Thanks for the response.

The version switcher app does not help.

I understand your second idea, as for the klude you suggested, what are
files I should keep from the skeleton project created and what are ones
I must replace from the old (this excludes the core source cs# files of
course)

TIA
Alan
 
J

Juan T. Llibre

Alan,

What OS are you using ?

re your question :

Add all the source files (.cs),
plus .aspx and ascx files, and any xml files.

If you have Web Services ( .asmx ), you will need to
add those, too.

You can add directories, if any exist, but you'll then have
to select the files in them, although you can select multiple
files at once.

Then, compiling the project should bring up any breaking
changes from .NET v1.0 to .NET v1.1, so you can debug them.

I have something else you could try:
------------------------------------
Your C# project has a file with extension .webinfo.
This file includes the information for the IIS mapping of the project.

Map an IIS virtual directory to the project root folder and
make sure it has been configured as an application in IIS.

Then edit the .webinfo file to point to the correct location
( The virtual directory. The entry will look like
<VisualStudioUNCWeb>
<Web URLPath = "http://localhost/directory/projectname.csproj" />
or <Web URLPath = "http://www.yourserver.com/directory/projectname.csproj"
/> )
</VisualStudioUNCWeb>
and, finally, open the .csproj file from VS.NET

In this case, you'll need to leave all the files in the
project's directories ( including the /bin directory )
--------------------------------------

***Make sure you back up the 2002 project
*before* making any changes.***

--------------------------------------

There's a good chance that will work,
and then simply recompiling will migrate
the project to .NET 1.1



Juan T. Llibre
ASP.NET MVP
===========
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top