Working Directory for Web Apps

P

Paul

Hi All

I have just created a new solution and project in VS 2003 as a VB Web
Application called "CRM". VS has created a folder in Inetpub/wwwroot/crm for
me and set up a virtual directory.

This is OK, but I was wandering if I could work from a different directory
on my D drive e.g. D::\Work\MyProject and modify the virtual directory to
point to this. I have tried this, by my VS project will not work if I move
the files and delete the folder in Inetpub/wwwroot/crm (even though the
virtual web will still work as I have modified the web files location).

I had a similar problem with the old version and can't remember how I got
round it. Also, is there any advantage of using a virtual directory compared
to an actual website on win 2003?

Thanks in advance for any advice!
Paul
 
G

Guest

The easiest way:

1. Move the files where you desire.
2. Delete the web application in IIS
3. Right click on the folder you put the files in and choose web sharing
4. Give it the same name you gave the original project
5. Ensure the web root is an application in IIS (if not change to an
application in properties)

Double click the project file and save this "new" solution. You can save
over the old solution, if you desire.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
P

Paul

That worked fine, thanks for you help!

Cowboy (Gregory A. Beamer) - MVP said:
The easiest way:

1. Move the files where you desire.
2. Delete the web application in IIS
3. Right click on the folder you put the files in and choose web sharing
4. Give it the same name you gave the original project
5. Ensure the web root is an application in IIS (if not change to an
application in properties)

Double click the project file and save this "new" solution. You can save
over the old solution, if you desire.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top