views:

36

answers:

0

I am writing an ActiveX control to run in Internet Explorer. I am using C# and the System.Runtime.InteropServices namespace.

When I register the control manually on my development machine using regasm, the control works and I can invoke methods on it using Javascript's new ActiveXObject(..) functionality.

However, for production I want to embed the object in my page using an <OBJECT> tag, and this is where I am having trouble.

The ActiveX DLL is failing to register, and when I inspect the ActiveX registration error messages (using the Code Download Error Log Viewer), I see the following:

OCX Registration: no DllRegisterServer entry point in (path to my control.dll). Skipping registration.

Can anyone help me get to the bottom of this? Does my C# code require methods to perform a DllRegisterServer action? Can ActiveX controls developed in .NET be used in this way?

Many thanks.