.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Server Execution Failed when trying New AcadApplication in service

4 REPLIES 4
Reply
Message 1 of 5
jamesmcg
783 Views, 4 Replies

Server Execution Failed when trying New AcadApplication in service

I'm working on a service that links into AutoCAD. The service is supposed to automatically do conversions, however, when it gets to this line:
_autoCad = New AcadApplication
it throws this exception:
Server execution failed

I am using VB.Net in visual studio 2003 with .NET 1.1.4322 and AutoCAD 2010. I have "Imports AutoCAD" and the AutoCAD 2010 Type Library referenced.

Thanks for any tips. I searched the forums and all i found was this thread-http://discussion.autodesk.com/forums/message.jspa?messageID=5112009, but i disabled the communication center, and i still encountered the error
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: jamesmcg

What kind of service you are creating? Windows service? web/wcf service?...

If it is Windows service, the service is not allowed to run desktop
application. Technically, you may be able to run Acad on a web server with
web application/services with certain configuration, but pratically not an
viable solution. That is why the "=New AcadApplication" statement fails. Not
to mention possible violation of Acad lisence by running it by "service".

You need to rethink/redesign your solution, I am afraid.

"jamesmcg" wrote in message news:6319467@discussion.autodesk.com...
I'm working on a service that links into AutoCAD. The service is supposed
to automatically do conversions, however, when it gets to this line:
_autoCad = New AcadApplication
it throws this exception:
Server execution failed

I am using VB.Net in visual studio 2003 with .NET 1.1.4322 and AutoCAD 2010.
I have "Imports AutoCAD" and the AutoCAD 2010 Type Library referenced.

Thanks for any tips. I searched the forums and all i found was this
thread-http://discussion.autodesk.com/forums/message.jspa?messageID=5112009,
but i disabled the communication center, and i still encountered the error
Message 3 of 5
jamesmcg
in reply to: jamesmcg

Yes, it's a windows service. It's worked in the past, with a previous version (2006, I believe)
Message 4 of 5
btmsoftware
in reply to: jamesmcg

I've read in those forums that removing/disabling the Acad communication center allows running Acad as a services. It is the gulty one regardin Acad hanging

 

Have you tried that ?

Message 5 of 5
hgasty1001
in reply to: jamesmcg

Hi,

 

While i don't know if you can run AutoCAD as a service, i do know that you need at least .NET 2.0 Framework (up to 4.0, but not supported nor recommended and with some limitations)  and VS 2008 (i'm not sure if VS 2005 does the cut) to compile and debug .NET code in AutoCAD 2010.

 

 

Gaston Nunez

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost