Solved

system.drawing not found error - ASP.NET

Posted on 2002-06-10
6
691 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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now