mapping sample file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have been trying to run the sample files in C#.net, but it gives me this error

unable to open Web project'aspenet_cs/Chapter_01.' The file path 'C:\MS PressBooks\ASPNETBS_CS\Chapter_01
does not correspond to the URL "http://Localhost:/aspnetsbs_cs/Chapter_01.
The two need to map to the same server location. HTTp Error 404: Object Not Foun

I have xp pro. I've tried to find how to do this, but haven't been successfull yet
Any help would be great, thank

Wylie
 
Your C# project will have a file with extension .webinfo. This file includes the information of the IIS mapping of the particular project.
Map the IIS virtual directory to the project roor folder and make sure its been configured as an application in IIS.

Then edit the .webinfo file to point the correct location and open the .csproj file from VS.NET

HTH
Sudhakar Sadasivuni
Microsoft .NET MVP | MCAD
http://weblogs.asp.net/ssadasivuni

----- wylie wrote: -----

I have been trying to run the sample files in C#.net, but it gives me this error.

unable to open Web project'aspenet_cs/Chapter_01.' The file path 'C:\MS PressBooks\ASPNETBS_CS\Chapter_01'
does not correspond to the URL "http://Localhost:/aspnetsbs_cs/Chapter_01.'
The two need to map to the same server location. HTTp Error 404: Object Not Found

I have xp pro. I've tried to find how to do this, but haven't been successfull yet.
Any help would be great, thanks

Wylie
 
Back
Top