Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 27th, 2007, 08:42 AM
Registered User
 
Join Date: Jun 2007
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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."

Any help would be appreciated

Thanks





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 10: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 01:23 AM
Date parameter problem SethTalbott SQL Server ASP 3 September 22nd, 2004 12:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.