Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I can also reproduce this issue. </p> <p>For example, I have a unit test that if run twice in succession will fail the second time. </p> <p>This unit test performs a few things:<br> 1. Drops and recreates the database using a custom Entity Framework 4.1 DbContext Initiailzer<br> 2. Launches a silverlight application<br> 3. Click a button in the silverlight application </p> <p>At this point the silverlight application makes a call to a wcf ria service to query the database that was just created.<br> However, every time the unit test is run a second time, I get the same error.<br> But the error goes away immediately if I click the button again for example.</p> <p>Setting "Pooling=False" in my connection string did not resolve the issue in my case. </p> <p>However, <strong>I was able to resolve the issue by restarting the web server which hosts the silverlight application and ria service after the database is created.</strong> </p> <p>In my case, I just decided to use Cassini Dev Web Server v4 and run the tests on that web server instead of iis. </p> <p>Windows 7 Ultimate x64<br> Visual Studio 2010 SP1<br> Entity Framework 4.1<br> WCF RIA Services SP1 for Silverlight 4<br> Silverlight 4<br> MSTest</p> <p><strong>Edit:</strong><br> Entity Framework 4.1 Update 1 contains a bug fix to remove the need to specify ‘Persist Security Info=True’ in the connection string when using SQL authentication.<br> <a href="http://www.microsoft.com/download/en/details.aspx?id=26825" rel="nofollow">http://www.microsoft.com/download/en/details.aspx?id=26825</a> </p> <p>I am not (yet) sure if the bug is related and might resolve this issue as well.</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.
    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