regasm

RegAsm dll no types registered

瘦欲@ 提交于 2019-12-22 06:49:44
问题 I am attempting to register a .dll using RegAsm. It is a .NET 2.0 dll. All classes are public and ComVisible is true. I am still getting the RA0000 : No types were registered error. Below is the code and assemblyinfo. Any help would be great, thanks! STARTelnet.cs /** *Steven T. Norris Created: 3/27/2012 *Last Updated By: Steven T. Norris Last Updated On: 3/27/2012 * */ using System; using MinimalisticTelnet; using System.Net.Sockets; /** * @brief Used to connect to, read, and respond to a

Problem registering a dll - Access Denied

别说谁变了你拦得住时间么 提交于 2019-12-22 05:09:36
问题 When trying to run regasm in Win2008 Server: regasm "C:\Program Files\FooProg\Bar.dll" /tlb:"C:\Program Files\FooProg\Bar.tlb" I get the following error: RegAsm : error RA0000 : An error occurred while saving the exported type library: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) what does this mean 回答1: The account under which you run regasm doesn't have rights to write to C:\Program Files\FooProg\ and that's why regasm fails to write the .tlb. Run regasm under an

What does RegAsm really do? Where are files copied?

落爺英雄遲暮 提交于 2019-12-22 05:01:11
问题 We have a plugin for IE based on spicIE, the purpose is to connect to some external devices. To connect to those external devices, another company developed their token & DLLs. We need to have some ActiveX's and DLL's to do authentication by token. The problem is that the plugin we developed for IE, in final part have a install.bat file, that runs a RegAsm and registers the DLL and after that plugin (or its changes) is viewable in IE. When running the plugin from IE, our code can not find

How to unregister my .net assembly when it's no longer in the same location?

三世轮回 提交于 2019-12-21 04:59:19
问题 I have a dll that's registered for com interop, so under HKLM\Software\Classes\CLSID[my guid]\InprocServer32[my version no]\Codebase it has the path of the registered dll. However, I've rearranged my folder structure so that path is no longer correct. Is there a way of unregistering that dll without putting it back, then unregistering, then removing the file again? And what if I don't have that dll any more, or only have one with a different version number? 回答1: Different version numbers

Why exactly does regasm warn me about signing with a strong name?

陌路散爱 提交于 2019-12-19 17:41:06
问题 If I want to make a .NET assembly usable as a COM server I have to add a set of attributes and then use regasm to register it as a COM server. If the assembly is not signed with a strong name regasm when run with /codebase key shows a RA0000 warning saying that the assembly could interfere with other assemblies on the same computer and I should sign it with a strong name, but registration succeeds and it even works just fine. AFAIK strong names are intended to prevent so-called DLL hell. But

Why does Regasm put ProgId into HKEY_CURRENT_USER?

旧城冷巷雨未停 提交于 2019-12-19 08:52:50
问题 I have two Virtual Machines that I wish to (Wix) install my software onto. One is Windows XP SP2 and another is Windows XP SP1. Neither of them use domains, and both of them have the local user Administrator with admin privileges. Running RegAsm.exe to register MyApp.dll on the machine with SP3 puts my ProgId in the folders: HKEY_CLASSES_ROOT\MyAppProgId HKEY_LOCAL_MACHINE\Software\Classes\MyAppProgId whereas running it on the SP2 machine puts it in the folders: HKEY_CLASSES_ROOT\MyAppProgId

How to do RegAsm so that it cover 32-bit and 64-bit?

有些话、适合烂在心里 提交于 2019-12-18 07:29:13
问题 I have a DLL file prepared by C# and my system is Windows 7 64-bit. When i apply the RegAsm its not adding the registry to 64-bit path but only adding it to 32-bit path. "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe" /register /codebase "C:\o.dll" then if i check my GUID in regedit.exe i see that i have it only in 32-bit registry path: HKEY_CLASSES_ROOT\CLSID\{... my guid is found here ....} instead of HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{... not found my guid ...} As a result i

How do you develop a C# dll in Visual Studio 2010 that can be registered on another pc via regasm? [duplicate]

回眸只為那壹抹淺笑 提交于 2019-12-14 03:36:22
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: regasm RA0000: No types were registered I have a fairly simple component, strongly named and built into a dll file. I give that file to a co-worker to register on his Windows 7 machine. He uses the command: (from the location he has copied the file to) regasm mycontrol.dll And gets the reply RegAsm : warning RA0000 : No types were registered. Why? 回答1: Has anyone actually developed a C# dll in Visual Studio

C#: Regasm generating registry entries for every class in my COM DLL?

試著忘記壹切 提交于 2019-12-13 15:13:30
问题 I'm writing a class-library (IE BHO) in C# and currently wrangling with the large volume of what I think is junk output coming from REGASM's generated registry keys. The short version is this: I only want to expose a handful of classes (currently: ONE class) to IE (and the rest of COM). Only one class has the ClassInterfaceAttribute and GUID stuff set, and I can test that the add-on only requires the COM registry keys for this class -- and yet, REGASM generates GUIDs and registry keys for

Register 32-bit COM server (and generate TLB) for use with 32-bit and 64-bit clients

懵懂的女人 提交于 2019-12-13 05:18:25
问题 Method 1: x86 target platform I have a .NET class library that is intended for use with both 32-bit and 64-bit clients, some of which are .NET projects and some of which are C++ MFC projects. I can get the library to work with the 32-bit clients, but the 64-bit clients get a "Class not registered" exception. Poking around the registry, it looks like only the win32 key is being set (HKEY_CLASSES_ROOT\Wow6432Node\TypeLib{GUID}\1.0\0\win32). Some notes on a few of my settings: "Register for COM