473,839 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

COM object with CLSID {5D92885E-7D11-4160-BB23-818831ADDD43} is ei

Hi,

I am trying to use a ActiveX Com component in a aspx web page.

First I have made a reference to the .dll.
I have also used aspCompat="true " in the page.
Then I use the code below...

Dim ObjDir As Mydll.Directory
Dim ComFile As Mydll.File

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
ObjDir = New Mydll.Directory
End Sub

But when I start the page I get the error below.
Do anybody have any suggestions?
The .dll is registrated.
Is there any security settings that must be changed?

Server Error in '/' Application
--------------------------------------------------------------------------------

COM object with CLSID {5D92885E-7D11-4160-BB23-818831ADDD43} is either not
valid or not registered.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Runtime. InteropServices .COMException: COM object
with CLSID {5D92885E-7D11-4160-BB23-818831ADDD43} is either not valid or not
registered.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:
[COMException (0x80040154): COM object with CLSID
{5D92885E-7D11-4160-BB23-818831ADDD43} is either not valid or not registered.]
Web_ftp.WebForm 1.Page_Load(Obj ect sender, EventArgs e) +13
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +750


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.432 2.2032
Nov 19 '05 #1
2 1501
Without generate a .NET wrapper class first, you can only do late
binding. The recommanded way to use COM component in ASP.NET is to
generate a .NET wrapper class first by using tlbimp.exe utility. You
can find more detail by searching "COM component compatibility" in
the ".NET framework SDK document".

JSL

On Thu, 2 Jun 2005 07:22:10 -0700, "Thomas Andersson"
<Th************ *@discussions.m icrosoft.com> wrote:
Hi,

I am trying to use a ActiveX Com component in a aspx web page.

First I have made a reference to the .dll.
I have also used aspCompat="true " in the page.
Then I use the code below...

Dim ObjDir As Mydll.Directory
Dim ComFile As Mydll.File

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventAr gs) Handles MyBase.Load
ObjDir = New Mydll.Directory
End Sub

But when I start the page I get the error below.
Do anybody have any suggestions?
The .dll is registrated.
Is there any security settings that must be changed?

Server Error in '/' Application.
--------------------------------------------------------------------------------

COM object with CLSID {5D92885E-7D11-4160-BB23-818831ADDD43} is either not
valid or not registered.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Runtime. InteropServices .COMException: COM object
with CLSID {5D92885E-7D11-4160-BB23-818831ADDD43} is either not valid or not
registered.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:
[COMException (0x80040154): COM object with CLSID
{5D92885E-7D11-4160-BB23-818831ADDD43} is either not valid or not registered.]
Web_ftp.WebForm 1.Page_Load(Obj ect sender, EventArgs e) +13
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +750


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.43 22.2032


Nov 19 '05 #2
Hi,

Thank you for your suggestion.
Unfortunately this doesen´t solve my problem, I still get the same error...
Do anyone have any other suggestions?

/Thomas

"Jinsong Liu" wrote:
Without generate a .NET wrapper class first, you can only do late
binding. The recommanded way to use COM component in ASP.NET is to
generate a .NET wrapper class first by using tlbimp.exe utility. You
can find more detail by searching "COM component compatibility" in
the ".NET framework SDK document".

JSL

On Thu, 2 Jun 2005 07:22:10 -0700, "Thomas Andersson"
<Th************ *@discussions.m icrosoft.com> wrote:
Hi,

I am trying to use a ActiveX Com component in a aspx web page.

First I have made a reference to the .dll.
I have also used aspCompat="true " in the page.
Then I use the code below...

Dim ObjDir As Mydll.Directory
Dim ComFile As Mydll.File

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventAr gs) Handles MyBase.Load
ObjDir = New Mydll.Directory
End Sub

But when I start the page I get the error below.
Do anybody have any suggestions?
The .dll is registrated.
Is there any security settings that must be changed?

Server Error in '/' Application.
--------------------------------------------------------------------------------

