wcf 服务中使用 entityframework 出现the underlying provider failed on open
来源:互联网 发布:1688卖家数据分析插件 编辑:程序博客网 时间:2024/05/16 00:56
因为在wcf中使用了如下配置
[OperationBehavior(TransactionScopeRequired = true, TransactionAutoComplete = true)]
相当于使用了 TransactionScope 控制整个方法的事务,但这个方法中调用了另一个服务,而当前项目没有控制entityframework 单请求 上下文唯一,所以相当于事务升级,在事务升级为分布式事务的时候,就需要配置 msdtc
于是解决办法两种 1--不使用 TransactionScope 也就是 去掉上面的节点 2--使用 TransactionScope 配置 msdtc ,具体方法后续给上文章
- wcf 服务中使用 entityframework 出现the underlying provider failed on open
- IIS进行发布时WCF服务时出现“The underlying provider failed on Open.”错误。
- The underlying provider failed on open 问题解决
- 关于 The underlying provider failed on Open
- 关于“The underlying provider failed on Open”的问题
- WCF分布式开发常见错误(15):Communication with the underlying transaction manager has failed.
- 解决 java 使用ssl过程中出现"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderExcep
- windows安装Apache,注册服务出现“(OS 5)拒绝访问。 : AH00369: Failed to open the WinNT service manager..."错误
- windows安装Apache,注册服务出现“(OS 5)拒绝访问。 : AH00369: Failed to open the WinNT service manager..."错误
- windows安装Apache,注册服务出现“(OS 5)拒绝访问。 : AH00369: Failed to open the WinNT service manager..."错误
- windows安装Apache,注册服务时出现“(OS 5)拒绝访问。 : AH00369: Failed to open the WinNT service manager..."
- windows安装Apache,注册服务出现“(OS 5)拒绝访问。 : AH00369: Failed to open the WinNT service manager..."错误
- windows安装Apache,注册服务出现“(OS 5)拒绝访问。 : AH00369: Failed to open the WinNT service manager..."错误
- windows安装Apache,注册服务出现“(OS 5)拒绝访问。 : AH00369: Failed to open the WinNT service manager..."错误
- windows安装Apache,注册服务出现“(OS 5)拒绝访问。 : AH00369: Failed to open the WinNT service manager..."
- Failed to open/create the internal network Vagrant on Windows10
- C#中使用EntityFramework出现报错问题
- 在IAR 中出现the stack plug-in failed to set a breakpoint on "main"
- u-boot的编译
- MFC小知识点
- BAPI
- android camera(三):camera V4L2 FIMC
- 各种排序算法的比较
- wcf 服务中使用 entityframework 出现the underlying provider failed on open
- jsp导出excel报response之类的异常
- Let the Balloon Rise
- android camera(四):camera 驱动 GT2005
- 解决哈希(HASH)冲突的主要方法
- Linux GCC常用命令
- Android Project from Existing Code 生成 R 文件错误、失败等问题解决办法 - 持续更新
- 看埃洛普如何在诺基亚向微软效忠
- ios和Android的PK