The web deployment project could not display the path to enable virtual

I create my site with a web deployment project, but the build fails with a number of errors related to the "#include virtual" directives on my main page.

Inclusions are required to import a central set of template files.

Here is an example of the include directive and its related error:

<!-- #include virtual="/v3/sits/pdpdev/assets-templates/inc/head.html" -->

/PDPRegistration.csproj/Pages/ContentPage.Master(15): 
error ASPPARSE: Failed to map the path 
'/v3/sits/pdpdev/assets-templates/inc/head.html'.

An error for each included file appears several times. I'm not sure what is displayed or why, but this was never a problem until I started using WDP (which I would like to change web.config depending on the build environment, by the way.)

The project is created locally on my PC and then copied to the web server via the mapped drive. I found several solutions on the network using the IIS metabase - they did not quite understand me, and I'm not sure if they use the data, how I build and deploy the project (i.e. I will have to build on the same system as IIS to use metabase?)

Can anyone suggest how I can build my project using WDP?

+3
source share
1 answer

SSI Framework, include User Control (.ascx) MSDN . : support.microsoft.com/kb/306575

0

Source: https://habr.com/ru/post/1746222/


All Articles