Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Biztalk WCF Service Security Error
- This topic has 2 replies, 1 voice, and was last updated 9 years, 2 months ago by
community-content.
-
AuthorPosts
-
-
February 12, 2009 at 12:17 AM #21709
Hi,
I have Published a Biztalk WCF Service.
I am getting the following error when I try to invoke the service.
Exception Details: System.Security.SecurityException: Request for the permission of type ‘System.Net.DnsPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:[SecurityException: Request for the permission of type ‘System.Net.DnsPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ failed.]
System.ServiceModel.AsyncResult.End(IAsyncResult result) +4413209
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +183
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +205
System.ServiceModel.Activation.HttpHandler.ProcessRequest(HttpContext context) +77
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
I even tried setting the identity to impersonate my login credentials but it does want to work.
Please help.
-
February 12, 2009 at 6:07 AM #21714
Greetings,
This appears to be a Code Access Security issue. What credentials are your BT Instance running as? ALso look at the credentials that your IIS Server virtual directory that’s hosting the WCF/SOAP adapter. What are the credentials for the app pool?
Both credentials must match and have permission to use the DNS lookup from CAS.
HTH
-
January 9, 2010 at 6:18 PM #24038
check the webconfig for wss_minimal or wss_medium trust levels. If you have windows sharepoint services installed, it may be blocking your WCF service. Good luck.
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.