Microsoft Developer Network > Página principal de foros > Chart Controls for .NET Framework > Graphs will not render unless the CS is deployed with the ASPX
Formular una preguntaFormular una pregunta
 

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

  • martes, 30 de junio de 2009 13:52bronder Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     Tiene código

    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>--%>
    
    • Editadobronder martes, 30 de junio de 2009 13:58Including aspx
    •  

Respuestas

Todas las respuestas

  • viernes, 03 de julio de 2009 4:17DelianTMSFT, ModeradorMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     Respondida

    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

  • viernes, 03 de julio de 2009 13:46bronder Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     Tiene código

    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 
    
  • lunes, 06 de julio de 2009 16:40DelianTMSFT, ModeradorMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    Do you have the web solution deployed as assembly in bin directory?