Hi Richard,
From your description, you encountered the
================
Compiler Error Message: BC30389: 'C' is not accessible in this context
because it is 'Private'.
================
compile error when try running the asp.net web page which has contained a
crystal report Viewser in it ,yes?
based on the checking in the Source you provided, I think the error is
likely due to the following setting in the page source:
=========================
<cr:CrystalReportViewer id=CrystalReportViewer1 style="Z-INDEX:
101; LEFT: 16px; POSITION: absolute; TOP: 16px" runat="server" Width="966px"
Height="977px" ReportSource="<%# C:\Inetpub\wwwroot\personeel\World Sales
Report.rpt %>" SelectionFormula="{Customer.Last Year's Sales}>0">
=========================
You set the absolute physical path of the report file on the server in the
<%# %> block , but you haven't used the quote "" to wrap the path , so when
complie the page, the asp.net will process it as a variable and get the
preceding error.
In addition, I recommend that you use the "Server.MapPath()" function to
get the physcial path of file from its virutal url path rather than
directly hard code the physical path in page source.
If you have any further questions, please feel free to post here. Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx