Note that there are some explanatory texts on larger screens.

plurals
  1. POError Debugging MVC 3 after Publish
    primarykey
    data
    text
    <p>I had done one publish to my MVC application. After that, I cannot debug it anymore! This is the error. It seems that my visual studio web server is loading machine.config</p> <h2>Server Error in '/' Application.</h2> <p>Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. </p> <p>Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty.</p> <p>Source Error: </p> <p>Line 255: Line 256: <p>Source File: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config Line: 257 </p> <hr> <p>Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237 </p> <p>This is how my web.config looks like, and there is nothing in my code that uses ASP.Net Membership as my authentication mode is "Windows". I did manage to run it again in Visual Studio once, after I set the build mode from "Release" to "Debug" vice versa, but after I published again today.. The problem came back.</p> <pre><code>&lt;configuration&gt; &lt;connectionStrings&gt; &lt;clear/&gt; &lt;add name="ApplicationServices" connectionString="Data Source=SCG1SQL-64;Initial Catalog=Metallurgy;Integrated Security=True" providerName="System.Data.SqlClient" /&gt; &lt;add name="mandb100ConnectionString" connectionString="Data Source=scg1sql-64;Initial Catalog=mandb100;Integrated Security=True" providerName="System.Data.SqlClient" /&gt; &lt;/connectionStrings&gt; &lt;appSettings&gt; &lt;add key="webpages:Version" value="1.0.0.0" /&gt; &lt;add key="ClientValidationEnabled" value="true" /&gt; &lt;add key="UnobtrusiveJavaScriptEnabled" value="true" /&gt; &lt;/appSettings&gt; &lt;system.web&gt; &lt;authentication mode="Windows"/&gt; &lt;authorization&gt; &lt;deny users="?" /&gt; &lt;/authorization&gt; &lt;/system.web&gt; &lt;/configuration&gt; </code></pre>
    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