DCOM Error!

G

Guy007

We are developing an ASP.NET application which uses Microsoft Office
Automation for Visio 2003 (Microsoft Visio 11.0 Type Library, and Microsoft
Visio 11.0 Save AS Web Type Library). However, when invoking Visio from the
ASP.NET code (Microsoft.Office.Interop.Visio.InvisibleApp), we are getting
the following error:



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



This seems to be a Permissions problem. In DCOMCFG we have assigned full
rights to Everyone under the Launch and Activation Permissions, Access
Permissions and Configuration Permissions, in the Security Tab for Microsoft
Visio Drawing. However, the problem still persists.



Under the Identity Tab, the user account used to run this application is set
to The Launching User. When this setting is changed to The Interactive User,
a different error is obtained:



Retrieving the COM class factory for component with CLSID
{000D0A26-0000-0000-C000-000000000046} failed due to the following error:
8000401a.



Does anyone have any idea why this is happening? What needs to be done to
solve this?



I have searched for these error messages on the internet, but they all say
that the problem is with Permissions configuration. If "Everyone" has full
rights, then I can't be wrong, can I?!



Thanks!
 
N

Nikolay Belyh

We are developing an ASP.NET application which uses Microsoft Office
Automation for Visio 2003 (Microsoft Visio 11.0 Type Library, and Microsoft
Visio 11.0 Save AS Web Type Library). However, when invoking Visio from the
ASP.NET code (Microsoft.Office.Interop.Visio.InvisibleApp), we are getting
the following error:

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

This seems to be a Permissions problem. In DCOMCFG we have assigned full
rights to Everyone under the Launch and Activation Permissions, Access
Permissions and Configuration Permissions, in the Security Tab for Microsoft
Visio Drawing. However, the problem still persists.

Under the Identity Tab, the user account used to run this application is set
to The Launching User. When this setting is changed to The Interactive User,
a different error is obtained:

Retrieving the COM class factory for component with CLSID
{000D0A26-0000-0000-C000-000000000046} failed due to the following error:
8000401a.

Does anyone have any idea why this is happening? šWhat needs to be doneto
solve this?

I have searched for these error messages on the internet, but they all say
that the problem is with Permissions configuration. šIf "Everyone" has full
rights, then I can't be wrong, can I?!

Thanks!

Have you read this KB article? (known as "The server-side automation
of Office applications is neither recommended nor supported")

http://support.microsoft.com/kb/257757
 
G

Guy007

Hi Nikolay,

To be honest I hadn't seen this article... :S

Strange thing is that we are using a similar technique with Excel. This
works while Visio doesn't, despite the fact that they have the same
privileges!
 
N

Nikolay Belyh

Hi Nikolay,

To be honest I hadn't seen this article... :S

Strange thing is that we are using a similar technique with Excel. šThis
works while Visio doesn't, despite the fact that they have the same
privileges!

If you made it work for Excel, I fail to see any reason for it not to
work with Visio..
I have just tried this myself; it does work for Visio as well:

"default.aspx":

<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load
Dim app = CreateObject("Visio.InvisibleApp")
Response.Write(app.Version)
app.Quit
End Sub
</script>

Means, when I enable the "Launch Permissions" for the "Microsoft
Office Visio Drawing" object (in DCOM-config) for the ASPNET user, the
above page works.

In other words, I don't see any problems with the reproduction of the
hedgehogs.
Really :)

Kind regards, Nikolay.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top