jcd.no
jcd.no

Reputation: 55

Virtual directory deleted when publishing asp.net application?

A short question. I have a website running at :80. I create a virtual directory "itemimages" under the site that reference E:\itemimages.

When i publish the ASP.net to the website at :80 with "Delete all existing files prior to publish" the virtual directory "itemimages" is also deleted.

Any way to stop this from happening? Or better: Any way to define the virtual directory inside the asp.net application so i will be created in any "fresh" publish?

Thanks in advance!

Upvotes: 0

Views: 525

Answers (1)

Surgical Coder
Surgical Coder

Reputation: 1084

Try publishing the website to the directory, as opposed to the website? I.e. publish to c:\Websites\WebsiteRoot (or whatever the path is), as opposed to http://www.sitename.com/

Or you could try using the "Replace files" instead of deleting all preexisting files ?

Upvotes: 1

Related Questions