Can't pass parameter - rsAccessDenied

I am having a problem passing a parameter. When it gets to the last line of code where I set the parameters, I get this error. Can anyone help

  • The permissions granted to user 'NT AUTHORITY\NETWORK SERVICE' are insufficient for performing this operation. (rsAccessDenied)

    Here is my code:


    ReportParameters(0) = New ReportParameter("ProjectKey", 262)
    rv.ShowParameterPrompts = False
    rv.ServerReport.ReportServerUrl = u.ConvertFromString("http://localhost/ReportServer/")
    rv.ServerReport.ReportPath = "/Test/Duplicate_MIU_Report"
    rv.ServerReport.SetParameters(ReportParameters)




  • Answer this question

    Can't pass parameter - rsAccessDenied

    • JFoushee

      Lukasz Pawlowski -- MS wrote:

      You'll need to grant network service permission to view the report.

      Do that in report manager or management studio. If you have the default roles, you should just assign the Browser role.

      If the report server is on a remote computer, you'll need to grant to the machine account: <domain>\<machinename>$.

      Does that answer your question

      -Lukasz

      Where would I grant the machine account the access, as stated in your quote I have the scenario using a remote computer for the report server.



    • Carlos Junquera Cachero

      John, what specifically are you referring to Do you know that if you login as a member of the local administrators group on the computer that hosts the report server, you can always set permissions

      -Lukasz



    • Keith Rogers

      You'd use Report Manager, go to the item properties page, then to the security tab. There you'd give the accounts above a permission like browser.

      -Lukasz



    • rbellamy

      I have the same problem. It seems that setting user access rights in RS is a big nightmare. One wrong step, and the whole thing collapses, you need to reinstall YUKON from scratch.



    • Tej

      You'll need to grant network service permission to view the report.

      Do that in report manager or management studio. If you have the default roles, you should just assign the Browser role.

      If the report server is on a remote computer, you'll need to grant to the machine account: <domain>\<machinename>$.

      Does that answer your question

      -Lukasz



    • Kelo

      What folder would you need to grant the access to, where the website resides or where the reportviewer resides I am using remote reporting server to get reports. It works in casini, but won't work when I deploy to IIS on a different machine. Part of it works because I have a label that is populated by a query (gives the path in the report server) when I click the report I want through a dropdown box.



    • Can't pass parameter - rsAccessDenied