Changing the config file often is not enought. You need to find from the
..NET documentation what permission remoting needs. Supposedly, or so I've
heard, .NET 2.0 includes an utility that would tell you what permission the
assembly needs. Once you have the permission, you need to assert in your
code before making the call. If nothing else works, you can bypass CAS
security altogether by changing the rssrvpolicy.config file as follows:
<PermissionSet
class="NamedPermissionSet"
version="1"
Name="Execution">
<IPermission
class="SecurityPermission"
version="1"
Flags="Full"
/>
or web.config by removing the trustLevel line from
<securityPolicy>
<trustLevel name="RosettaSrv" policyFile="rssrvpolicy.config" />
</securityPolicy>
As a side note, I wish the RS team could have simplified the RS 2005
security model to bring it in par with the SQL Server 2005 security model
where there are only three levels. I personally don't think that RS
developers need to become experts in CAS security.
--
HTH,
----------------------------------------------
Teo Lachev, MVP, MCSD, MCT
"Microsoft Reporting Services in Action"
"Applied Microsoft Analysis Services 2005"
Home page and blog:
http://www.prologika.com/ ----------------------------------------------
[quoted text, click to view] "SMG" <dadoo@online.nospam> wrote in message
news:061C5A60-A612-4357-993E-38429E7C63F4@microsoft.com...
> Thanks for the reply, but unfortunatelly this didn't work as well :-(
>
> Anyway, I gave up, and created new remoting.config file which I deploy
> together with the .dll file.
>
> This seems to work now in Designer, but I am getting
> rsErrorExecutingCommand
> when trying to execute it in ReportManager (in browser). Error message
> says:
>
> Request for the permission of type
> System.Security.Permissions.SecurityPermission, mscorlib,
> Version=1.0.5000.0,
> Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
>
> Sure, I did some "googling", and most of the responses on this problem
> tell
> me to make changes to proper *.config files that I did already :-(
>
> Among the others in the rssrvpolicy.config file I have:
>
> <CodeGroup
> class="UnionCodeGroup"
> version="1"
> PermissionSetName="FullTrust"
> Name="Business.Reports.DPE"
> Description="Code group for the Reports data processing extension">
> <IMembershipCondition
> class="UrlMembershipCondition"
> version="1"
> Url="c:\SQL Server\MSSQL\Reporting
> Services\ReportServer\bin\Business.Reports.DPE.dll" />
> </CodeGroup>
>
>
> I am really stuck with this :-(
>
> I guess it is needless to say that I highly appreciate *any* help!
>
>
> Regards!
>
>
> "Teo Lachev [MVP]" wrote:
>
>> During runtime, when the report is rendered under the Report Server, you
>> should be able to read the settings from the Report Server web.config
>> file.
>> C:\Program Files\Microsoft SQL
>> Server\MSSQL\ReportingServices\ReportServer\web.config
>>
>> During design time, you should be able to hit F5 and use the Report Host
>> configuration file (RSReportHost.exe.config). The file doesn't exists so
>> you
>> need to create it. In VS 2003, RSReportHost.exe should be located in
>> C:\Program Files\Microsoft Visual Studio 2003\Common7\IDE (I believe).
>> --
>> HTH,
>> ----------------------------------------------
>> Teo Lachev, MVP, MCSD, MCT
>> "Microsoft Reporting Services in Action"
>> "Applied Microsoft Analysis Services 2005"
>> Home page and blog:
http://www.prologika.com/ >> ----------------------------------------------