Thanks,
Is it under configuration?
Main Topics
Browse All TopicsHello Experts,
Need urgent help.......
I created a custom assembly in vb.net
Imports System
Imports System.Security
Public Class CustomUserId
Public Shared Function GetUserId() As String
Dim sName As String = (Principal.WindowsIdentity
sName = LTrim(sName)
sName = RTrim(sName)
Return LCase(sName)
'Return "Test"
End Function
End Class
I added the reference to this DLL in my report. Then I added textbox in my report. Added an expression:=CustomCodeHPCB
Then Put the DLL in C:\Program Files\Microsoft SQL Server\80\Tools\Report Designer(on my local machine)
Then I previewed the report. It works fine.Textbox showed the userId.
Next I put the DLL in
C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\bin(
I deployed the report.Then when I start the report,Textbox shows #Error.
Any idea why this is happening?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
instead of setting the default permission to Full trust can I do something like this: I think this is for the specific report
right?
<CodeGroup
class="FirstMatchCodeGroup
version="1"
PermissionSetName="FullTru
Name="MyCustomAssemblyCode
Description="A special code group for my custom assembly.">
<IMembershipCondition
class="UrlMembershipCondit
version="1"
Url="C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\bin\
</CodeGroup>
What should I specify in class and name:
My project name is: CustomCodeHPCBM
Class Name is:CustomUserId
Method: GetUserId()
Will it be something like this:
<CodeGroup
class="FirstMatchCodeGroup
version="1"
PermissionSetName="FullTru
Name="CustomCodeHPCBM"
Description="A special code group for my custom assembly.">
<IMembershipCondition
class="CustomUserId"
version="1"
Url="C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\bin\
</CodeGroup>
Business Accounts
Answer for Membership
by: ABaruhPosted on 2006-04-04 at 09:50:23ID: 16373088
It's probably a permissions setting
_Permissio ns in
change the PermissionSet for Report_Expressions_Default
rssrvpolicy.config to FullTrust