Reputation: 7078
How can i still Publish the Web Application to IIS when this web application is bound to Windows Azure Web Role in the same solution.
When I Right-Click and Publish the Web Application, it generates Folders/Files with missing Web.config file.
I'm Not sure if this is the only missing one !
UPDATE:
i do have the structured web.config of VS 2012 (debug, release) with other web.Debug/Release.config files empty
UPDATE2:
I'm Using Release Configuration with the following Transform
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
</system.web>
</configuration>
Upvotes: 1
Views: 877
Reputation: 12174
Setup a Publish Profile for the Web Application project (right click on the Web Application and use a Local Connection).
http://localhost:<port>/
To publish the Azure Web Role, you right-click on the Cloud Project an "publish".
Also, make sure also that in the properties for web.config, Build Action = "Content" and Copy to Output Directory = "Do Not Copy"
Upvotes: 2