Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > Reporting Services
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Reporting Services SQL Server Reporting Services. Please specify which version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Reporting Services section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old June 27th, 2007, 08:42 AM
Registered User
Join Date: Jun 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Parameter Problem

I have created a custom assembly to display the parameter names using the GetReportParameters method. The parameters show through the preview screen in reporting services, but as soon as I deploy it and view the report through Report Manager it shows '#Error'.
What can I do? Any Help?

Thank You

When I run my report through 'DebugLocal' mode.
it breaks here:

Public Class ParameterList

    Public Shared Function GetParameterNames()
        Dim rs As New ReportingService
        rs.Credentials = System.Net.CredentialCache.DefaultCredentials:(
        Dim report As String = "/Commission Reports/Detailed Broker Commission Bordereaux"
        Dim forRendering As Boolean = False
        Dim historyID As String = Nothing
        Dim values As ParameterValue() = Nothing
        Dim credentials As DataSourceCredentials() = Nothing
        Dim strParam As String = ""

        Dim Parameters() As ReportParameter
        Parameters = rs.GetReportParameters(report, historyID, forRendering, values, credentials)

        If Not (Parameters Is Nothing) Then
            Dim rp As ReportParameter
            For Each rp In Parameters
                strParam = rp.Prompt & strParam
            Next rp
        End If
        Return strParam
    End Function

End Class

The message reads :

"Request for the permission of type 'System.Security.Permissions.EnvironmentPermission ,
mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."

Any help would be appreciated

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Subscription parameter problem Dangermouse BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 1 April 4th, 2007 04:56 AM
Problem with refreshing parameter roy_mm Reporting Services 0 January 25th, 2007 09:54 AM
problem with passing parameter hertendreef ADO.NET 0 June 23rd, 2006 10:00 AM
Parameter problem khaled_mm Crystal Reports 0 December 8th, 2004 12:23 AM
Date parameter problem SethTalbott SQL Server ASP 3 September 22nd, 2004 12:24 PM

All times are GMT -4. The time now is 10:06 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.