473,395 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 7463
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
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
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
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
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
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
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
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
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
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.