The project referencesC ++WrittenComComponent, previously inWindows Server 2008 r2 + vs 2010No problem. Use it after reinstalling the system.Windows 7 + V. S. 2010, Compilation error:
Error1 cannot register assembly "E: \ workfolder \ cardmanagement \ sourcecode \ cardmw \ rare. card. libary \ bin \ debug \ rare. card. libary. DLL "-Access denied. please make sure you're running the application as administrator. access to the registry key 'HKEY _ classes_root \ rare. card. libary. mifareonehelper 'is denied. rare. card. libary
Solution:
If you compile project-properties-Register for com InterOPIf the preceding check box is removed, a running error may occur.
Solution: UseRegasmManual registration
Win7Must be run as the Administrator; otherwise, the registration will not succeed.
C: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ regasm.exe
If not, restartVS, Select to run as administrator, You can automatically register
In fact, there is another work und, which can be opened directly in the Start Menu Using the Administrator identity.VSYou can do it, but it is a little troublesome to open it every time.