Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

system.drawing not found error - ASP.NET

Posted on 2002-06-10
6
Medium Priority
?
702 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 450 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

782 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