Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with using an activeX

Status
Not open for further replies.

peace2007

Programmer
Aug 16, 2007
8
IR
Hi Everybody,

I'm using a prep-written Activex in my C# asp.net application. But when I try to call its functions (Global.vaxClientVoice.SetLicenceKey("TRIAL-LICENSE-KEY");), following exceptions is fired:

System.Runtime.InteropServices.COMException was unhandled by user code
Message="Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))"
Source="mscorlib"
ErrorCode=-2147418113
StackTrace:
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at VAXBROADCASTCLIENTOCXLib.VaxBroadcastClientOCXClass.SetLicenceKey(String LicenceKey)
at Global.VoiceOnline() in ...\App_Code\Global.asax.cs:line 129
at Login.Page_Load(Object sender, EventArgs e) in ...\Login.aspx.cs:line 24
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

What does it mean and how I can resolve it, please?
 
have you googled the error message and what a System.Runtime.InteropServices.COMException is? i would start there.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Could you take a look at this:
Actually I've added VAXBROADCASTCLIENTOCXLib.dll as a reference to my web application and have already registered the related ActiveX.
It's concluded from the discussion in the above link that it should be added to the main form but how I can do this in a web application? Actually I've added to a code behind page: default.cs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top