473,326 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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_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_Cu rrrentEmployees.rpt
%>" >
Line 16: </cr:CrystalReportViewer>
Line 17: </form>

Jul 28 '08 #1
5 1916
On Jul 27, 10:46*pm, Brock <wade.br...@yahoo.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_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_Cu rrrentEmployees.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/
Jul 28 '08 #2
I checked the properties for the report and the c:\inetpub\wwwroot
\HR_ReportingTool\HR_ReportingToolClient_1\HRIS_Cu rrrentEmployees.rpt
is location of that report.

On Jul 28, 6:55*am, rowe_newsgroups <rowe_em...@yahoo.comwrote:
On Jul 27, 10:46*pm, Brock <wade.br...@yahoo.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_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_Cu rrrentEmployees.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/- Hide quoted text -

- Show quoted text -
Jul 28 '08 #3
On Jul 28, 8:28*am, Brock <wade.br...@yahoo.comwrote:
I checked the properties for the report and the c:\inetpub\wwwroot
\HR_ReportingTool\HR_ReportingToolClient_1\HRIS_Cu rrrentEmployees.rpt
is location of that report.

On Jul 28, 6:55*am, rowe_newsgroups <rowe_em...@yahoo.comwrote:
On Jul 27, 10:46*pm, Brock <wade.br...@yahoo.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_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_Cu rrrentEmployees.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/-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\wwwroot
\HR_ReportingTool\HR_ReportingToolClient_1\HRIS_Cu rrrentEmployees.rpt
%>"

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Jul 28 '08 #4
I changed it to: ReportSource="c:\inetpub\wwwroot\HR_ReportingTool
\HR_ReportingToolClient_1\HRIS_CurrrentEmployees.r pt"
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_Cu rrrentEmployees.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\wwwroot
\HR_ReportingTool\HR_ReportingToolClient_1\HRIS_Cu rrrentEmployees.rpt
%>"

Thanks,

Seth Rowe [MVP]http://sethrowe.blogspot.com/- Hide quoted text -

- Show quoted text -
Jul 28 '08 #5
I found what I had hoped would be a solution at:
http://p2p.wrox.com/topic.asp?TOPIC_ID=14707

So I used the Server.MapPath:
ReportSource='<%# Server.MapPath("HRIS_CurrrentEmployees.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...@yahoo.comwrote:
On Jul 28, 8:28*am, Brock <wade.br...@yahoo.comwrote:


I checked the properties for the report and the c:\inetpub\wwwroot
\HR_ReportingTool\HR_ReportingToolClient_1\HRIS_Cu rrrentEmployees.rpt
is location of that report.
On Jul 28, 6:55*am, rowe_newsgroups <rowe_em...@yahoo.comwrote:
On Jul 27, 10:46*pm, Brock <wade.br...@yahoo.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_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_Cu rrrentEmployees.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/-Hidequoted text -
- Show quoted text -

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_Cu rrrentEmployees.rpt
%>"

Thanks,

Seth Rowe [MVP]http://sethrowe.blogspot.com/- Hide quoted text -

- Show quoted text -
Jul 28 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: BStorm | last post by:
I have a transaction log file where the DataSet table's Description column is actually delimited into "subcolumns" based upon the transaction id. I would like to parse these into separate fields...
1
by: Ron Holmes | last post by:
I posted this question on the Crystal Reports Support site and I am still waiting for an answer. Using Crystal Reports 9.0 Developer Full edition: My Crystal report .RPT file has a Picture box...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
7
by: mrwoopey | last post by:
I have a asp.net application that uses the crystal report viewer control. It displays all of my reports but all of a sudden it started giving me the following error on ONLY two reports: "Fail...
1
by: James | last post by:
Hello, I have developed a reporting application w/ASP.NET on IIS v5 utilizing the Crystal Reports v9 ActiveX Viewer. Another developer has produced several reports using the client version of...
2
by: fig000 | last post by:
Hi everyone, I recently wrote a vb.net app which includes some crystal reports. The user has very little money in their budget and have been without a working application for quite a while. This...
4
by: John R. Dougherty | last post by:
I have developed an application with VB.NET, which includes the Crystal Reports (Visual Studio .NET 2003 edition) controls. I can run the application on my PC and it does work fine, but on any...
4
by: Mike | last post by:
Hi We are developing an ASP.NET 2.0 application and using the in built Crystal report system that it comes with. We have everything running fine on our development server but when we publish...
2
by: matt | last post by:
hello, i have an .RPT file that i am using to load a report via the ASP.NET CrystalReportViewer control. i dont include my .RPTs as embedded resources...instead i load the absolute path of the...
1
by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= | last post by:
On reflection, you could possibly make the app a self extracting zip file which extracts the EXE and a settings file and then starts the app, then when you app closes, it can repack the settings...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.