Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Are you using EF CodeFitst? If so which version? (versions prior 4.3 do have issues with SQL Azure)? Then observe following conditions:</p> <ul> <li>Is your main DbContext named "Entities" or do you explicitly create it with constructor overload which points to "Entities" Connection?</li> <li>Does your my_dbuser@acbdefgh12 user have access rights to the MASTER DB? </li> <li>Does the MyCatalog exists prior you deploy the package?</li> <li>Does your SQL Azure Firewall rules "Allow connections from other Windows Azure Services" (take a look at the screenshot bellow) (I know you mentioned it, but anyway)?</li> </ul> <p><img src="https://i.stack.imgur.com/8UREr.png" alt="enter image description here"></p> <p>I've been seeing exactly same error when either is true:</p> <ul> <li>my_dbuser@acbdefgh12 does not have access to the Master DB to create the MyCatalaog DB (in case it does not exists)</li> <li>MyCatalog DB exists but is different from the DbContext model</li> <li>The main DbContext is named differently than Entities and is created with default parameterless constructor (which in that case uses default EF connection string)</li> <li>SQL Azure server is not configured to accept connections from other Windows Azure Services</li> </ul> <p>The actual error unfortunately does not show anything useful. As I said I've been seeing exactly the same error when failed to comply with above statements.</p> <p>What can I suggest to trace the error is to hook / edit your auto generated DbContext file and explicitly throw an exception with the connection string being used just before the connection is open to make sure of the connection string being used.</p> <p><strong>UPDATE AFTER OVERLOOKING GIVEN Web.Config</strong></p> <p>Not sure whether this is relevant but I noted that in your web.config the assemblybindings are forcing use of MVC 3.0 if version is lower:</p> <pre><code> &lt;runtime&gt; &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt; &lt;dependentAssembly&gt; &lt;assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /&gt; &lt;bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" /&gt; &lt;/dependentAssembly&gt; &lt;/assemblyBinding&gt; &lt;/runtime&gt; </code></pre> <p>While instead my web.config for MVC 4 is slightly different for the Web API project type (.NET FX 4.0 / MVC 4):</p> <pre><code> &lt;runtime&gt; &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt; &lt;dependentAssembly&gt; &lt;assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" /&gt; &lt;bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" /&gt; &lt;/dependentAssembly&gt; &lt;dependentAssembly&gt; &lt;assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /&gt; &lt;bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0" /&gt; &lt;/dependentAssembly&gt; &lt;dependentAssembly&gt; &lt;assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" /&gt; &lt;bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" /&gt; &lt;/dependentAssembly&gt; &lt;/assemblyBinding&gt; &lt;/runtime&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.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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