![]() |
|
|
|
#1 |
|
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 |
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Mar 2008
Posts: 2
|
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 |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |