惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
Schneier on Security
Schneier on Security
B
Blog RSS Feed
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
A
About on SuperTechFans
Recorded Future
Recorded Future
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
V2EX - 技术
V2EX - 技术
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
V
Visual Studio Blog
Martin Fowler
Martin Fowler
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Exploit Database - CXSecurity.com
F
Full Disclosure
Scott Helme
Scott Helme
H
Heimdal Security Blog
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
Application and Cybersecurity Blog
Application and Cybersecurity Blog
V
Vulnerabilities – Threatpost
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Troy Hunt's Blog
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
Jina AI
Jina AI
S
Securelist
小众软件
小众软件
Simon Willison's Weblog
Simon Willison's Weblog
J
Java Code Geeks
AWS News Blog
AWS News Blog
N
News and Events Feed by Topic
博客园 - 三生石上(FineUI控件)
量子位

博客园 - shcity

Parse string to JSON object Parse date in js blockUI doesn't close when download file in asp.net define namespace in JS Dense_Rank(), Row_Number(), Rank() in sql server reading and writing variable through lock in SSIS script task Fix the issue that cannot open SSIS in BIDS three ways creating custom helpers to show RadioButtonList in MVC using JavaScriptSerializer to serialize object to json using ISerializable to control serialization and deserialization ViewStateAutoManager ReportingService formatting Build my own DataTable split a string into an array through comma div with separated html template - shcity 正则表达式替换日期 半透明的div对话框 foreach 的自动转化类型 在Ajax1.0中调用页面CS文件中的方法
Troubleshooting on TransactionScope
shcity · 2013-08-10 · via 博客园 - shcity

We often met several kinds of errors when using TransactionScope in our applications and some settings are not proper.

Here are some tips on how to resolve these issues.

My scenario is, web application is running on server A, and database used by the web app is running on server B, both servers have firewalls enabled. 

First when try to access the web app, I get below exception: 

Network access for Distributed Transaction Manager (MSDTC) has been disabled. Please enable DTC for network access in the security configuration for MSDTC using the Component Services Administrative tool. 

The error message is obvious, so on server A, I come to Administrative Tools ->Component Services ->right-clicking on My Computer- >Properties->MSDTC, setting it as below: 

 

When I try to access web app again, I get a similar exception shown below: 

The partner transaction manager has disabled its support for remote/network transactions. (Exception from HRESULT: 0x8004D025) 

This time, I made the same setting with previous step on server B on which the SQL Server is running. 

Again, I get another error when access the web application, 

Communication with the underlying transaction manager has failed. 

When I searched on internet, I realized that because I have firewalls running on both servers, and the MSDTCs need get through them. So I configured the firewalls so that MSDTCs will not be blocked by the firewalls. My firewalls are coming with the windows operating system, so I added the msdtc.exe to the Exceptions tab of the windows Firewall window. 

When I access the App, I get the same error as described previously. 

It’s really frustrating, after some investigations, I modified the hosts file under C:\WINDOWS\system32\drivers\etc on database server by adding 192.168.1.121 test-server in it, the IP is the web server’s IP and test-server is the name of the web-server. 

This time, everything works fine, problem is resolved.