Rupendra Bensh

Rupendra Bensh

  • NA
  • 1
  • 2.2k

Error when run project

Jul 29 2010 4:40 PM
Hello All Friend,

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
     {
// <summary> /// The main entry point for the application. /// </summary> [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

Answers (2)