By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,784 Members | 1,205 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,784 IT Pros & Developers. It's quick & easy.

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

P: n/a
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...b;en-us;327283
http://support.microsoft.com/support.../q306/0/05.asp
http://groups-beta.google.com/group/...2e9dbe5a5ab7e3
http://groups-beta.google.com/group/...fe75ab02fd53bc

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

Alan

Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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/A...nSwitcher.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
===========
<al**************@yahoo.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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...b;en-us;327283
http://support.microsoft.com/support.../q306/0/05.asp
http://groups-beta.google.com/group/...2e9dbe5a5ab7e3
http://groups-beta.google.com/group/...fe75ab02fd53bc

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

Alan

Nov 19 '05 #2

P: n/a
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
Juan T. Llibre wrote:
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/A...nSwitcher.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
===========
<al**************@yahoo.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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...b;en-us;327283
http://support.microsoft.com/support.../q306/0/05.asp
http://groups-beta.google.com/group/...2e9dbe5a5ab7e3 http://groups-beta.google.com/group/...fe75ab02fd53bc
microsoft.public.vsnet.general
microsoft.public.dotnet.framework.aspnet
Any help is appreciated.

Alan


Nov 19 '05 #3

P: n/a
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
===========
<al**************@yahoo.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
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
Juan T. Llibre wrote:
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/A...nSwitcher.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
===========
<al**************@yahoo.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
> 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...b;en-us;327283
> http://support.microsoft.com/support.../q306/0/05.asp
> http://groups-beta.google.com/group/...2e9dbe5a5ab7e3 > http://groups-beta.google.com/group/...fe75ab02fd53bc >
> microsoft.public.vsnet.general
> microsoft.public.dotnet.framework.aspnet
> Any help is appreciated.
>
> Alan

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.