.Net WebService get error when using TransactionOption.RequiresNew

0

I have a WebService project using .Net Framework 2.0. I'm migrating to .Net Framework 4.7.2. Current source code is declaring WebMethod as below:

import System.EnterpriseServices
...
<WebMethod(TransactionOption:=TransactionOption.RequiresNew)>
Public Function LoginUpdate(ByVal Lv_UserId As String) As String

When it's execute SQL query, i receive an error:

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

When i use other TransactionOption: Disabled, NotSupported, Supported, it's working. I receive an error when i use Required and RequiresNew. Please help me.

.net
transactions
asked on Stack Overflow Dec 15, 2020 by Ngọc Nguyên

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0