Asked by:
Copy virtual directories

Question
-
User1510859543 posted
We inherited an old asp.net website application and want to copy it to another site. It has several virtual directories and wondered if there is a way to copy those to the new site? The site will be on the same server so all virtual paths will be the same. Thanks.
Monday, January 15, 2018 3:16 PM
All replies
-
User475983607 posted
We inherited an old asp.net website application and want to copy it to another site. It has several virtual directories and wondered if there is a way to copy those to the new site? The site will be on the same server so all virtual paths will be the same. Thanks.
Virtual directories are "virtual" and point to physical directories. Are you trying to run the new and old sites side by side where the new site has a new URL?
You can learn about IIS virtual directories on the IIS support site.
Monday, January 15, 2018 3:42 PM -
User1510859543 posted
Yes, we want the user to continue on the old site until we convert the new site to a web application project.
Monday, January 15, 2018 3:53 PM -
User475983607 posted
Yes, we want the user to continue on the old site until we convert the new site to a web application project.
Simply make a copy of the existing physical web app folder(s). Then create a new web app in IIS and include any virtual directories. Use the existing IIS application as a template for the new app. This process should take a only a few minutes but you need a fundamental understanding of IIS and how the current app is configured.
For example, if you have services (WCF or REST) or SSL certificates or you need a new URL then these are items you need deal with first. it is not something an ASP support forum can help with as we know nothing about you app. However, creating a new IIS app is a very simple task.
Monday, January 15, 2018 4:10 PM -
User1510859543 posted
Yup, did that but the virtual directories do not copy to the new site. I have to make them manually in IIS.
Monday, January 15, 2018 6:16 PM -
User475983607 posted
Yes, that’s the way it works.Monday, January 15, 2018 11:00 PM