Register Econicis.Api.Dll

General Discussions
Best Practices
Examples

Register Econicis.Api.Dll

Postby stampe123 » Wed Dec 21, 2011 12:04 pm

Hi

when I try to registrer this .dll I get a error telling that entry point DllRegisterServer was not found.

I Win7 i use C:\Windows\SysWOW64\Regsvr32 and in XP just regsvr32 but both fails.

I can add an reference to the samme dll and use it in VS2010

I'm running the regsvr32 with administrator rigths

Any ideas ?

BR

Peter
-
stampe123
 
Posts: 2
Joined: Wed Dec 21, 2011 10:52 am

Re: Register Econicis.Api.Dll

Postby brian0905 » Tue Apr 24, 2012 8:22 am

The Economics.api.dll is a managed assembly. It was written in a .NET language and compiled for the .NET platform. The error you get is due to the fact that regsvr32 is given you an error is that it was not made for managed assemblies. Regsvr32 is made for COM components and you got a managed assembly.

One question im thinking about is, why do you need to register it in the first place, this only makes sense if you have a solution where multiple applications need to share the same assembly (economics.api.dll). In other scenarios this should not be necessary to register the assembly.

If you do want to register the assembly the command for managed assemblies are "gacutil" and the documentation is found here: http://msdn.microsoft.com/en-us/library ... 2c(v=vs.80).aspx

Hope this helps
-
brian0905
 
Posts: 5
Joined: Fri Apr 20, 2012 8:33 am


Return to Miscellaneous



cron