473,587 Members | 2,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help: ActiveX Component in C#/ASP.NET

Ted
I'm using a 3rd party ActiveX control which has it's own constructor and two
very methods (which ultimately sends out messages on the server's USB or
serial port). I am trying to run this ActiveX component in my ASP.NET
applicaiton. For now, I'm testing this application via localhost connection.

At first, within the Page_Load method, I successfully instantiate it using
the constructor:
try
{
oABC = new ABCClass();
Response.Write( "oABC object was created");
}
catch ..

Later, upon a button press, I try to use the method(s) within oABC -- again,
it appears everything works:
try
{
Object err;
err = oABC.Method1( "xxx", "xxx", null, null); // oABC is accessible
within this btnClick function
Response.Write( "Method1 Succeeded - err = " + err.ToString()) ;
}
catch ...

Unfortunately, Method1 doesn't appear to send out a serial/USB message.
However, Method1 works fine if I use IE to a very similarily-coded
VBScript/HTML file located at the same IIS directory location. I'm confused
at what might be the problem.

Here are some questions I have:
1. Because the instantiation is done within Page_Load, I assume the ActiveX
component is being run at the server - is this true? If so, is there any
configuration or server-side registration I need to do to ensure it's
availability to my application? Could there be any serial/USB/device
security settings which IIS tries limit?
2. For the VB script/html file, the ActiveX component runs on the client -
right?
3. I have run "RegSvr32 oABC.dll" on the component within the virtual
directory which is the source of my ASP.NET application - is this sufficient
or do I even have to do this?

Dazed and confused,
Ted
Jul 21 '05 #1
0 1357

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1746
by: Glynn Johnson | last post by:
I understand that there is no way to upload multiple files using ASP and COM+ without having multiple form elements like <input type='file'>. I also understand that there is no way to programmatically set the value of <input type='file'> in IE because it poses a security risk. I didn't know these two facts before I tried to create a...
2
13396
by: brazilnut52 | last post by:
I am going to outline the steps I go through to produce the problem. Hopefully this will help you understand the problem better I have created a simple COM DLL in .NET by using the COM class template and by setting output to a type library (DLL). All the object does is return a string value. At this point I have not checked the option to...
3
2749
by: DB | last post by:
Hi Folks, I want to create Activex component. Can we create it using c#.net or do I need to create it using vc++? Thanks in Advanced, Deepak
1
7681
by: Zhou Jingxiong | last post by:
Hi I am using third party COM component which come with an installation program (.exe file included). The program will be register to registry automatically upon installation. There is no problem calling the COM component from VB.net Module from DOS Command Prompt : Imports System
0
278
by: Ted | last post by:
I'm using a 3rd party ActiveX control which has it's own constructor and two very methods (which ultimately sends out messages on the server's USB or serial port). I am trying to run this ActiveX component in my ASP.NET applicaiton. For now, I'm testing this application via localhost connection. At first, within the Page_Load method, I...
16
12718
by: Heinz K | last post by:
Hello all, I'm developing a vb.net 2.0 webservice which accesses a lotus notes database using lotus domino api. This works fine on my local client if I select "Use Visual Studio Development server" (on project properties). But as soon as I select "Use IIS Web Server" I always got error messages. One says: "Retrieving the COM class factory...
4
6783
by: Wilfried Mestdagh | last post by:
Hi, I have a C# application (VS2005) with Microsoft Mappoint activeX control on a form. At a certain moment I want to create a second one temporary in code. This seems not to work, when I try to access it I have an InvalidActiveXState Exception. I cannot find mutch on the web about this Invalid State of a component except that it is...
1
2308
by: alpana.dhole | last post by:
I have made a ActiveX control for commericial application. A Drag and Drop component for Mail server. I need to host the component in Internet Explorer. When a user opens a mail it should prompt the user to download and register the Drag and Drop activeX component. This should be a trivial program. Please let me know how is it done.
0
2303
by: syedsarfaraz | last post by:
Hi There! Could anybody please help regarding the below issue. We had a COM+ component deployed on Windows 2000/NT machine it was working fine, I mean when it was being invoked from other machines it was creating object and was serving the purpose. Recently as an upgrade we moved all the COM+ component from Windows 2000/NT to WINDOWS 2003...
0
7843
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8205
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5712
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
2347
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.