Question

I'm trying to call a stored procedure in SQL Server with some parameters and the Procedure is suppose to return a message telling me whether it worked or not.

I have double checked my code and it all seems correct but I keep getting an error saying

The promote method returned an invalid value for the distributed transaction

When the call is executed. I could really use some help.

All my research says that it is related to the MSDTC. However, I have tried calling the procedure with the same values and same code in another Controller in my application, it's an MVC app, and I get the right message back without the error.

Am I wrong to assume that it is not the MSDTC because if that was the case, neither calls to the database would work regardless of the Controller.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top