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

mapping sample file

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.