Wcf And .net Sdk フォローする

0
Avatar
Legacy Poster

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.
 
Thanks!
 
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. 
 
                    btTaskManager.Start(2);
 
                }
}
 

4 コメント

0
Avatar
Legacy Poster
コメントアクション Permalink

update:

 

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"/>
</startup>

 

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

0
Avatar
Legacy Poster
コメントアクション Permalink

Anyone from Seagull support who can help?

0
Avatar
Ian Cummings
モデレータ
コメントアクション Permalink

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

0
Avatar
Legacy Poster
コメントアクション Permalink

figured it out myself!

 

configure DCOM permissions 

サインインしてコメントを残してください。