Groups | Blog | Home
all groups > sql server reporting services > january 2005 >

sql server reporting services : custom assemblies problem



Alexandre Mineev [MSFT]
1/31/2005 12:05:01 PM
might be a code access security problem
to diagnose (do not do this on a production server) please find =
rssrvpolicy.config file in ReportServer folder and modify the following:
old:
<CodeGroup=20
class=3D"FirstMatchCodeGroup"
version=3D"1"
PermissionSetName=3D"Nothing">
new:
<CodeGroup=20
class=3D"FirstMatchCodeGroup"
version=3D"1"
PermissionSetName=3D"FullTrust">

Restart iis and see if it runs the report, let me know the results. If =
it runs - it's a security problem, I will let you know further steps.

! Please undo the change of rssrvpolicy.config afterwards...!

--=20
Alex Mineev
Software Design Engineer. Report expressions; Code Access Security; Xml; =
SQE.

This posting is provided "AS IS" with no warranties, and confers no =
rights

[quoted text, click to view]
Servé La
1/31/2005 4:36:53 PM
[quoted text, click to view]
some code to call the component.
It works fine in preview mode, but when I deploy the report to another
server I get the error:
"error while loading code module 'x', version='x' ..."

I feel I tried everything, copying the dll myself to the server's
reportserver\bin folder, giving read & execute permissions, creating the xml
nodes in the RSReportServer.config on the server etc.

Always that error.

Is there some description on what to do if you deploy your reports with
custom assemblies to another server?

Servé_La
2/2/2005 8:57:51 AM
Thank you for answering. The problem was solved, it was a stupid mistake =
of mine.
The good news is that the FullTrust setting did help me later when I =
needed to load assemblies from report code :)


"Alexandre Mineev [MSFT]" <almineev@microsoft.com> schreef in bericht =
news:eAOfmA9BFHA.1260@TK2MSFTNGP12.phx.gbl...
might be a code access security problem
to diagnose (do not do this on a production server) please find =
rssrvpolicy.config file in ReportServer folder and modify the following:
old:
<CodeGroup=20
class=3D"FirstMatchCodeGroup"
version=3D"1"
PermissionSetName=3D"Nothing">
new:
<CodeGroup=20
class=3D"FirstMatchCodeGroup"
version=3D"1"
PermissionSetName=3D"FullTrust">

Restart iis and see if it runs the report, let me know the results. If =
it runs - it's a security problem, I will let you know further steps.

! Please undo the change of rssrvpolicy.config afterwards...!

--=20
Alex Mineev
Software Design Engineer. Report expressions; Code Access Security; =
Xml; SQE.

This posting is provided "AS IS" with no warranties, and confers no =
rights

[quoted text, click to view]
Alexandre Mineev [MSFT]
2/2/2005 11:04:36 AM
Please do not use FullTrust in production environment. It ultimately =
opens RS for attacks.
The use of FullTrust was needed for diagnostics only.
This article describe what needs to be done for custom assemblies if =
they do not work by default: =
http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/RSPROG=
/htm/rsp_prog_rdl_8mue.asp

--=20
Alex Mineev
Software Design Engineer. Report expressions; Code Access Security; Xml; =
SQE.

This posting is provided "AS IS" with no warranties, and confers no =
rights

[quoted text, click to view]
Thank you for answering. The problem was solved, it was a stupid =
mistake of mine.
The good news is that the FullTrust setting did help me later when I =
needed to load assemblies from report code :)


"Alexandre Mineev [MSFT]" <almineev@microsoft.com> schreef in =
bericht news:eAOfmA9BFHA.1260@TK2MSFTNGP12.phx.gbl...
might be a code access security problem
to diagnose (do not do this on a production server) please find =
rssrvpolicy.config file in ReportServer folder and modify the following:
old:
<CodeGroup=20
class=3D"FirstMatchCodeGroup"
version=3D"1"
PermissionSetName=3D"Nothing">
new:
<CodeGroup=20
class=3D"FirstMatchCodeGroup"
version=3D"1"
PermissionSetName=3D"FullTrust">

Restart iis and see if it runs the report, let me know the results. =
If it runs - it's a security problem, I will let you know further steps.

! Please undo the change of rssrvpolicy.config afterwards...!

--=20
Alex Mineev
Software Design Engineer. Report expressions; Code Access Security; =
Xml; SQE.

This posting is provided "AS IS" with no warranties, and confers no =
rights

[quoted text, click to view]
AddThis Social Bookmark Button