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.
User contributions licensed under CC BY-SA 3.0