COM object with CLSID {5D92885E-7D11-4160-BB23-818831ADDD43} is either not
valid or not registered.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Runtime. InteropServices .COMException: COM object
with CLSID {5D92885E-7D11-4160-BB23-818831ADDD43} is either not valid or not
registered.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:
[COMException (0x80040154): COM object with CLSID
{5D92885E-7D11-4160-BB23-818831ADDD43} is either not valid or not registered.]
Web_ftp.WebForm 1.Page_Load(Obj ect sender, EventArgs e) +13
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +750


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.43 22.2032


Nov 19 '05 #3

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

Similar topics

9
8612
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). On the aspx page I have the object tag as follows:
4
5375
by: Ahmed | last post by:
i have tried running the csharpsite in my Microsoft Visual C#.net and after i hit the run button i keep getting the same error which is : Server Error in '/csharpsite' Application COM object with CLSID {3CFCB90E-B0B0-11D2-8D8B-00C04F79EE8F} is either not valid or not registered. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error...
4
3014
by: murrayatuptowngallery | last post by:
I have looked at some mouseover/ sound object scripts and can't get them to work. Most were more complex than needed and introduced several new parameters for me. I found a simple pair of html code segments that accomplish display of an image and automatic 'display' (playback) of a .wav file, and apparently are usable for both IE and NS, " <object height="100%" width="100%"
1
4096
by: Cristina Malavasi | last post by:
Hi a have a COM dll made in C++ (I don't have the source code) I used tlbimp to create a managed .NET assembly dll... I reference this dll and import it with "using myDll" then I make an object (myDll.myDllClass dll=new myDllClass() and then I can see the methods implemented on the dll... until here everything is fine... I even see the object on the object browser... but when I run my project it gives the next error where I create the...
0
1769
by: Dominator.Legend | last post by:
Hallow every one, i have a problem using .net user control with the <OBJECT> tag, I made a normal user control in C#, then i use the regasm to register it, also i use the option regfile to generate the *.reg file and then merge it, After merging it i open the reg file, which was as follow. REGEDIT4
0
4533
by: fniles | last post by:
I created a CAB file for a 3rd party control (StockChartX) it using CABARC.exe that comes from Microsoft SDK. In the CAB file I included the StockChartX.ocx and StockChartX.INF. Then, I signed the CAB file using Verisign. I also created the LPK file for it (using LKPTool.exe). On my web page, I include the CAB file, and when I bring up that web page, it asks to download it, and I download it. After the control is downloaded, I got an...
13
15764
by: brianbasquille | last post by:
Hello all, Am trying to modify / update the existing open-source OpenHTPC. I've renamed most of the namespaces and some forms (as well as added my own with modifications) and everything works except for playing of a video file. I get the message:
4
7387
by: Technics | last post by:
Ok I will be as clearer as I can (sorry for english/technical mistakes) I would like to write an audio application that supports ASIO drivers. I downloaded the ASIO sdk from Stainberg and I read the docs and viewed the code provided. The sdk retrieve the varius ASIO drivers available from windows registry. The various drivers are COM objects wich must be loaded dinamically after retrieving the CLSID from the registry. In C++ this is...
9
17594
by: DKn | last post by:
Hi , I am having a .Net Activex control. I have done coding for COMRegistering and Unregistereing in C#.Net. The code is follows.. static void ComRegister(Type t) { string keyName = @"CLSID\" + t.GUID.ToString("B"); using (RegistryKey key = Registry.ClassesRoot.OpenSubKey(keyName, true)) {
0
2084
by: DKn | last post by:
Hi , I am having a .Net Activex control. I have done coding for COMRegistering and Unregistereing in C#.Net. The code is follows.. static void ComRegister(Type t) { string keyName = @"CLSID\" + t.GUID.ToString("B"); using (RegistryKey key = Registry.ClassesRoot.OpenSubKey(keyName, true)) {
0
9855
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10908
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10293
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...
1
7828
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7017
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
5682
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
5866
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4484
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
3
3134
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.