ASP.NET Charting Control no longer working with .NET 4

后端 未结 3 1789
暗喜
暗喜 2021-01-12 20:19

I\'ve just upgraded to .NET 4 and my ASP.NET Chart Control no longer displays.

For .NET 3.5, the HTML produced by the control used to look like this:



        
3条回答
  •  囚心锁ツ
    2021-01-12 20:45

    Thanks for your answers, but I don't think mine was an IIS6/IIS7 problem.

    I traced it to the fact that the default value for ImageStorageMode on a ChartControl has changed from UseImageLocation to UseHttpHandler. My ChartControl now has some extra attributes and all works fine.

    
    

    I had to also change the ImageLocation to be non-relative (by adding /Temp/) as that also caused a problem when iterating over the ChartControl's DataPoints in some code-behind.

提交回复
热议问题