BizTalk WCF Adapter – BasicHttpBinding results in Partial Trust Exception

Posted: October 10, 2010 in BizTalk
Tags: , , ,

Exception: System.ServiceModel.ServiceActivationException: The service ‘/MyService/Service.svc’ cannot be activated due to an exception during compilation. The exception message is: That assembly does not allow partially trusted callers.. —> System.Security.SecurityException: That assembly does not allow partially trusted callers.

SOLUTION

After some research I found that I’m getting problem because the WCF service requires full trust permission to run from the server. One way to solve the problem is:

  • Open web.config file in notepad
  • In <system.web> section add the following tag:
    • <trust level="Full" originUrl=""/>
      

These steps solved my problem.

Tags: BizTalk | WCF | Adapters | Errors and Warnings, Causes and Solutions

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s