Wcf And .net Sdk 追蹤


I am new with WCF and wanted to create a service that will create task/print labels/manage engines.


So i am doing some testing.

I created 2 operation contracts.

1st is having an input string and will return "Hello" + the input data from the user.

2nd is to just start 2 BT engines after the button is clicked.


I hosted the WCF in IIS (everything is done in a single development machine).


Created a client to access the WCF service.


The 1st works fine, i put something on the text box and returns the correct output.

the 2nd one i got this error (supposed to start 2 BT engines)


An exception of type 'System.ServiceModel.FaultException' occurred in mscorlib.dll but was not handled in user code
Additional information: The server was unable to process the request due to an internal error.  
For more information about the error, either turn on IncludeExceptionDetailInFaults 
(either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order 
to send the exception information back to the client, or turn on tracing as per the 
Microsoft .NET Framework SDK documentation and inspect the server trace logs.
Can anyone guide me to fix this issue.
I am using BT Enterprise Automation 10.0 (licensed)
my code inside the service to start 2 BT engines:
 void IBTService.StartEngines()
 using (TaskManager btTaskManager = new TaskManager())
                    // Start a TaskEngine. 

4 意見

Legacy Poster
評論操作 永久連結



so i added this to my web.config


<serviceDebug includeExceptionDetailInFaults="True"/>


i also added the try..catch with getting the exception message.

and i got this "Unable to start the requested number of print engines."


based on one suggestion here i added this to my app.config


<startup useLegacyV2RuntimeActivationPolicy="true">
       <supportedRuntime version="v4.0"/>


still getting this message : "Unable to start the requested number of print engines."

Legacy Poster
評論操作 永久連結

Anyone from Seagull support who can help?

Ian Cummings
評論操作 永久連結

I suggest you get in contact with tech-support: http://www.seagullscientific.com/support/technical-support/

Legacy Poster
評論操作 永久連結

figured it out myself!


configure DCOM permissions