| Jason's profileJason's .NET BlogBlogLists | Help |
|
August 26 BizTalk Error: Failed to grant permission to execute. (Exception from HRESULT: 0x80131418)Here is an issue I ran into for BizTalk 2009 when using the WCF-BasicHttp or WCF-WSHttp adapter.
I received the following error:
The adapter "WCF-WSHttp" raised an error message. Details "System.Security.Policy.PolicyException: Failed to grant permission to execute.
What was I doing?
What I was trying to do is expose a schema as a web service endpoint so that any calls to that service would dump that message straight to the message box. Now ... not wanting to expose my internal schema I created a schema definition especially for this service and a corresponding map to map it to my canonical/internal schema. Deployed the solution.
Next, I used the handy BizTalk WCF Service Publishing Wizard to create the .svc and ports, etc. I then updated the Receive Port to run the map. When I tested the endpoint I got the above error. I then removed the map and the test ran succesfully (albeit with my intended map).
What the heck was happening?
Well ... as luck would have it I had quickly ramped up this virtual server environment and put the portal on port 80 which meant WSS was running on port 80. Upon inspecting the .NET Trust Level for my web application it was set to WSS_Minimal!!! Arggg! I had spent way too much time on this one!
What was the fix?
Just some things to remember when setting up a web application to run a service into BizTalk:
Well ... hope this helps someone else! TrackbacksWeblogs that reference this entry
|
|
|