problem creating instance

problem creating instance

Anonymous
Not applicable
1,240 Views
3 Replies
Message 1 of 4

problem creating instance

Anonymous
Not applicable
HI,

I have a dll to convert a plane to PDF with autocad2007.
I am using the following code in my dll:
instance = Activator.CreateInstance(Type.GetTypeFromProgID("AutoCAD.Application.17", true));

in my development environment is working correctly, but when i publish the application in IIS (Windows 2K3 server) remains blocked by creating the instance for 2 minutes and then give me the error:

Retrieving the COM class factory for component with CLSID {28B7AA99-C0F9-4C47-995E-8A8D729603A1} failed due to the following error: 80080005.

I think it should be a problem of permissions, any ideas?

Thanks. Edited by: user789 on Oct 3, 2008 8:41 AM
0 Likes
1,241 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

How does your application run? What type of
application is it?

 

Since you mention IIS server and you use C#, It
seems your app is an ASP.NET application. So, here are points to
consider:

 

1. Automating a complicated desktop application,
such as AutoCAD on a web server, although technically it could run, should
always be avoided, Acad (or other desktop apps, like MS Office app) is not
designed to run on a server. It almost certain you will not get a reliable
application unless the process is extremely simple.

 

2. Depending on which user account you configure to
run your ASP.NET app, that account must have permission to run Acad on that
server. That is, you need to know what account is running your ASP.NET first,
then you need to configure DCOM permission on the server. Search the wne for
"Retrieving the COM class factory for
component with CLSID ..." would give you some links on this
topic.

 

3. Running Acad on a web server is very likely
breaking your AutoCAD license.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
HI,
I have a dll to convert a plane to PDF with autocad2007. I am using the
following code in my dll: instance =
Activator.CreateInstance(Type.GetTypeFromProgID("AutoCAD.Application.17",
true));
in my development environment is working correctly, but when i
publish the application in IIS (Windows 2K3 server) remains blocked by
creating the instance for 2 minutes and then give me the error: Retrieving
the COM class factory for component with CLSID
{28B7AA99-C0F9-4C47-995E-8A8D729603A1} failed due to the following error:
80080005.
I think it should be a problem of permissions, any ideas?
Thanks. Edited by: user789 on Oct 3, 2008 8:41 AM
0 Likes
Message 3 of 4

Anonymous
Not applicable

I tried to laucnch the autocad from vb.net using this code :

 

 

Dim vAcadApp As New Autodesk.AutoCAD.Interop.AcadApplication

I'm getting this exception

 Retrieving the COM class factory for component with CLSID..failed due to the following error: 80080005

 

It is working properly on win xp but under windows vista it gave me the above exception...

I gave all permissions to the user I'm logging in using dcomcnfg ..

but it doesn't work ...

Any help will be greatly appreciated

0 Likes
Message 4 of 4

Anonymous
Not applicable

I have the same issue on Vista with AutoCAD LT 2011. How was this resolved?

 

0 Likes