Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble Referencing System.Drawing in web app. 1

Status
Not open for further replies.

NeilTrain

Programmer
May 27, 2003
275
US
So i have a file in my App_Code directory called Globals.cs
Code:
public class Globals
{
     public static string devSqlConnString = "....";
     public static string prodSqlConnString = "....";
     public static System.Drawing.Size MaxWorkingSize = new Size(400,600);
     public static System.Drawing.Size MaxViewingSize = new Size(534,800);
}

The problem is the System.Drawing.Size raises an error, even if I add "using System.Drawing;" to the top of the page.

When I go to the project's properties pages while in VS 2005, it does not allow me to add System.Drawing, I select it but it does not get added to the list, and no error message. It just never gets added. I even tried adding it by hand in the web.config file, but I dont know the PublicKeyToken for it and cant add there without compiler errors.
 
from VS right click the bin directory. Click Add References. select the .Net tab. scroll till you find System.Drawing. select, add. compile.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top