473,800 Members | 2,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ActiveX dll

i've developed a user control using C# and turned it into a dll so that i can
use it on the web on an html page. however i need to put that dll in a cab
file so that it registers itself correctly on client's PCs. each time i try
to register it using regsvr32 it comes up with the error, that the file was
loaded but the dllRegisterServ er entry point was not found. and on client pcs
the cab file is downloaded but is not registered with error message: class
not registered hr = 80040154.
any suggestions?
Nov 17 '05 #1
3 4607
Ahmed,

You can not export an active x control from .NET (at least, not in a
supported way). If you want to register types in .NET as COM types, you
need to use the regasm tool to create the appropriate registry entries for
the .NET classes. Of course, you also need the .NET runtime installed on
the client machine as well.

What are you trying to do? Are you trying to embed the control on the
page, or are you trying to install the control on the client side (for use
in an application).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"ahmed khairy" <ah*********@di scussions.micro soft.com> wrote in message
news:B9******** *************** ***********@mic rosoft.com...
i've developed a user control using C# and turned it into a dll so that i
can
use it on the web on an html page. however i need to put that dll in a cab
file so that it registers itself correctly on client's PCs. each time i
try
to register it using regsvr32 it comes up with the error, that the file
was
loaded but the dllRegisterServ er entry point was not found. and on client
pcs
the cab file is downloaded but is not registered with error message: class
not registered hr = 80040154.
any suggestions?

Nov 17 '05 #2
i am trying to install it on the client side
how can i get the clsid after i usa regAsm??
thanks

"Nicholas Paldino [.NET/C# MVP]" wrote:
Ahmed,

You can not export an active x control from .NET (at least, not in a
supported way). If you want to register types in .NET as COM types, you
need to use the regasm tool to create the appropriate registry entries for
the .NET classes. Of course, you also need the .NET runtime installed on
the client machine as well.

What are you trying to do? Are you trying to embed the control on the
page, or are you trying to install the control on the client side (for use
in an application).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"ahmed khairy" <ah*********@di scussions.micro soft.com> wrote in message
news:B9******** *************** ***********@mic rosoft.com...
i've developed a user control using C# and turned it into a dll so that i
can
use it on the web on an html page. however i need to put that dll in a cab
file so that it registers itself correctly on client's PCs. each time i
try
to register it using regsvr32 it comes up with the error, that the file
was
loaded but the dllRegisterServ er entry point was not found. and on client
pcs
the cab file is downloaded but is not registered with error message: class
not registered hr = 80040154.
any suggestions?


Nov 17 '05 #3
Ahmed,

I just noticed your original post. You won't be able to show the
control in your page through ActiveX. However, you can host the control in
the page, but you can't package it as a cab. In order to do this, check out
the section of gotdotnet.com titled "Using Windows Forms Controls in
Internet Explorer", located at (watch for line wrap):

http://samples.gotdotnet.com/quickst...eSourcing.aspx
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"ahmed khairy" <ah*********@di scussions.micro soft.com> wrote in message
news:54******** *************** ***********@mic rosoft.com...
i am trying to install it on the client side
how can i get the clsid after i usa regAsm??
thanks

"Nicholas Paldino [.NET/C# MVP]" wrote:
Ahmed,

You can not export an active x control from .NET (at least, not in a
supported way). If you want to register types in .NET as COM types, you
need to use the regasm tool to create the appropriate registry entries
for
the .NET classes. Of course, you also need the .NET runtime installed on
the client machine as well.

What are you trying to do? Are you trying to embed the control on
the
page, or are you trying to install the control on the client side (for
use
in an application).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"ahmed khairy" <ah*********@di scussions.micro soft.com> wrote in message
news:B9******** *************** ***********@mic rosoft.com...
> i've developed a user control using C# and turned it into a dll so that
> i
> can
> use it on the web on an html page. however i need to put that dll in a
> cab
> file so that it registers itself correctly on client's PCs. each time i
> try
> to register it using regsvr32 it comes up with the error, that the file
> was
> loaded but the dllRegisterServ er entry point was not found. and on
> client
> pcs
> the cab file is downloaded but is not registered with error message:
> class
> not registered hr = 80040154.
> any suggestions?


Nov 17 '05 #4

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

Similar topics

8
4571
by: AnalogKid | last post by:
Short question: What's the difference between SingleUse and MultiUse ? Long question: I've been writing some sample code to see how different Instancing values and threading models work. I tried all main combinations of Instancing (Multiuse/Singleuse) and of Threading models (per object/pool). Here's what I found: MultiUse - Thread per Object
1
6001
by: wang xiaoyu | last post by:
Hello: i want use activex in wxpython program,but when i use MakeActiveXClass an exception occurs. this is my source code dealing the DICOM ocx.I must note that in this program "hwtxcontrol" is a ocx developed my me use vc6,this ocx works fine in wxpython. but you can see i only change this ocx with a new DICOM ocx and set up eventClass,
2
7578
by: Fie Fie Niles | last post by:
This one XP machine (with IE 6) is having a problem viewing any ActiveX controls (created on VB6) on the Internet Explorer browser. I put the same ActiveX control in a VB program, and when I run the VB program on that same machine, I can view the ActiveX control fine. He is using Citrix. The same ActiveX controls can be viewed on other machines. When trying to view 1 of the ActiveX control, he got an error "Visual Basic Run-time redist...
6
2592
by: Pippen | last post by:
I'm getting a little confused about what is supported in MS-SQL ActiveX and what is Visual Basic and what is VBScript. Can someone please point me to a website, recommend a book or if I've missed it where in the MS-SQL help that deals with the ActiveX supported in SQL. I'm not looking to do web pages ASP, ect. I'm looking to use the ActiveX as add on funtionality to support the Stored Procs I write. Thanks, -p
12
2597
by: A.M. | last post by:
Hi at all, how can I do to insert into a HTML page a file .txt stored in the same directory of the server where is the html file that must display the text file.txt? Thank you very much P.Pietro
0
7132
by: Ike | last post by:
I have an Activex Control created in VB6, which, displays no problem on any machine I have, but, on some machines of others, it does not. All machines are running either XP or Windows 2000, and all are running MSIE6.x, woth security settings set to display this control. For the life of me, I cannot figure out how such a simple control can be so sporadic in it;s showing on a page. It always downloads - it just doesn't always show. I'm...
18
8438
by: DartmanX | last post by:
Is there a simple way to determine if someone using Internet Explorer has completely disabled ActiveX controls? Jason
7
4399
by: Jarod_24 | last post by:
I just downloaded a activex control that was written in C# and tried to view it on my PDA's Internet Explorer. At my regular PC it displayed just fine, but nothing showed up on the pda. Do ActiveX controls that are to be used by a pda need to be written in the ..net compact framework, or am i missing something else here? i have a HP iPaq 2490 with Windows Mobile Premium installed While i'm at it; does a activex control allow you to...
4
6790
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 invalid (what the Exception already describe). So I hope someone here knows ?
6
8079
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll .dll I can not call the functions in the ActiveX component. In the next step I tried to use the ActiveX component in a class library. I simply added a reference to the corresponding COM component. This this only
0
10281
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10039
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9095
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6824
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5477
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5612
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4152
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
2
3765
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2953
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.