C # AtiveX Installation Issues

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/a1376871144/article/details/102667021

C # AtiveX After registration can be run on the machine, but will rely on you to generate and debug or Release files, still, when the installation package is installed on another computer, AtiveX plug-in can not be called after packaging.

1. First check the IE security, the issue of whether to start Ative

2. Check the registry again

My problem lies in the registry, a lot of online display js call AtiveX, the registry location in the HKEY_CLASSES_ROOT directory, but I did not, only found in the HKEY_LOCAL_MACHINE directory.

Solution: regasm registration, followed by the / codebase, becomes global, the contents of the AtiveX occurs naturally under HKEY_CLASSES_ROOT directory

cd / d C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319

regasm   xxx.dll    /codebase

Guess you like

Origin blog.csdn.net/a1376871144/article/details/102667021