Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to load the specified metadata source when using EntityDataSource - Entity Framework
    primarykey
    data
    text
    <p>My MyModel.edmx is in the assembly DataAccess.dll. This assembly is referenced in my web project (C#)</p> <p>My entity connection string is the problem.</p> <p>This is what I copied from app.config to my win.config:</p> <pre><code>&lt;add name="MyModelEntities" connectionString="metadata=res://*/MyModel.csdl|res://*/MyModel.ssdl|res://*/MyModel.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=xxx;initial catalog=xxx;persist security info=True;user id=xxx;password=xxx;multipleactiveresultsets=True;App=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt; </code></pre> <p><strong>The problem is I am getting error that metadata source can't be loaded.</strong></p> <p>I am sure that my model name is correct. I have checked dll with Reflector.</p> <p>So, I am thinking I should include my dll into connection string, and I tried this</p> <pre><code>&lt;add name="MyModelEntities" connectionString="metadata=res://DataAccess.dll/MyModel.csdl|res://DataAccess.dll/MyModel.ssdl|res://DataAccess.dll/MyModel.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=xxx;initial catalog=xxx;persist security info=True;user id=xxx;password=xxx;multipleactiveresultsets=True;App=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt; </code></pre> <p>But I am getting error that <strong>DataAccess.dll can't be find in list of assemblies enumerations</strong>.</p> <p>Is there any way to reference my model inside dll directly. <strong>And my dll is not strongly named dll.</strong></p> <p>Any help is appreciated.</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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.
 

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