Hi
I am defining areporting servicefrom the SQL Server service
need to define a .net dll whichconnects to a web servicefor information and display in thereport
integration withthedll works perfectly,but there issecurityproblemwhen you want toaccess aurl
Error de solicitud de permiso de tipo 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
StackTrace: en System.ServiceModel.Description.ConfigLoader.IsWebConfigAboveApplication(ContextInformation contextInformation)
en System.ServiceModel.Description.ConfigLoader.CheckAccess(IConfigurationContextProviderInternal element)
en System.ServiceModel.Description.ConfigLoader.LookupChannel(String configurationName, String contractName, Boolean wildcard)
en System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
en System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)
en System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)
en System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName)
en System.ServiceModel.EndpointTrait`1.CreateSimplexFactory()
en System.ServiceModel.EndpointTrait`1.CreateChannelFactory()
en System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait)
en System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
en System.ServiceModel.ClientBase`1..ctor()
This same problem occursif you write toa text file:
Error de solicitud de permiso de tipo 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
researchon the subjectcould seethe following
How to grant permissions to a custom assembly that is referenced in a report in Reporting Services
but despitedefine securitywithinRssrvpolicy.configxml,thisis not recognized andcontinueswith the samesecurity error
did someone found with a similar problem?
-------
I am using
<CodeGroup class="FirstMatchCodeGroup" version="1" PermissionSetName="FullTrust"Name="MyCustomAssemblyCodeGroup" Description="A special code group for my custom assembly."><IMembershipCondition class="UrlMembershipCondition" version="1" Url="path\filename.dll"/></CodeGroup>
but I don´t sure inside what tag I must position the codegroup tag
greetings
Leandro Tuttini
Blog
Buenos Aires
Argentina