Hi,
I have a DPE (data processig extension) that calls a Dynamic Proxy DLL -
this DLL has been declared in a Code Group of the rssrvpolicy.config file -
for developmental purposes, it uses the "FullTrust" PermissionSet and it all
works well ... to a point.
In the dynamic proxy code when I try and instantiate a new instance of the
class: ServiceDescriptionImporter() I get an exception (see below) I'm
stumped as to why I get it.
Anyone got ideas - it seems to be a security related issue as when I run the
report request via the RS Report Designer UI, it works ok.
(btw: the Get Online Help link in the error takes me t a MS page tat tells
me there's no current help available)
thanks,
- Simon
Query execution failed for data set 'MyDataset'. (rsErrorExecutingCommand)
Get Online Help
at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet
grants, PermissionSet denied, PermissionSet demands) at
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at
System.Activator.CreateInstance(Type type, Boolean nonPublic) at
System.Web.Services.Description.ServiceDescriptionImporter..ctor() at
My.Infrastructure.WebServices.DynamicWebServiceProxy.BuildAssemblyFromWsdl(String
strWsdl) in
d:\development\infrastructure\webservices\dynamicwebserviceproxy\dynamicwebserviceproxy.cs:line 318
Line 318: ServiceDescriptionImporter sdi = new ServiceDescriptionImporter();I discovered that the DPE and the Dynamic Proxy needed to be using the
Permission Set - they werent.
When aligned to use FullTrust, both worked OK
No comments:
Post a Comment