Assembly error tfs Unable to register assembly "MyAssembly.dll" - access denied

I have a C # web service. I created a client that creates and manages the connection to the service. We have an earlier PC product written in C ++, and they should have an interface for making calls to the service. I created several client calls for them and made the new COM objects visible for data transfer. Then I check the box in the project settings, which says "Registration for COM interoperability." It seems that all this creates and works locally (I am running a visual studio as an administrator). But when I register on my TFS server, the assembly did not indicate: the assembly "MyClient.dll" cannot be registered - access is denied. Make sure you use the application as an administrator. Access to the registry key "HKEY_CLASSES_ROOT \ MyClient.MyClass" was denied.Is there a way to raise my token on an assembly machine or in any other way solve this problem?

+4
source share
3 answers

I understand how it works! If you look at XML in your project, you will see a node that looks like this:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' ==  'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
     <DebugType>full</DebugType>
     <Optimize>false</Optimize>
     <OutputPath>bin\Debug\</OutputPath>
     <DefineConstants>DEBUG;TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
     <PlatformTarget>x86</PlatformTarget>
     <UseVSHostingProcess>false</UseVSHostingProcess>
     <RegisterForComInterop>true</RegisterForComInterop>    
</PropertyGroup>

- , , , com interop. . , , , , , , , , , , TFS . , com, .

+8

MSBuild MSBuild Arguments .

/: RegisterForComInterop =

+11

TFS, , , , . .

TFS . , , "" .

COM- ++

Free COM

+1

Source: https://habr.com/ru/post/1538489/


All Articles