???? ID: 252711 - ????? ???????: 02 ?????? 2010 - ??????: 2.0

PRB: "Runtime Error 70 : Permission Denied" Occurs When Attempting to Invoke the Methods of a Secure MTS Object from a VB Application

?????? ??????This article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.

?? ????? ??

??? ?? ??????? ???? | ??? ?? ??????? ????

?????

When you attempt to invoke the methods of a secure Microsoft Transaction Server (MTS) object from a Visual Basic application, the following error message appears:
Runtime error '70': Permission denied

????

This error occurs under the following circumstances:
  • TheEnable Authorization Checking?????? ?? ?? ?? ?? MTS. ??? ??? ?? ???
  • ????? ?? Visual Basic ????????? ???????? ???? ?? ?? Microsoft Windows NT ?????????? ???? ???? ???? ??? ??? MTS ??? ?? ??????? ?? ??????? ???? ?? ??? ?????? ????? ?? ????

????????

?? ?????? ?? ?? ???? ?? ???, ????? ??? ?? ???? ?? ???? ????::
  • ??? ??????????? ???? ????? ??????? ?? ??? ?????? ??? ?? ?? ???? ??? ??? ??? MTS Explorer ??? ??? ???????? ?? ??? ????? ?? deselecting??????? ???? ????? ??????? ???????????????? ?? ????? ????.. ?? ?????? ???? ?? ??? viable ??????? ?????? ???, ?? ?? MTS ??? ?? ??? ????????? ??????? ???? ?????

  • Assign the Windows NT User ID that is being used to launch the MTS object from the Visual Basic application to one of the Roles authorized to invoke the methods of the MTS object.

??????

?? ??????? ??????? ?????? ??..

???? ???????

In MTS, Roles can be assigned to:
  1. A component registered in an MTS Package, -and-

  2. Individual COM interfaces that the component implements.
The Roles assigned to an MTS component are defined in the MTS Package in which the component is registered. Valid NT User and group accounts are assigned to the Roles defined in the MTS Package.

The following sections document the steps required to perform common tasks related to defining Roles for an MTS package, and assigning them to components and their interfaces.

Steps to Define a New Role in an MTS Package

  1. Launch the MTS Explorer.
  2. Expand the Package for which you wish to create a new Role.
  3. Right-click on theRolesfolder of the package, select???, ?? ???? ??? ?? ??? ????Role.
  4. ?????New Roledialog box, specify a name for the role that you are creating, and then clickOKto create the Role.

Steps to Assign Windows NT User/Group Accounts to a Role

  1. In MTS Explorer, expand the Role to which you wish to add the NT user/group accounts.
  2. Right-click on theUsersfolder of the Role, select???, ?? ???? ??? ?? ??? ??????????????.
  3. ?????Add user and groups to a Roledialog box, click to select and then add the Windows NT user and group accounts that you wish to assign to the Role.

Steps to Assign a Role to an MTS Component

  1. Launch MTS Explorer.
  2. Select and expand the component to which you wish to assign a Role.
  3. Right-click on theRole Membershipfolder of the component, click???, ?? ???? ??? ?? ??? ????Role. ASelect Rolesdialog box that lists the various roles defined for the package in which the component is registered is displayed
  4. Select the Role that you wish to assign to the component and then clickOK.

Steps to Assign a Role to an Interface Implemented by an MTS Component

  1. Launch MTS Explorer.
  2. Select and expand the component to whose interface you wish to assign a Role.
  3. Expand the interfaces folder of the component.
  4. Expand the interface to which you wish to assign a Role.
  5. Right-click on theRole Membershipfolder of the interface, click???, ?? ???? ??? ?? ??? ????Role. ASelect Rolesdialog box that lists the various roles defined for the package in which the component is registered is displayed.
  6. Select the Role that you wish to assign to the interface, and then clickOK.

???? ???? ???? ??:
  • Microsoft Transaction Services 2.0
??????: 
kbprb kbmt KB252711 KbMthi
???? ?????? ???????????? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:252711  (http://support.microsoft.com/kb/252711/en-us/ )