Note that there are some explanatory texts on larger screens.

plurals
  1. POpublishing mvc4 app from vs2012 not picking up release settings
    primarykey
    data
    text
    <p>I am using VS2012 and having some troubles publishing an mvc4 website.</p> <p>None of my release settings are applied. </p> <p>Within my configs I have this</p> <p>Web.Config</p> <pre><code> &lt;compilation debug="true" targetFramework="4.0" /&gt; &lt;authentication mode="Forms"&gt; &lt;forms loginUrl="~/Account/Login" timeout="2880" name="***" enableCrossAppRedirects="true" /&gt; </code></pre> <p>Release</p> <pre><code> &lt;?xml version="1.0"?&gt; &lt;!-- For more information on using Web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 --&gt; &lt;configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"&gt; &lt;appSettings&gt; &lt;add key="ApiBaseUrl" value="https://api.mydomain.com/api/" xdt:Transform="Replace" xdt:Locator="Match(key)" /&gt; &lt;/appSettings&gt; &lt;!-- In the example below, the "SetAttributes" transform will change the value of "connectionString" to use "ReleaseSQLServer" only when the "Match" locator finds an atrribute "name" that has a value of "MyDB". &lt;connectionStrings&gt; &lt;add name="MyDB" connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/&gt; &lt;/connectionStrings&gt; --&gt; &lt;system.web&gt; &lt;compilation xdt:Transform="RemoveAttributes(debug)" /&gt; &lt;authentication mode="Forms" xdt:Transform="Replace"&gt; &lt;forms loginUrl="~/Account/Login" timeout="2880" name="***" enableCrossAppRedirects="true" domain="www.mydomain.com"/&gt; &lt;/authentication&gt; &lt;!-- In the example below, the "Replace" transform will replace the entire &lt;customErrors&gt; section of your Web.config file. Note that because there is only one customErrors section under the &lt;system.web&gt; node, there is no need to use the "xdt:Locator" attribute. &lt;customErrors defaultRedirect="GenericError.htm" mode="RemoteOnly" xdt:Transform="Replace"&gt; &lt;error statusCode="500" redirect="InternalError.htm"/&gt; &lt;/customErrors&gt; --&gt; &lt;/system.web&gt; &lt;system.net&gt; &lt;mailSettings&gt; &lt;smtp xdt:Transform="Replace"&gt; &lt;network host="localhost"/&gt; &lt;/smtp&gt; &lt;/mailSettings&gt; &lt;/system.net&gt; &lt;dotless xdt:Transform="Replace" minifyCss="true" cache="true" web="false" /&gt; &lt;/configuration&gt; </code></pre> <p>I am publishing when set to Release.</p> <p>Can anyone see anything wrong I am doing?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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