1
votes

I am getting this error:

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.

Is there a way to run TransactionScope on localhost? I can run the thing on a server but in my local environment I get this error. Is there some settings we need to make so that we can use a TransactionScope?

1
you shouldn't need DTC if your transaction is within a single DB - is this the case?BrokenGlass
well i want the DTC because i use transactions to commit the saved changes...and the DTC doesnt work on Localhost but it does on Deployment Serverzain
TransactionScope does not require DTC as such - it is only escalated if needed across multiple DB connections.BrokenGlass

1 Answers

2
votes

you need to start the service in Windows.

Start > Run. services.msc

enter image description here

UPDATE:

Check your Component Services too;

Control Panel > Administrative Tools > Component Services

enter image description here