1

我创建了一个自定义解析器并使用实体框架 4.0 的数据访问层从数据库中获取数据,实体框架连接字符串保存在 BTSNtsvc.exe.config 文件中

<add name="MadagascarDbEntities" 
    connectionString="metadata=res://*MadDb.csdl|res://*/MadDb.ssdl|res://*/MadDb.msl;provider=System.Data.SqlClient;provider 
    connection string=&quot;data source=ttttt;initial catalog=MadagascarDb;persist security info=True;user id=eeeee;password=xxxxxx;multipleactiveresultsets=True;App=EntityFramework&quot;" 
    providerName="System.Data.EntityClient" />

但是我收到以下错误...

The invoked member is not supported in a dynamic assembly. 
Source: Microsoft.Practices.ESB.Resolver.ResolverMgr 
Method: System.Collections.Generic.Dictionary`2[System.String,System.String] Resolve(Microsoft.Practices.ESB.Resolver.ResolverInfo, Microsoft.BizTalk.Message.Interop.IBaseMessage, Microsoft.BizTalk.Component.Interop.IPipelineContext) 
Error Source: mscorlib 
Error TargetSite: System.IO.Stream GetManifestResourceStream(System.String) 
Error StackTrace: at System.Reflection.Emit.InternalAssemblyBuilder.GetManifestResourceStream(String name)

任何线索?

谢谢你的帮助

4

0 回答 0