기억/C#

[ASP.NET]The type or namespace name 'Chart' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?)

Shift Key 2020. 1. 20. 16:27
728x90
반응형

차트 넣고 빌드 했더니 이런 오류가 뜬당

자동으로 생성되는 디자이너에서 오류가 발생했다.

 

dll 참조를 살펴봐도 문제가 없었다(경로 체크했음)
문제의 소스

정답은 다른 차트로 바꿔주면 되는 것!!

이와 같이 바꿔주니 해결~

1
2
3
4
5
//before
protected global::System.Web.UI.Chart Chart1;
 
//after
protected global::System.Web.UI.DataVisualization.Charting.Chart Chart1;
cs

https://colorscripter.com/s/AGZJ7Cx

 

공유된 코드 - Color Scripter

저작권자 : shiftkey.tistory.com 코드 설명 : 차트 코드

colorscripter.com

 

728x90
반응형