Crystal Reports error asp.net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brock

    Crystal Reports error asp.net

    I'm trying to view a Crystal Report that is in the same project
    folder
    as my .aspx page that I have to hold the reportViewer... I get the
    following error. Any Ideas??

    Server Error in '/HR_ReportingToo l/HR_ReportingToo lClient_1'
    Application.
    ---------------------------------------------------------------------------­­-----


    Compilation Error
    Description: An error occurred during the compilation of a resource
    required to service this request. Please review the following
    specific
    error details and modify your source code appropriately.


    Compiler Error Message: BC30389: 'C' is not accessible in this
    context
    because it is 'Private'.


    Source Error:


    Line 13: <form id="Form1" method="post"
    runat="server">
    Line 14:
    Line 15: <cr:CrystalRepo rtViewer
    id=CrystalRepor tViewer1 style="Z-
    INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 48px" runat="server"
    Height="1089px" Width="901px" ReportSource="< %# c:\inetpub\wwwr oot
    \HR_ReportingTo ol\HR_Reporting ToolClient_1\HR IS_CurrrentEmpl oyees.rpt
    %>" >
    Line 16: </cr:CrystalRepor tViewer>
    Line 17: </form>

  • rowe_newsgroups

    #2
    Re: Crystal Reports error asp.net

    On Jul 27, 10:46 pm, Brock <wade.br...@yah oo.comwrote:
    I'm trying to view a Crystal Report that is in the same project
    folder
    as my .aspx page that I have to hold the reportViewer... I get the
    following error. Any Ideas??
    >
    Server Error in '/HR_ReportingToo l/HR_ReportingToo lClient_1'
    Application.
    ---------------------------------------------------------------------------­­-----
    >
    Compilation Error
    Description: An error occurred during the compilation of a resource
    required to service this request. Please review the following
    specific
    error details and modify your source code appropriately.
    >
    Compiler Error Message: BC30389: 'C' is not accessible in this
    context
    because it is 'Private'.
    >
    Source Error:
    >
    Line 13:                <form id="Form1" method="post"
    runat="server">
    Line 14:
    Line 15:                        <cr:CrystalRepo rtViewer
    id=CrystalRepor tViewer1 style="Z-
    INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 48px" runat="server"
    Height="1089px" Width="901px" ReportSource="< %# c:\inetpub\wwwr oot
    \HR_ReportingTo ol\HR_Reporting ToolClient_1\HR IS_CurrrentEmpl oyees.rpt
    %>" >
    Line 16:                        </cr:CrystalRepor tViewer>
    Line 17:                </form>
    Are you sure the Report Source file path is accurate? As in, are you
    sure the website's root dir isn't D: instead of C:?

    Thanks,

    Seth Rowe [MVP]

    Comment

    • Brock

      #3
      Re: Crystal Reports error asp.net

      I checked the properties for the report and the c:\inetpub\wwwr oot
      \HR_ReportingTo ol\HR_Reporting ToolClient_1\HR IS_CurrrentEmpl oyees.rpt
      is location of that report.

      On Jul 28, 6:55 am, rowe_newsgroups <rowe_em...@yah oo.comwrote:
      On Jul 27, 10:46 pm, Brock <wade.br...@yah oo.comwrote:
      >
      >
      >
      >
      >
      I'm trying to view a Crystal Report that is in the same project
      folder
      as my .aspx page that I have to hold the reportViewer... I get the
      following error. Any Ideas??
      >
      Server Error in '/HR_ReportingToo l/HR_ReportingToo lClient_1'
      Application.
      ---------------------------------------------------------------------------­­­-----
      >
      Compilation Error
      Description: An error occurred during the compilation of a resource
      required to service this request. Please review the following
      specific
      error details and modify your source code appropriately.
      >
      Compiler Error Message: BC30389: 'C' is not accessible in this
      context
      because it is 'Private'.
      >
      Source Error:
      >
      Line 13:                <form id="Form1" method="post"
      runat="server">
      Line 14:
      Line 15:                        <cr:CrystalRepo rtViewer
      id=CrystalRepor tViewer1 style="Z-
      INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 48px" runat="server"
      Height="1089px" Width="901px" ReportSource="< %# c:\inetpub\wwwr oot
      \HR_ReportingTo ol\HR_Reporting ToolClient_1\HR IS_CurrrentEmpl oyees.rpt
      %>" >
      Line 16:                        </cr:CrystalRepor tViewer>
      Line 17:                </form>
      >
      Are you sure the Report Source file path is accurate? As in, are you
      sure the website's root dir isn't D: instead of C:?
      >
      Thanks,
      >
      Seth Rowe [MVP]http://sethrowe.blogsp ot.com/- Hide quoted text -
      >
      - Show quoted text -

      Comment

      • rowe_newsgroups

        #4
        Re: Crystal Reports error asp.net

        On Jul 28, 8:28 am, Brock <wade.br...@yah oo.comwrote:
        I checked the properties for the report and the c:\inetpub\wwwr oot
        \HR_ReportingTo ol\HR_Reporting ToolClient_1\HR IS_CurrrentEmpl oyees.rpt
        is location of that report.
        >
        On Jul 28, 6:55 am, rowe_newsgroups <rowe_em...@yah oo.comwrote:
        >
        On Jul 27, 10:46 pm, Brock <wade.br...@yah oo.comwrote:
        >
        I'm trying to view a Crystal Report that is in the same project
        folder
        as my .aspx page that I have to hold the reportViewer... I get the
        following error. Any Ideas??
        >
        Server Error in '/HR_ReportingToo l/HR_ReportingToo lClient_1'
        Application.
        ---------------------------------------------------------------------------­­­-----
        >
        Compilation Error
        Description: An error occurred during the compilation of a resource
        required to service this request. Please review the following
        specific
        error details and modify your source code appropriately.
        >
        Compiler Error Message: BC30389: 'C' is not accessible in this
        context
        because it is 'Private'.
        >
        Source Error:
        >
        Line 13:                <form id="Form1" method="post"
        runat="server">
        Line 14:
        Line 15:                        <cr:CrystalRepo rtViewer
        id=CrystalRepor tViewer1 style="Z-
        INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 48px" runat="server"
        Height="1089px" Width="901px" ReportSource="< %# c:\inetpub\wwwr oot
        \HR_ReportingTo ol\HR_Reporting ToolClient_1\HR IS_CurrrentEmpl oyees.rpt
        %>" >
        Line 16:                        </cr:CrystalRepor tViewer>
        Line 17:                </form>
        >
        Are you sure the Report Source file path is accurate? As in, are you
        sure the website's root dir isn't D: instead of C:?
        >
        Thanks,
        >
        Seth Rowe [MVP]http://sethrowe.blogsp ot.com/-Hide quoted text -
        >
        - Show quoted text -
        I'm basically shooting in the dark here, but you might try removing
        the "<%#" and "%>" from ReportSource="< %# c:\inetpub\wwwr oot
        \HR_ReportingTo ol\HR_Reporting ToolClient_1\HR IS_CurrrentEmpl oyees.rpt
        %>"

        Thanks,

        Seth Rowe [MVP]

        Comment

        • Brock

          #5
          Re: Crystal Reports error asp.net

          I changed it to: ReportSource="c :\inetpub\wwwro ot\HR_Reporting Tool
          \HR_ReportingTo olClient_1\HRIS _CurrrentEmploy ees.rpt"
          Then I get a "Parser Error Message: Cannot create an object of type
          'System.Object' from its string representation 'c:\inetpub\www root
          \HR_ReportingTo ol\HR_Reporting ToolClient_1\HR IS_CurrrentEmpl oyees.rpt'
          for the 'ReportSource' property."

          I'm going to look into using "Server.MapPath " although I've just used
          that in vb.net in code behind in another app to tell my .aspx where to
          find an xml file I was using as a datasource so I'm not sure where to
          start on that in applying that apping technique to find my Crystal
          Report. Any Ideas? thanks!

          I'm basically shooting in the dark here, but you might try removing
          the "<%#" and "%>" from ReportSource="< %# c:\inetpub\wwwr oot
          \HR_ReportingTo ol\HR_Reporting ToolClient_1\HR IS_CurrrentEmpl oyees.rpt
          %>"
          >
          Thanks,
          >
          Seth Rowe [MVP]http://sethrowe.blogsp ot.com/- Hide quoted text -
          >
          - Show quoted text -

          Comment

          • Brock

            #6
            Re: Crystal Reports error asp.net

            I found what I had hoped would be a solution at:


            So I used the Server.MapPath:
            ReportSource='< %# Server.MapPath( "HRIS_CurrrentE mployees.rpt") %>'

            I dont' get an error but I don't see my report when I run the app nor
            in design view, just the tool.


            On Jul 28, 1:28 pm, rowe_newsgroups <rowe_em...@yah oo.comwrote:
            On Jul 28, 8:28 am, Brock <wade.br...@yah oo.comwrote:
            >
            >
            >
            >
            >
            I checked the properties for the report and the c:\inetpub\wwwr oot
            \HR_ReportingTo ol\HR_Reporting ToolClient_1\HR IS_CurrrentEmpl oyees.rpt
            is location of that report.
            >
            On Jul 28, 6:55 am, rowe_newsgroups <rowe_em...@yah oo.comwrote:
            >
            On Jul 27, 10:46 pm, Brock <wade.br...@yah oo.comwrote:
            >
            I'm trying to view a Crystal Report that is in the same project
            folder
            as my .aspx page that I have to hold the reportViewer... I get the
            following error. Any Ideas??
            >
            Server Error in '/HR_ReportingToo l/HR_ReportingToo lClient_1'
            Application.
            ---------------------------------------------------------------------------­­­­-----
            >
            Compilation Error
            Description: An error occurred during the compilation of a resource
            required to service this request. Please review the following
            specific
            error details and modify your source code appropriately.
            >
            Compiler Error Message: BC30389: 'C' is not accessible in this
            context
            because it is 'Private'.
            >
            Source Error:
            >
            Line 13:                <form id="Form1" method="post"
            runat="server">
            Line 14:
            Line 15:                        <cr:CrystalRepo rtViewer
            id=CrystalRepor tViewer1 style="Z-
            INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 48px" runat="server"
            Height="1089px" Width="901px" ReportSource="< %# c:\inetpub\wwwr oot
            \HR_ReportingTo ol\HR_Reporting ToolClient_1\HR IS_CurrrentEmpl oyees.rpt
            %>" >
            Line 16:                        </cr:CrystalRepor tViewer>
            Line 17:                </form>
            >
            Are you sure the Report Source file path is accurate? As in, are you
            sure the website's root dir isn't D: instead of C:?
            >
            Thanks,
            >
            Seth Rowe [MVP]http://sethrowe.blogsp ot.com/-Hidequoted text -
            >
            - Show quoted text -
            >
            I'm basically shooting in the dark here, but you might try removing
            the "<%#" and "%>" from ReportSource="< %# c:\inetpub\wwwr oot
            \HR_ReportingTo ol\HR_Reporting ToolClient_1\HR IS_CurrrentEmpl oyees.rpt
            %>"
            >
            Thanks,
            >
            Seth Rowe [MVP]http://sethrowe.blogsp ot.com/- Hide quoted text -
            >
            - Show quoted text -

            Comment

            Working...