all groups > sql server reporting services > february 2005 >
I have written a custom assembly which is utilized by a report. I have referenced the assembly in the designer and copied the dll over to both the correct designer and server rs folders. The assembly is strongly named and I have added the public key to the code group for my dll. The assembly info file uses the assembly level 'PartiallyTrustedUsers' declaration. I have also provided the SqlClientPermissionSet attribute for my assembly methods. When in preview mode the report interacts with the assembly without any problems. However, when I try to deploy the project, the assembly can't deploy, and the following error message is given; Error while loading code module: ‘Bills.Reports.Services, Version=1.0.1861.24738, Culture=neutral, PublicKeyToken=6770a2ddb8b54cb8’. Details: ? Has anybody else had this problem? Does anybody know what I am doing wrong
Benugo, It is related to code access security issues. Try running your code under fulltrust first. Once it is successful, use permview to determine required CAS level. Regards, Cem Demircioglu [quoted text, click to view] "Benugo" <Benugo@discussions.microsoft.com> wrote in message news:8ACEF060-B6FF-44ED-BEEE-C5C3A8E5C5F2@microsoft.com... >I have written a custom assembly which is utilized by a report. I have > referenced the assembly in the designer and copied the dll over to both > the > correct designer and server rs folders. The assembly is strongly named and > I > have added the public key to the code group for my dll. The assembly info > file uses the assembly level 'PartiallyTrustedUsers' declaration. I have > also > provided the SqlClientPermissionSet attribute for my assembly methods. > > When in preview mode the report interacts with the assembly without any > problems. However, when I try to deploy the project, the assembly can't > deploy, and the following error message is given; > > Error while loading code module: 'Bills.Reports.Services, > Version=1.0.1861.24738, Culture=neutral, PublicKeyToken=6770a2ddb8b54cb8'. > Details: ? > > Has anybody else had this problem? Does anybody know what I am doing wrong > or where to look to find an answer?
I have changed the server side rssrvpolicy.cs to full trusted mode and I still get the same error when attempting to upload the code. I even restarted IIS to make sure. Is there anything else I can try. [quoted text, click to view] "Cem Demircioglu" wrote: > > Benugo, > It is related to code access security issues. Try running your code under > fulltrust first. > Once it is successful, use permview to determine required CAS level. > > Regards, > Cem Demircioglu > > "Benugo" <Benugo@discussions.microsoft.com> wrote in message > news:8ACEF060-B6FF-44ED-BEEE-C5C3A8E5C5F2@microsoft.com... > >I have written a custom assembly which is utilized by a report. I have > > referenced the assembly in the designer and copied the dll over to both > > the > > correct designer and server rs folders. The assembly is strongly named and > > I > > have added the public key to the code group for my dll. The assembly info > > file uses the assembly level 'PartiallyTrustedUsers' declaration. I have > > also > > provided the SqlClientPermissionSet attribute for my assembly methods. > > > > When in preview mode the report interacts with the assembly without any > > problems. However, when I try to deploy the project, the assembly can't > > deploy, and the following error message is given; > > > > Error while loading code module: 'Bills.Reports.Services, > > Version=1.0.1861.24738, Culture=neutral, PublicKeyToken=6770a2ddb8b54cb8'. > > Details: ? > > > > Has anybody else had this problem? Does anybody know what I am doing wrong > > or where to look to find an answer? > >
Have just attempted to deploy a simple assembly (doesn't access databases, files etc, just returns a simple "Hello world" string"). Again this code works well in the preview, but I get the same problem when I try to deploy it. Can it still be a policy file issue? Surely the policy file shouldn't prevent the dll from deploying (just from being used by the report). [quoted text, click to view] "Benugo" wrote: > I have changed the server side rssrvpolicy.cs to full trusted mode and I > still get the same error when attempting to upload the code. I even restarted > IIS to make sure. Is there anything else I can try. > > "Cem Demircioglu" wrote: > > > > > Benugo, > > It is related to code access security issues. Try running your code under > > fulltrust first. > > Once it is successful, use permview to determine required CAS level. > > > > Regards, > > Cem Demircioglu > > > > "Benugo" <Benugo@discussions.microsoft.com> wrote in message > > news:8ACEF060-B6FF-44ED-BEEE-C5C3A8E5C5F2@microsoft.com... > > >I have written a custom assembly which is utilized by a report. I have > > > referenced the assembly in the designer and copied the dll over to both > > > the > > > correct designer and server rs folders. The assembly is strongly named and > > > I > > > have added the public key to the code group for my dll. The assembly info > > > file uses the assembly level 'PartiallyTrustedUsers' declaration. I have > > > also > > > provided the SqlClientPermissionSet attribute for my assembly methods. > > > > > > When in preview mode the report interacts with the assembly without any > > > problems. However, when I try to deploy the project, the assembly can't > > > deploy, and the following error message is given; > > > > > > Error while loading code module: 'Bills.Reports.Services, > > > Version=1.0.1861.24738, Culture=neutral, PublicKeyToken=6770a2ddb8b54cb8'. > > > Details: ? > > > > > > Has anybody else had this problem? Does anybody know what I am doing wrong > > > or where to look to find an answer? > > > >
Make sure that assembly is in Reportserver/bin. Also check file permissions on the dll file - RS Server should be able to read the file. There is a simple way to verify if it's a CAS issue or not: go to rssrvpolicy.config, temporarily "Nothing" to "FullTrust" at the root code group, restart IIS and see what happens. If assembly works - then there is a CAS problem. Please return "Nothing" back afterwards. -- 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] "Benugo" <Benugo@discussions.microsoft.com> wrote in message news:3365A429-4BDD-4732-A1C1-8C371499EB1D@microsoft.com... > Have just attempted to deploy a simple assembly (doesn't access databases, > files etc, just returns a simple "Hello world" string"). Again this code > works well in the preview, but I get the same problem when I try to deploy > it. Can it still be a policy file issue? Surely the policy file shouldn't > prevent the dll from deploying (just from being used by the report). > > "Benugo" wrote: > > > I have changed the server side rssrvpolicy.cs to full trusted mode and I > > still get the same error when attempting to upload the code. I even restarted > > IIS to make sure. Is there anything else I can try. > > > > "Cem Demircioglu" wrote: > > > > > > > > Benugo, > > > It is related to code access security issues. Try running your code under > > > fulltrust first. > > > Once it is successful, use permview to determine required CAS level. > > > > > > Regards, > > > Cem Demircioglu > > > > > > "Benugo" <Benugo@discussions.microsoft.com> wrote in message > > > news:8ACEF060-B6FF-44ED-BEEE-C5C3A8E5C5F2@microsoft.com... > > > >I have written a custom assembly which is utilized by a report. I have > > > > referenced the assembly in the designer and copied the dll over to both > > > > the > > > > correct designer and server rs folders. The assembly is strongly named and > > > > I > > > > have added the public key to the code group for my dll. The assembly info > > > > file uses the assembly level 'PartiallyTrustedUsers' declaration. I have > > > > also > > > > provided the SqlClientPermissionSet attribute for my assembly methods. > > > > > > > > When in preview mode the report interacts with the assembly without any > > > > problems. However, when I try to deploy the project, the assembly can't > > > > deploy, and the following error message is given; > > > > > > > > Error while loading code module: 'Bills.Reports.Services, > > > > Version=1.0.1861.24738, Culture=neutral, PublicKeyToken=6770a2ddb8b54cb8'. > > > > Details: ? > > > > > > > > Has anybody else had this problem? Does anybody know what I am doing wrong > > > > or where to look to find an answer? > > > > > > > > >
I had the exact same problem. It was the permissions on the dll files themselves. When I copied them into the folder they did not assume the permissions of the parent folder. Once I set those it worked. [quoted text, click to view] "Alexandre Mineev [MSFT]" wrote: > Make sure that assembly is in Reportserver/bin. Also check file permissions > on the dll file - RS Server should be able to read the file. > There is a simple way to verify if it's a CAS issue or not: go to > rssrvpolicy.config, temporarily "Nothing" to "FullTrust" at the root code > group, restart IIS and see what happens. If assembly works - then there is a > CAS problem. Please return "Nothing" back afterwards. > > -- > 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 > > "Benugo" <Benugo@discussions.microsoft.com> wrote in message > news:3365A429-4BDD-4732-A1C1-8C371499EB1D@microsoft.com... > > Have just attempted to deploy a simple assembly (doesn't access databases, > > files etc, just returns a simple "Hello world" string"). Again this code > > works well in the preview, but I get the same problem when I try to deploy > > it. Can it still be a policy file issue? Surely the policy file shouldn't > > prevent the dll from deploying (just from being used by the report). > > > > "Benugo" wrote: > > > > > I have changed the server side rssrvpolicy.cs to full trusted mode and I > > > still get the same error when attempting to upload the code. I even > restarted > > > IIS to make sure. Is there anything else I can try. > > > > > > "Cem Demircioglu" wrote: > > > > > > > > > > > Benugo, > > > > It is related to code access security issues. Try running your code > under > > > > fulltrust first. > > > > Once it is successful, use permview to determine required CAS level. > > > > > > > > Regards, > > > > Cem Demircioglu > > > > > > > > "Benugo" <Benugo@discussions.microsoft.com> wrote in message > > > > news:8ACEF060-B6FF-44ED-BEEE-C5C3A8E5C5F2@microsoft.com... > > > > >I have written a custom assembly which is utilized by a report. I > have > > > > > referenced the assembly in the designer and copied the dll over to > both > > > > > the > > > > > correct designer and server rs folders. The assembly is strongly > named and > > > > > I > > > > > have added the public key to the code group for my dll. The assembly > info > > > > > file uses the assembly level 'PartiallyTrustedUsers' declaration. I > have > > > > > also > > > > > provided the SqlClientPermissionSet attribute for my assembly > methods. > > > > > > > > > > When in preview mode the report interacts with the assembly without > any > > > > > problems. However, when I try to deploy the project, the assembly > can't > > > > > deploy, and the following error message is given; > > > > > > > > > > Error while loading code module: 'Bills.Reports.Services, > > > > > Version=1.0.1861.24738, Culture=neutral, > PublicKeyToken=6770a2ddb8b54cb8'. > > > > > Details: ? > > > > > > > > > > Has anybody else had this problem? Does anybody know what I am doing > wrong > > > > > or where to look to find an answer? > > > > > > > > > > > > > >
Don't see what you're looking for? Try a search.
|
|
|