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