Hi,
I have created an assembly A that loads a resource assembly. The
resource assembly has other satellite assemblies (en-US, pt-BR, etc).
The aseembly A exposes a static method GetString() to access GetString
of a ResourceManager which loads those resource assemblies.
I have tested this code in a Win Forms App and it appears to work
fine, i.e. it loads my portugese resources, english resource as I make
it to.
When they are placed in the ReportServer\bin folder, only the neutral
resources are loaded and displayed.
I have also tried to include all of the dlls including the satellite
resources in the FullTrust code group and it still displays the same
symptoms.
Can anyone tell me why or how to fix it?
Please help,
Siew Fai.Hi Siew,
Welcome to using MSDN Managed Newsgroup!
You may refer the article below to use a Custom Assembly in Reporting
Services
Writing Custom Code in SQL Server Reporting Services
http://blogs.sqlxml.org/bryantlikes/articles/824.aspx
By default, report code has "ExecutionOnly" permissions only and therefore
it fails. You need to get familiar with .NET Code Access Security (CAS) to
setup the security policy files correctly for the report server and assert
security permissions accordingly.
You may also check the MSDN documentation of Assembly.Load and scroll down
to the section with the title Requirements / .NET Framework Security:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemReflectionAssemblyClassLoadTopic1.asp
Thank you for your patience and cooperation. If you have any questions or
concerns, don't hesitate to let me know. We are always here to be of
assistance!
Sincerely yours,
Michael Cheng
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.|||Thanks Michael,
I have finally got my the debuglocal version working, and it seems that
you have pointed me to the right track.
Really appreciate it.
Siew Fai|||Hi Siew,
You are welcome!
If you have any questions or concerns next time, don't hesitate to let me
know. We are always here to be of assistance!
Sincerely yours,
Michael Cheng
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================This posting is provided "AS IS" with no warranties, and confers no rights.
No comments:
Post a Comment