Microsoft Developer Network > 포럼 홈 > Chart Controls for .NET Framework > Graphs will not render unless the CS is deployed with the ASPX
질문하기질문하기
 

답변됨Graphs will not render unless the CS is deployed with the ASPX

  • 2009년 6월 30일 화요일 오후 1:52bronder 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     코드 있음

    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>--%>
    
    • 편집됨bronder 2009년 6월 30일 화요일 오후 1:58Including aspx
    •  

답변

  • 2009년 7월 3일 금요일 오전 4:17DelianTMSFT, 중재자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨

    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

모든 응답

  • 2009년 7월 3일 금요일 오전 4:17DelianTMSFT, 중재자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨

    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

  • 2009년 7월 3일 금요일 오후 1:46bronder 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     코드 있음

    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 
    
  • 2009년 7월 6일 월요일 오후 4:40DelianTMSFT, 중재자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Do you have the web solution deployed as assembly in bin directory?