So i have a file in my App_Code directory called Globals.cs
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.
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.