Solved

system.drawing not found error - ASP.NET

Posted on 2002-06-10
6
697 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
classic asp checkbox uncheck and check 2 69
Time/Date Query 11 43
PDF Embed pdfobject.js local path problem regular ASP 2 181
ASP exit 10 20
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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
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…

820 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