Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows Azure with Multiple Sites in One Role not transforming 2nd web.debug.config to web.config
    text
    copied!<p>I am using Web.Config transformations to deploy my application to Azure. I also have 2 sites in my service, a public website, and private WCF site endpoint. I am deploying <a href="http://www.wadewegner.com/2011/02/running-multiple-websites-in-a-windows-azure-web-role/" rel="nofollow noreferrer">multiple sites to a single role</a>.</p> <p>When I deploy, the website project (for which the Azure Deploy project is set) transforms the web.config correctly. However, the WCF project (which is only addressed as a "site" in the .csdef file) does not transform the web.debug.config file to web.config.</p> <p><a href="https://stackoverflow.com/questions/5134875/azure-multiple-web-sites-with-one-role-but-some-dont-get-rebuilt-when-i-publish">This question</a> is similar, but only addresses the projects building. I have set the dependencies in my project.</p> <p><a href="https://stackoverflow.com/questions/6181917/azure-multiple-sites-on-1-role-physical-directory-post-build-event">This workaround</a> forces the transform of the web.config file, but it still does not appear in my deployment on Azure. </p> <p>I suspect that <a href="http://connect.microsoft.com/VisualStudio/feedback/details/641913/visual-studio-azure-tools-sdk-1-3-not-packaging-multiple-sites-correctly" rel="nofollow noreferrer">this bug</a> still exists, and I have also upgraded to the <a href="http://msdn.microsoft.com/en-us/library/windowsazure/hh403991.aspx" rel="nofollow noreferrer">Azure 1.5 SDK</a> in hopes that it will fix it.</p> <p>I would like to try putting my <a href="https://stackoverflow.com/questions/4734776/azure-web-config-per-environment">configuration data in cscfg files</a> but I am using Entity Framework Code First, and I do not know how to get my connection string to work with this format. EFCF seems to rely on web.config explicitly.</p> <p>Any help would be appreciated.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload