Microsoft Developer Network > Forenhomepage > Chart Controls for .NET Framework > Graphs will not render unless the CS is deployed with the ASPX
Stellen Sie eine FrageStellen Sie eine Frage
 

BeantwortetGraphs will not render unless the CS is deployed with the ASPX

  • Dienstag, 30. Juni 2009 13:52bronder TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     Enthält Code

    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>--%>
    
    • Bearbeitetbronder Dienstag, 30. Juni 2009 13:58Including aspx
    •  

Antworten

Alle Antworten

  • Freitag, 3. Juli 2009 04:17DelianTMSFT, ModeratorTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     Beantwortet

    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

  • Freitag, 3. Juli 2009 13:46bronder TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     Enthält Code

    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 
    
  • Montag, 6. Juli 2009 16:40DelianTMSFT, ModeratorTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Do you have the web solution deployed as assembly in bin directory?