|
-
Oct 30th, 2006, 06:39 AM
#1
Thread Starter
Fanatic Member
COM Error using Office 2003 PIA in ASP.Net
Guys,
I am seeing a login screen when trying to launch Excel2003 from an asp.net page. I cannot loging using any of my accounts, if I cancel the login, I get the following error... on this line of code...
Code:
Line 165: Dim oExcel As New Excel.Application
Code:
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Can anybody tell me what the problem is here ???
Thanks
Bob
"I dislike 7 am. If 7 am were a person, I would punch 7 am in the biscuits." - Paul Ryan, DailyRamblings
-
Oct 30th, 2006, 04:38 PM
#2
Re: COM Error using Office 2003 PIA in ASP.Net
Are you familiar with modifying registry settings? You basically need to look for that CLSID in the registry, except don't use regedit. Instead, use regedt32.exe, where you can right click the CLSID folder and set permissions on it. Give the ASP.NET worker process permissions on it.
-
Oct 31st, 2006, 04:38 AM
#3
Thread Starter
Fanatic Member
Re: COM Error using Office 2003 PIA in ASP.Net
Thanks Mend,
Last thing yesterday I tried this thread but it made no difference. I'll make the registry changes now, although I never had to do this on the previous IIS box ?!?
My problem is that this build has changed everywhere, its now .net2, SQL2005 on a new IIS6 box. Does all this still apply in IIS6 ? I noticed some differences when running through the above post yesterday.
Ta,
Bob
"I dislike 7 am. If 7 am were a person, I would punch 7 am in the biscuits." - Paul Ryan, DailyRamblings
-
Oct 31st, 2006, 06:09 AM
#4
Thread Starter
Fanatic Member
Re: COM Error using Office 2003 PIA in ASP.Net
Mendhak,
Tried the regedit but still getting the same login prompt, when cancelled still gives me the same CLSID error.
CLSID {00024500-0000-0000-C000-000000000046}
Anything else to try ?
Bob
"I dislike 7 am. If 7 am were a person, I would punch 7 am in the biscuits." - Paul Ryan, DailyRamblings
-
Nov 2nd, 2006, 10:44 AM
#5
Re: COM Error using Office 2003 PIA in ASP.Net
Sorry, that should've worked.
But I googled and found this:
http://blog.crowe.co.nz/archive/2006/03/02/589.aspx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|