Solved

system.drawing not found error - ASP.NET

Posted on 2002-06-10
6
694 Views
Last Modified: 2007-12-19
I just installed asp.net on a windows 2000 server. I would like to create a pie chart.  I found a sample pie chart script on the 123aspx site... here's the URL:
http://www.123aspx.com/redir.aspx?res=27396

This script seems very straightforward.  I copied the createpiechart.aspx file to c:\inetpub\wwwroot and copied the utCharting.dll file to a new "bin" folder which I created under c:\inetpub\wwwroot.  When I try to run the application, I get this error message:
File or assembly name System.Drawing, or one of its dependencies, was not found.

My understanding of ASP.NET is that system.drawing is a built in interface.  Is there some setting that needs to be set for this to take effect? Or is it possible I installed the script and/or DLL for this charting program incorrectly?

Thanks
0
Comment
Question by:scottwb_98
  • 3
  • 2
6 Comments
 

Expert Comment

by:softomatix
ID: 7071848
You need to add reference to System.Drawing.dll assembly to your project.

Create a virtual folder under main wwwroot folder and copy aspx file there. Create a bin folder under that folder and copy the DLL there.
0
 

Accepted Solution

by:
softomatix earned 225 total points
ID: 7071851
Here is a URL to a much more elaborate charting library.

http://www.pardesiservices.com/Softomatix/ASPChartNet1.asp

0
 

Author Comment

by:scottwb_98
ID: 7071854
I tried creating a virtual folder under wwwroot and putting the aspx file there, and then putting the DLL in a bin folder under that virtual folder.  That did not make a difference.

How would I go about adding a reference to the system.drawing.dll assembly?  I searched my system for "system.drawing.dll" and the file was not found.  Could that be the problem?  Should it have come with the .NET framework?

Thanks
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Expert Comment

by:softomatix
ID: 7071861
System.Drawing.dll does gets installed with .Net framework. Infact without this there would not be any graphics operations in .Net apps. It should be present in <windows folder>/Microsoft.Net/<framewotk version> folder.

If this file is not there then there is serious problem with your installation of .Net framework.
0
 

Author Comment

by:scottwb_98
ID: 7071912
Ok I checked and the system.drawing.dll file is in that folder.  What else could be wrong?  How would I add a reference to system.drawing.dll to the project??
0
 
LVL 33

Expert Comment

by:hongjun
ID: 7516165
This question appears to have been abandoned. Please come back to this question and do the necessary evaluation or feedback. I will invite a Moderator to close this question if there's no reply from you after seven days.

I suggest
<delete>

** PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER **

hongjun
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question