Windows Azure with multiple sites in one role does not convert the second web.debug.config to web.config

I am using Web.Config transformations to deploy my application in Azure. I also have 2 sites in my service, a public website and a private WCF endpoint. I am deploying several sites for a separate role .

When deployed, the website project (for which the Azure Deploy project is installed) correctly converts web.config. However, the WCF project (which is only considered a β€œsite” in the .csdef file) does not convert the web.debug.config file to web.config.

This question is similar, but applies only to projects. I installed the dependencies in my project.

This workaround forces the web.config file to be converted, but it still does not appear in my deployment on Azure.

I suspect this error still exists, and I also upgraded to the Azure 1.5 SDK in the hope that it will fix it.

I would like to try to put my data in cscfg files , but I use the Entity Framework Code First, and I do not know how to get the connection string to it, work with this format. EFCF explicitly relies on web.config explicitly.

Any help would be appreciated.

+6
source share
1 answer

When you add another web role, you provide the physical field to indicate what you want to deploy, and all the SDK does is copy the files found along the way to your package. It does not build.

You should probably build and publish the web application that you want to deploy, and then specify the physical directory at the output of this publishing step. (Make sure the directory you install in the physical directory contains exactly what you want to deploy to the cloud.)

+8
source

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


All Articles