Crystal Reports error asp.net

B

Brock

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_ReportingTool/HR_ReportingToolClient_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:CrystalReportViewer
id=CrystalReportViewer1 style="Z-
INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 48px" runat="server"
Height="1089px" Width="901px" ReportSource="<%# c:\inetpub\wwwroot
\HR_ReportingTool\HR_ReportingToolClient_1\HRIS_CurrrentEmployees.rpt
%>" >
Line 16: </cr:CrystalReportViewer>
Line 17: </form>
 
R

rowe_newsgroups

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_ReportingTool/HR_ReportingToolClient_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:CrystalReportViewer
id=CrystalReportViewer1 style="Z-
INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 48px" runat="server"
Height="1089px" Width="901px" ReportSource="<%# c:\inetpub\wwwroot
\HR_ReportingTool\HR_ReportingToolClient_1\HRIS_CurrrentEmployees.rpt
%>" >
Line 16:                        </cr:CrystalReportViewer>
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.blogspot.com/
 
B

Brock

I checked the properties for the report and the c:\inetpub\wwwroot
\HR_ReportingTool\HR_ReportingToolClient_1\HRIS_CurrrentEmployees.rpt
is location of that report.
 
R

rowe_newsgroups

I checked the properties for the report and the c:\inetpub\wwwroot
\HR_ReportingTool\HR_ReportingToolClient_1\HRIS_CurrrentEmployees.rpt
is location of that report.

I'm basically shooting in the dark here, but you might try removing
the "<%#" and "%>" from ReportSource="<%# c:\inetpub\wwwroot
\HR_ReportingTool\HR_ReportingToolClient_1\HRIS_CurrrentEmployees.rpt
%>"

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
 
B

Brock

I changed it to: ReportSource="c:\inetpub\wwwroot\HR_ReportingTool
\HR_ReportingToolClient_1\HRIS_CurrrentEmployees.rpt"
Then I get a "Parser Error Message: Cannot create an object of type
'System.Object' from its string representation 'c:\inetpub\wwwroot
\HR_ReportingTool\HR_ReportingToolClient_1\HRIS_CurrrentEmployees.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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top