Graphs will not render unless the CS is deployed with the ASPX
The ASPX that includes the Charting control doesn not render anything unless I deploy the CS with it. I'm not really sure why, but if I watched the errors I got a pretty standard "resource not round," while trying to render the aspx. The resource in question was the codefile for the aspx. Once I deploy the CS with the ASPX the ASPX renders the graph and everything works as intended.
As a work-a-round, I decided to just put all the CS inline with the ASPX, but this is not my optimal solution.
Has anyone else seen this in thier work?
Thanks,
Scott<%@ Page Language="C#" CodeFile="BudgetChart.aspx.cs" Inherits="BudgetChart" EnableSessionState="ReadOnly" %> <%-- Uncomment for intellisense <html><body>--%> <asp:chart id="ChartBudget" runat="server" borderlinewidth="0" ImageType="Jpeg" AntiAliasing="All" rendertype="BinaryStreaming"> <ChartAreas> <asp:ChartArea Name="ChartAreaPercentage"> <AxisX Enabled="False" IsMarginVisible="false" /> <AxisY Enabled="False" IsMarginVisible="false" /> </asp:ChartArea> </ChartAreas> </asp:chart> <%-- Uncomment for intellisense</body></html>--%>
- Edited bybronder Tuesday, June 30, 2009 1:58 PMIncluding aspx
Answers
I tried to replicate the issue without success. I am using VS 2008 (solution, not web site) and IIS7. I used Build->Publish... from the menu.
What VS do you use?
Delian- Marked As Answer byAlex GorevMSFT, OwnerTuesday, July 14, 2009 3:12 PM
All Replies
I tried to replicate the issue without success. I am using VS 2008 (solution, not web site) and IIS7. I used Build->Publish... from the menu.
What VS do you use?
Delian- Marked As Answer byAlex GorevMSFT, OwnerTuesday, July 14, 2009 3:12 PM
Delian,
We are running Windows 2003sp2, wtih .Net 3.5sp1 and VS2008, sp1.
The parser error I get on the site is as follows:Server Error in '/' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: The file '/Charts/BudgetChart.aspx.cs' does not exist. Source Error: Line 1: <%@ Page Language="C#" CodeFile="BudgetChart.aspx.cs" Inherits="xxxxx.Charts.BudgetChart" EnableSessionState="ReadOnly" %> Line 2: Line 3: <%-- Uncomment for intellisense Source File: /Charts/BudgetChart.aspx Line: 1 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
- Do you have the web solution deployed as assembly in bin directory?


