Microsoft KB Archive/190980

= FIX: Error Using UsesTransaction for MTSTransactionMode =

Article ID: 190980

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q190980



SYMPTOMS
When running an ActiveX DLL application where a procedure has the MTSTransactionMode property set to UsesTransaction, the following error occurs the first time the application is run:

You have set the MTSTransactionMode property for one or more Classes in your project(s), but Microsoft Transaction Server is not installed or is the wrong version. This feature requires Windows NT 4.0 with Service Pack 4 or later. MTS functionality will be disabled. Do you want to run anyway?

Any subsequent runnings of the application do not generate the error.



RESOLUTION
This error occurs when Windows NT SP4 or later has not been installed, or when Windows NT Option Pack 4.0 was installed after the installation of Windows NT SP4 or later. To resolve this problem you should reapply Windows NT SP4 or later.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This problem has been resolved in Windows NT SP4.



Steps to Reproduce

 * 1) Start Microsoft Visual Basic, creating a new ActiveX DLL project. Class1 is created by default.
 * 2) From the Tools menu, click Add Procedure.
 * 3) In the Name box, type MyProcedure and click OK.
 * 4) In the Properties window, in the MTSTransactionMode list, click UsesTransaction.
 * 5) From the File menu, click Make Project1.dll.
 * 6) From the Project menu, click Project1 Properties, and then click the Component tab.
 * 7) In the Version Compatibility section, click Binary Compatibility, and then click OK.
 * 8) Press the F5 key to run the application.

NOTE: Click OK if the Project1 Properties dialog box is displayed with the Debugging tab visible.
 * 1) The error above will appear.

NOTE: Click Cancel to return to the Visual Basic IDE.
 * 1) Press the F5 key again to run the application. The error message is not displayed a second time and allows for the application to be run.

Keywords: kbbug kbfix kboswinnt400fix kbide KB190980

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.