I need some help from you. I create a two tire architecture project in c#.net. One project have all forms and function and it's a class library project.
Second project have only application run code which get from first project's reference.
My code is mention below:
using MM = ProjectUtility;
namespace Project
{
static class Program
{
//
/// The main entry point for the application.
///
[STAThread]
[SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissionFlag.ControlAppDomain)]
static void Main(string[] args)
{
Application.Run(new MM.FrmMain());
}
}
}
I got mention below error from above bold code:
TypeInitializationException was unhanled
The type initializer for 'ProjectUtility.FrmMain' threw an exception.
Please help me to solve it.
Thanks,
Rupen
Sam HobbsPosted Jul 30, 2010, 1:50 PM
srinivasPosted Jul 30, 2010, 8:26 AM
can you give me the MM.frmMain form code so that i will try to help you