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 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
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
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!
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!
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!
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!
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!
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!
> 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!
> 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!
Thanks Kevin, will install Office and check....
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Thanks Kevin, will install Office and check....
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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/...
|
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,...
| |
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,...
|
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...
|
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,...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |