473,505 Members | 16,332 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

COM object with CLSID {00024500-0000-0000-C000-000000000046} is either not valid or not registered.

I have compiled code that populates data from sql database into an excel document on the client. When moving code to the web server and running it, I get an error COM object with CLSID {00024500-0000-0000-C000-000000000046} is either not valid or not registered. Excel is not installed on the web server. Is there any way to get around doing that? I have moved Interop.Excel.dll to the web server, but I guess since it's not truly registered and only referenced by code it will not work

Thanks for any help

Joel
Nov 18 '05 #1
12 7469
Your Interop class is simply a wrapper for the COM object. If the COM object
is not installed, well...

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"JROCamaro" <an*******@discussions.microsoft.com> wrote in message
news:2C**********************************@microsof t.com...
I have compiled code that populates data from sql database into an excel document on the client. When moving code to the web server and running it,
I get an error COM object with CLSID {00024500-0000-0000-C000-000000000046}
is either not valid or not registered. Excel is not installed on the web
server. Is there any way to get around doing that? I have moved
Interop.Excel.dll to the web server, but I guess since it's not truly
registered and only referenced by code it will not work?
Thanks for any help.

Joel

Nov 18 '05 #2
Your Interop class is simply a wrapper for the COM object. If the COM object
is not installed, well...

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"JROCamaro" <an*******@discussions.microsoft.com> wrote in message
news:2C**********************************@microsof t.com...
I have compiled code that populates data from sql database into an excel document on the client. When moving code to the web server and running it,
I get an error COM object with CLSID {00024500-0000-0000-C000-000000000046}
is either not valid or not registered. Excel is not installed on the web
server. Is there any way to get around doing that? I have moved
Interop.Excel.dll to the web server, but I guess since it's not truly
registered and only referenced by code it will not work?
Thanks for any help.

Joel

Nov 18 '05 #3
I have the same issue, the com dll is registered and tried running the
app with dll at diff locations, in bin, in winnt\system32 but both donot
seem to matter and i still get this exact same error....???

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #4
I have the same issue, the com dll is registered and tried running the
app with dll at diff locations, in bin, in winnt\system32 but both donot
seem to matter and i still get this exact same error....???

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #5
COM DLLs are registered in the System Registry according to their location.
You don't want to put the COM dll into your bin folder or anywhere else that
is not the location recorded in the System registry. That is how COM locates
DLLs. Only your Interop Assembly should be in the bin folder. That's how
..Net locates assemblies.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"anon" <an*******@devdex.com> wrote in message
news:e8**************@TK2MSFTNGP12.phx.gbl...
I have the same issue, the com dll is registered and tried running the
app with dll at diff locations, in bin, in winnt\system32 but both donot
seem to matter and i still get this exact same error....???

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #6
COM DLLs are registered in the System Registry according to their location.
You don't want to put the COM dll into your bin folder or anywhere else that
is not the location recorded in the System registry. That is how COM locates
DLLs. Only your Interop Assembly should be in the bin folder. That's how
..Net locates assemblies.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"anon" <an*******@devdex.com> wrote in message
news:e8**************@TK2MSFTNGP12.phx.gbl...
I have the same issue, the com dll is registered and tried running the
app with dll at diff locations, in bin, in winnt\system32 but both donot
seem to matter and i still get this exact same error....???

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #7
Thanks Kevin !

So C:\WINNT\system32 should have the dll, is that correct?
Also, I am using OWC in my code, but could not find an OWC.DLL on my
machine to place on the server, is it MSOWC.DLL?Can i use OWC10.DLL
instead?

Thanks again for your response.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #8
Thanks Kevin !

So C:\WINNT\system32 should have the dll, is that correct?
Also, I am using OWC in my code, but could not find an OWC.DLL on my
machine to place on the server, is it MSOWC.DLL?Can i use OWC10.DLL
instead?

Thanks again for your response.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #9
> So C:\WINNT\system32 should have the dll, is that correct?

I can't tell you where the COM DLL should be. It can be registered from any
location on the machine. If that is where it was registered in the System
Registry, that's where it should be.

If you're asking about deploying the DLL to the server, well, first of all,
that would be, in the case of an Office DLL, a violation of the Licensing
agreement. If you want to use an Office COM object, I believe you would have
to install a licensed copy of Office on the server. Of course, this also
makes the location of the DLLs a moot point, as they will be installed where
Office thinks they should be.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"anon" <an*******@devdex.com> wrote in message
news:OZ**************@TK2MSFTNGP11.phx.gbl...
Thanks Kevin !

So C:\WINNT\system32 should have the dll, is that correct?
Also, I am using OWC in my code, but could not find an OWC.DLL on my
machine to place on the server, is it MSOWC.DLL?Can i use OWC10.DLL
instead?

Thanks again for your response.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #10
> So C:\WINNT\system32 should have the dll, is that correct?

I can't tell you where the COM DLL should be. It can be registered from any
location on the machine. If that is where it was registered in the System
Registry, that's where it should be.

If you're asking about deploying the DLL to the server, well, first of all,
that would be, in the case of an Office DLL, a violation of the Licensing
agreement. If you want to use an Office COM object, I believe you would have
to install a licensed copy of Office on the server. Of course, this also
makes the location of the DLLs a moot point, as they will be installed where
Office thinks they should be.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"anon" <an*******@devdex.com> wrote in message
news:OZ**************@TK2MSFTNGP11.phx.gbl...
Thanks Kevin !

So C:\WINNT\system32 should have the dll, is that correct?
Also, I am using OWC in my code, but could not find an OWC.DLL on my
machine to place on the server, is it MSOWC.DLL?Can i use OWC10.DLL
instead?

Thanks again for your response.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #11
Thanks Kevin, will install Office and check....

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #12
Thanks Kevin, will install Office and check....

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #13

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

Similar topics

0
1340
by: PhilP_Gyro | last post by:
I have created a com object using C# and .NET, following the instructions listed in Com Interop Part 2 from MSDN. I then created a simple VC++/MFC app to call the COM object. I initially connect to...
9
8555
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...
6
2408
by: Virendra Verma | last post by:
This sounds weird, but I am looking for separate behaviors for destruction of a const and non-const object. I am trying to develop a smart/auto pointer class for writing objects to disk...
2
1904
by: Phil | last post by:
Hi, I want to access the features of a plugin without actually embedding it into a page. Is this possible? Eg The code to embed the object into a page is: <OBJECT...
4
2983
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...
2
4191
by: Lucas Tam | last post by:
Hi all, I'm using the command GetType(MyObject).GUID to return a GUID. Is the GUID a CRC type calculation on the object, or is it a pre-assigned value on the object? I was hoping to have a...
0
1749
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...
0
4518
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...
4
7352
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...
1
3341
by: gcmartijn | last post by:
I'm trying to extract something like this: <object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/...
0
7218
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,...
0
7307
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,...
0
7370
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...
0
5614
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,...
0
3188
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...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1532
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 ...
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
409
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...

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.