0

I am interested in running this MSDN ASP.NET sample (more info on its content on this page).
The install instructions mentions:

To setup this example on your PC (...) publish the 'Quantize' directory from your web server. It should be published as http://[localhost]/quantize.

When I tried to open the solution, it failed to load the Quantize.csproj project.
I have no experience in ASP.NET, but C# desktop application are ok.
What does "publish a directory" mean, and how can I quickly get the code running to test it?

wip
  • 2,313
  • 5
  • 31
  • 47

1 Answers1

1

This means that you need to create virtual directory "quantize" at IIS and link it to folder with this project. To open the project separatly in VS just open Quantize.csproj.webinfo with any text-editor and remove line <Web URLPath....

unconnected
  • 991
  • 1
  • 10
  • 21
  • How do I create a virtual directory? I just found [this MSDN page](http://support.microsoft.com/kb/172138), do you know a more straightforward tutorial? I just tried to remove the URLPath line in csproj.webinfo, and to replace the path by "", but VS says that web server could not be found. Did I misread your answer? – wip Oct 23 '13 at 03:46
  • 1
    You need to remove not the path but hole line (with xml tag). To add Virtual directory open Internet Information Services Manager, go to Sites, right-click Default Web Site and select Add Virtual Directory. – unconnected Oct 23 '13 at 03:50
  • Thanks! I used [this MSDN article](http://msdn.microsoft.com/en-us/library/bb763170.aspx) to open IIS manager (it was not there by default so I had to add it via `Control Panel > Programs and Features > Turn Windows features on or off > Internet Information Services`. Now Visual Studio told me to [convert my project to a web application](http://stackoverflow.com/q/85513/758666) and [register ASP.net 4.0 on the web server](http://stackoverflow.com/q/5836228/758666). I'll try to fix that next. – wip Oct 23 '13 at 05:02