Unable to register DLL using Regsv32 - error “Dll


I have written my own class library using C# 3.5. For using this dll in classic ASP application, I am trying to register this dll in Registry using regsvr32 command. But I am getting typical error like "The module "TestDll.dll" was loaded but the entry-point DllRegisterServer was not found.Make sure that "TestDll.dll" is a valid DLL or OCX file and then try again**."

I found other option to include switch /tlb in regsvr32 command, by its this going ahead. But I am sure if really my dll is getting registered or not ?

Could you please let me know what am I missing here ? Its very urgent.

(Note :- I have OS windows 7 on my machine. Does it make difference ?) Quickest response will be really appreciated.

Regards Sarang


You are attempting to register a dll that is not a COM library. Pre .NET com dlls need to export a set of functions and interface implementations that support things like self registration (in your case) and class factory things. These standardized exports were essentially the hooks by which the com implementation in windows was/is able to interact with a DLL via com conventions.

For .NET, these exports, and the tools that need them like regsvr32, do not apply directly to the assemblies we create, even if they are set up for com interop.

Registration and type initialization is handled quite differently for .net interop. Registration for instance is handled by a tool called regasm.

Do some research on com callable wrappers .net/com interop. http://msdn.microsoft.com/en-us/library/bd9cdfyx.aspx


  • Word 2016 vba add-in for Mac
  • The module “.dll” was loaded but the entry-point was not found
  • VBA compatibility issues: 64-bit Windows7 (MSINET missing) and Trim function compatibility issues
  • Can not debug an ActiveX inside a VB6 project with several components inside
  • Accessing Access Gateway programmatically
  • Are there any modern/ancient CPUs / microcontrollers where a cached byte store is actually slower th
  • Can i check if a chunk of memory (e.g., allocated using malloc) stays in the cache?
  • Exporting a subset of a out-of-proc COM server by using an in-proc-server
  • SignalR dependency injection via Spring.Net
  • Phalcon\\Mvc\\Model::validation() and non-model validators
  • How do I configure Maven Cargo to use an embedded Tomcat server?
  • if some function is not optimized does it mean that all functions where it is declared are not optim
  • ConnectivityManager.CONNECTIVITY_ACTION deprecated
  • Available space left on drive - WinAPI - Windows CE
  • Translating C# to PowerShell in InterIMAP
  • Hide HTML elements without javascript, only CSS
  • Copy to all folders batch file?
  • Unable to decode certificate at client new X509Certificate2()
  • How do I access an unhandled exception in an MVC Error view?
  • Very simple C++ DLL that can be called from .net
  • Moving mysql files across servers
  • Google Custom Search with transparent background
  • ilmerge with a PFX file
  • Apache 2.4 and php-fpm does not trigger apache http basic auth for php pages
  • vba code to select only visible cells in specific column except heading
  • Why is the timeout on a windows udp receive socket always 500ms longer than set by SO_RCVTIMEO?
  • Release, debug version and Authorization Google?
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Is there a mandatory requirement to switch app.yaml?
  • Buffer size for converting unsigned long to string
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • Hits per day in Google Big Query
  • Why joiner is not used after Sequence generator or Update statergy
  • coudnt use logback because of log4j
  • Exception on Android 4.0 `android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode)`
  • File not found error Google Drive API
  • How to get Windows thread pool to call class member function?
  • Is it possible to post an object from jquery to bottle.py?
  • To Get the radio button value in ruby on rails