G
Guest
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
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