2013-07-26 27 views
0

不确定它为什么要查找实体框架,但无法找到它。完全消隐做什么。尝试在Windows窗体应用程序(.net 4.5 EF5)中使用WCF数据服务(.net 4 EF?)时出错

Could not load file or assembly

在Windows窗体应用程序的app.config有这个

<section name="entityFramework" 
     type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> 

web.config包含

<assemblies> 
    <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> 
</assemblies> 

Form1中:

public Form1(): base() 
    { 
    InitializeComponent(); 
    MAXFMWebEntities context = new MAXFMWebEntities(); 
    } 
+0

建议,什么是Form1中做什么? –

+0

对不起......更新示例 –

+0

好吧,我没有看到任何与WCF有关的内容。 –

回答

相关问题