Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Putting Project Somewhere Other than InetPub/wwwroot
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00749664
Message ID:
00750359
Views:
23
Hi Roger,

You can definitely do this.

First, create a physical directory manually (named MarWebProject). Then map the subdirectory to a virtual directory (perhaps also called MarWebProject). When you create the project using Visual Studio .NET, the wizard asks you to type the path of virtual directory on your machine (the default is http://www.localhost/WebApplication1). To rename the application and to have the application source files land in the MarWebProject directory, just type http://www.localhost/MarWebProject into the project's Location box.

>That's exactly what I'm trying to do Carl.
>
>Mind telling me what you did?
>
>>I do have one ASP.NET application (E-Transactions) setup that way under IIS (Local path) pointing to
>>F:\Structure\Projets\C# NET\CBCINC\E-Transactions
>>and an application name called E-Transactions (Not blank) and everything work well. Nothing is under \Inetpub\wwwroot .
>>
>>Carl
>>
>>
>>>Well, yes that does work. But it changes the location of inetpub\wwwroot. I just want to change the location of one application.
>>>
>>>It has to be possible. If you look at the sites in IIS Manager, "IISHelp" is in C:\WINDOWS\HELP\IISHELP, "Printers" is in C:\WINDOWS\WEB\PRINTERS, "CrystalReportWebFormViewer" is in C:\Program files\Microsoft Visual Studio .NET\Crystal Reports\Viewers\, etc.
>>>
>>>Thanks for the idea though..
>>>
>>>>Try to change the default web site of IIS to your new location...
>>>>
>>>>
>>>>
>>>>>I don't want the files for an ASP.NET project in C:\InetPub\wwwroot; I want the files for this project in D:\MarWebProject. I've tried everything I can think of to have the web site created where I want it created:
>>>>>
>>>>> 1. Used IIS Manager to create a virtual directory in D:\MarWebProject. VS.NET will create the project in the correct location but starting the app for debugging yields an error message:
>>>>>
>>>>>Error while trying to run project: Unable to start debugging on the web server.
>>>>>Server side-error occurred on sending debug HTTP request.
>>>>>
>>>>>Starting without debugging yields a VS error in the browser:
>>>>>
>>>>>Access denied to D:\MarWebProject directory.
>>>>>Failed to start monitoring directory changes.
>>>>>
>>>>>
>>>>> 2. Created the project in VS.NET, copied the files from C:\InetPub\wwwroot to D:\MarWebProject. Well, that doesn't work either; you can't change the path to the real directory in IIS Manager (you can't even hack the MetaBase because it isn't stored in a drive:\directory format or a //machine/directory format)
>>>>>
>>>>> 3. Tried installing the FrontPage Server Extensions into D:\MarWebProject because I noticed that webs created with VS.NET have the _vti folders but webs created with IIS Manager don't. That didn't help either.
>>>>>
>>>>>I've searched MSDN and Google searched trying to find some answers. Found plenty of information on getting started with ASP.NET but nothing on setting up a proper, well-organized development environment. Surely you don't mean everything has to be dumped on the system drive?
>>>>>
>>>>>Does anyone know the magic Microsoft spell to make this work?
>>>>>
>>>>>Roger
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform