Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / June 2006

Tip: Looking for answers? Try searching our database.

Urgent: Excel 2003 and ASP.NET 2.0 interop fails at runtime

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AL - 16 Feb 2006 16:11 GMT
Hi

I'm using a simple wrapper class which I orginally developed with .NET 1.1.

I've recently added it to a .NET 2.0 class library which is then referenced
from an ASP.NET 2.0 "project"

Although the code compiles without any problem, I get the following
exception message when creating a new instance of Excel.Application:

Retrieving the COM class factory for component with CLSID
{00024500-0000-0000-C000-000000000046} failed due to the following error:
80070005.

I've check and repair the Office 2003 PIA numerous times. The project is
under source control (VSS 6.0).

The CLSID is present in the registry and has a Default of Microsoft Office
Excel Application.

Can anybody give me information as to how I can solve this problem?

Thanks in advance
Al
Willy Denoyette [MVP] - 16 Feb 2006 16:52 GMT
| Hi
|
[quoted text clipped - 20 lines]
| Thanks in advance
| Al

It's gonna hurt, but check this:

http://support.microsoft.com/default.aspx?scid=kb;en-us;257757

Willy.
AL - 21 Feb 2006 16:04 GMT
Thanks for the pointer.

I managed to get it to run by changing the ASP.NETV2 application pool user
identity.  I know it's not ideal and should probably find a better solution,
this is however a quick fix until a more robust solution could be found.

Will investigate your link a little more.

Thanks

Al

> | Hi
> |
[quoted text clipped - 28 lines]
>
> Willy.
rox.scott - 16 Jun 2006 17:01 GMT
That is "Access Denied".
See the following link for instructions to grant Excel Application
permissions to your ASP.NET app:
http://www.devcity.net/Articles/239/2/article.aspx

-- scott

> Hi
>
[quoted text clipped - 20 lines]
> Thanks in advance
> Al

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.