473,405 Members | 2,167 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,405 software developers and data experts.

Deploy Office PIA to ASP.NET Server

I'm trying to use the Office XP PIA in an ASP.NET application. It's working
fine on my workstation and I can manipulate a Workbook using
Microsoft.Office.Interop.Excel.

When I try to deploy the application to a server, I get:
"System.Runtime.InteropServices.COMException (0x80040154): COM object with
CLSID {00024500-0000-0000-C000-000000000046} is either not valid or not
registered."

I've seen several articles that mention ways to deploy these PIA's,
especially the following:
"2: Place the required Office XP PIAs in the same directory as your
solution and distribute your solution and the Office XP PIAs as a
single unit. This option is only recommended for simple solution
deployments, such as copying solutions from one file directory folder
to another across a computer network. The main disadvantage with this
option is that multiple copies of the same Office XP PIAs may be
installed on end users' computers, which reduces these computers'
available hard disk space."

I tried to copy the DLL files into a folder within my project and have the
References point at these copies of the dll files. No luck.

Someone else mentioned copying the DLL's to the Bin folder, also without any
luck.

Please advise as to how what I need to do on the ASP.NET server to deploy
code there that can use the Microsoft.Office.Interop.Excel classes.

Thanks,

Chris Frohlich
Apr 12 '06 #1
3 2374

"ChrisFrohlich" <Ch***********@discussions.microsoft.com> wrote in message
news:80**********************************@microsof t.com...
I'm trying to use the Office XP PIA in an ASP.NET application. It's
working
fine on my workstation and I can manipulate a Workbook using
Microsoft.Office.Interop.Excel.

When I try to deploy the application to a server, I get:
"System.Runtime.InteropServices.COMException (0x80040154): COM object with
CLSID {00024500-0000-0000-C000-000000000046} is either not valid or not
registered."

I've seen several articles that mention ways to deploy these PIA's,
especially the following:
"2: Place the required Office XP PIAs in the same directory as your
solution and distribute your solution and the Office XP PIAs as a
single unit. This option is only recommended for simple solution
deployments, such as copying solutions from one file directory folder
to another across a computer network. The main disadvantage with this
option is that multiple copies of the same Office XP PIAs may be
installed on end users' computers, which reduces these computers'
available hard disk space."

I tried to copy the DLL files into a folder within my project and have the
References point at these copies of the dll files. No luck.

Someone else mentioned copying the DLL's to the Bin folder, also without
any
luck.

Please advise as to how what I need to do on the ASP.NET server to deploy
code there that can use the Microsoft.Office.Interop.Excel classes.


That sounds like the PIA's are loading fine. They are .NET assemblies. It
looks like a failure loading Excel's com components.

COM will look at the following registry key

HKEY_CLASSES_ROOT\CLSID\{00024500-0000-0000-C000-000000000046}

To find out how to load the component that supports the COM interface
identified by that CLSID.

So, is Excel installed on the server?

David
Apr 12 '06 #2
Excel is not installed. Forgive my ignorance, but is this necessary, and if
so why?

Thanks in advance,

Chris
"David Browne" wrote:

"ChrisFrohlich" <Ch***********@discussions.microsoft.com> wrote in message
news:80**********************************@microsof t.com...
I'm trying to use the Office XP PIA in an ASP.NET application. It's
working
fine on my workstation and I can manipulate a Workbook using
Microsoft.Office.Interop.Excel.

When I try to deploy the application to a server, I get:
"System.Runtime.InteropServices.COMException (0x80040154): COM object with
CLSID {00024500-0000-0000-C000-000000000046} is either not valid or not
registered."

I've seen several articles that mention ways to deploy these PIA's,
especially the following:
"2: Place the required Office XP PIAs in the same directory as your
solution and distribute your solution and the Office XP PIAs as a
single unit. This option is only recommended for simple solution
deployments, such as copying solutions from one file directory folder
to another across a computer network. The main disadvantage with this
option is that multiple copies of the same Office XP PIAs may be
installed on end users' computers, which reduces these computers'
available hard disk space."

I tried to copy the DLL files into a folder within my project and have the
References point at these copies of the dll files. No luck.

Someone else mentioned copying the DLL's to the Bin folder, also without
any
luck.

Please advise as to how what I need to do on the ASP.NET server to deploy
code there that can use the Microsoft.Office.Interop.Excel classes.


That sounds like the PIA's are loading fine. They are .NET assemblies. It
looks like a failure loading Excel's com components.

COM will look at the following registry key

HKEY_CLASSES_ROOT\CLSID\{00024500-0000-0000-C000-000000000046}

To find out how to load the component that supports the COM interface
identified by that CLSID.

So, is Excel installed on the server?

David

Apr 12 '06 #3

"ChrisFrohlich" <Ch***********@discussions.microsoft.com> wrote in message
news:40**********************************@microsof t.com...
Excel is not installed. Forgive my ignorance, but is this necessary, and
if
so why?


The Office PIA's allow .NET code to interoperate with the components of the
Office suite.

The PIA or Primary Interop Assembly is a .NET assembly that serves as a
brige between .NET code and a COM component. It does not include the COM
component itself. You call into the PIA, the PIA in turn loads the
requested COM component and marshalls data back and forth from the COM
component to .NET.

David
Apr 12 '06 #4

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

Similar topics

0
by: Oliver Hoehle | last post by:
Hello! When I try to start jboss, i get the message: .... 11:55:52,549 ERROR MBeanException: Exception in MBean operation 'checkIncompleteDeployments()' Cause: Incomplete Deployment...
0
by: Timothy | last post by:
I have developed an application that uses the Office Web Components 2003. This application will be deployed to systems that do not have Office or the Web Components installed. The problem that I am...
2
by: Marcus | last post by:
I have seen many posts of people with the same problem as me (attached below), but I have yet to see any solutions posted. Has anyone figured out how to deploy an Asp.net web site to the webserver...
9
by: Wayne Wengert | last post by:
I built an ASP application and it runs fine on my local IIS. I am trying to move the application to my web service (ISP) out on the internet. I've read several of the help articles but they all...
9
by: T. | last post by:
Hi, Is there any way that I can "package and deploy" an asp.net app? When running this app from my workstation, it runs no problem, but when I access the site from another workstation I'm...
1
by: karnati | last post by:
dear all, i am deploying my asp.net project on office server using setup.exe of my project when postback is happening it is affecting 2 entrys in database this is happening only with IE my in...
4
by: dev648237923 | last post by:
I develop my application on my dev server and then I deploy it to a customer's production server. I store the db connection string in web.config (is this best practice?). When I deploy I have to...
1
by: cslee168 | last post by:
Just finished Access 2003 with MDE file but then find out that I need Access 2003 Developer Extensions to deploy the runtime. I went to MSDN site and it talks a lot about it but I cannot find the...
4
by: Christiano Donke | last post by:
i'm writing an app that uses an excel interop to convert the xls file to html.. while writing it, i had no problem... it problem is coming out when i try do deploy it... i've tried merging it...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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...
0
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,...

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.