Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,I want draw a graph for the signal on Zedgraph in asp.net,I read some projec on Codeproject and search in Google about it ex:A flexible charting library for .NET,ZedGraph in a C# web application in a Medium trust environment... But when I code in project,the Zedgraphweb isn't working.
https://imageshack.com/i/ipluAK3zp[^]

How can I solve it.
Thank you for reading my question.
Posted
Comments
Sergey Alexandrovich Kryukov 1-Oct-14 13:44pm    
Why showing here this bitmap? What does it tell us? "Isn't working" is not informative, too.
—SA
Member 10243484 1-Oct-14 23:15pm    
Sorry,It doesn't show a bitmap.I can't see the signal how can I fix it???
Sergey Alexandrovich Kryukov 2-Oct-14 0:21am    
You show bitmap here: https://imageshack.com/i/ipluAK3zp. This picture is not informative. Please explain the problem properly, with all essential detail. Please look at the question which successfully got answers...
—SA
Member 10243484 3-Oct-14 0:26am    
My plan is draw a signal in zedgraph in asp.net when I have a value.Creating a web application:
1)In Visual Studio,I select New Project>ASP.NET Web Application
2)It might also be helpful to run your tests in Medium trust as well. In the Web.Config file, inside the System.Web section, add: <trust level="Medium">.
3)In Solution Explorer, expand Properties and double-click to open AssemblyInfo.cs. Add:using System.Security;
[assembly: AllowPartiallyTrustedCallers ]
4)In Visual Studio,I hit Project--- Add Reference--- Browse (tab), and browse to ZedGraph.dll in your project /bin directory. Repeat to also add a reference to ZedGraph.Web.dll.
5)I add the ZedGraphWeb control to the Toolbox. Select the Toolbox tab (usually on the right) and scroll all the way to the last tab "General". Right-click and select "Choose item". Then hit "Browse" and browse to the ZedGraph.Web.dll that you just copied into your project \bin directory. This should result in a ZedGraphWeb control appearing in the Toolbox under the General tab at the bottom of the list.
6)Drag the ZedGraphWeb control onto Default.aspx (which is still in Designer view).But It isn't display a Zedgraph likely in Windows Forms.And I copy a code here http://www.codeproject.com/Articles/116696/ZedGraph-in-a-C-web-application-in-a-Medium-trust . into my project and run project it have a error(System.Security.SecurityException: That assembly does not allow partially trusted callers. at ZedGraph.Web.ZedGraphWeb.CreateGraph(Stream OutputStream, ImageFormat Format, Boolean bShowTransparency) at ZedGraph.Web.ZedGraphWeb.Render(HtmlTextWriter output) The action that failed was: LinkDemand The Zone of the assembly that failed was: MyComputer).
How can I fix it???
Thanks for your reply.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900