Go Back   Velocity Reviews > General Computer Discussion > Software
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 03-04-2008, 07:21 PM   #1
Default COM object in asp.net


I have an ActiveX OCX that I'd like to use on the server side, IIS, ASP.NET 2.x. It's a simple control, Just three properties and 4 methods. I've added the reference in VWD and it's created a wrapper called Interop.MyDLL.MyControl and placed a DLL called Interop.MyDLL.dll in the BIN folder on IIS. I then put a button and a textbox on my page... in the button's click event I added (using VB)...

Dim MyNewControl As New MyDLL.MyControl
MyTextBox.Text = MyNewControl.MyProperty


opening the page in the browser and clicking the button I get...
System.Runtime.InteropServices.COMException (0x8000FFFF):
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED) at System.RuntimeType.ForwardCallToInokeMember(String memberName, BindingFlags flags, Object target, int32[] aWrapperTypes, MessageData& msgData) at MyDLL.MyControlClass.get_MyProperty()...


Hum...


fluoronator
fluoronator is offline   Reply With Quote
Old 03-04-2008, 07:48 PM   #2
fluoronator
Junior Member
 
Join Date: Mar 2008
Posts: 2
Default
This problem has been resolved... sort of. A little Googling proved that using an OCX in .NET without a graphic container is impossible for ME and probably pretty difficult for someone of average intellengence! As a work-around (this will come in handy again someday) I created an ActiveX Dll in VB6, placed the OCX on an invisible form and exposed the methods/Properties. Instead of referenceing the OCX from ASP.NET, I referenced this DLL instead. I'm still trying to get over the fact that it WORKED!!!


fluoronator
fluoronator is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net Update Panel Ryan_Zim Software 0 07-02-2009 08:53 AM
viewstate MAC failed in asp.net 2.0 while postback the page azraffarveen Software 0 05-12-2009 03:24 PM
.NET 2.0 Web Apps / .NET 3.5 ASP.NET Apps - Differences/Similariti london1919 MCTS 1 12-08-2008 03:16 PM
ASP.NET: Asign Users in Roles(Array.IndexOf(Of String) method) msandlana Software 0 04-25-2008 06:37 AM
ASP.NET 2.0 application does not run in WIN2k3 johnfraj Software 0 04-19-2007 08:27 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46