.net framework 4.0

Oct 20, 2011 at 6:40 AM

In .net framework 4.0 error occured on setting persian options.

this is details:

System.TypeInitializationException was unhandled  Message=The type initializer for 'PersianCulture.PersianCultureHelper' threw an exception.  Source=Devisal Persian  TypeName=PersianCulture.PersianCultureHelper  StackTrace:       at PersianCulture.PersianCultureHelper.SetPersianOptions(CultureInfo culture)       at TestPersian.Program.Main(String[] args) in F:\Mine\Source\TestPersian\Program.cs:line 14       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)       at System.Threading.ThreadHelper.ThreadStart()  InnerException: System.NullReferenceException       Message=Object reference not set to an instance of an object.       Source=Devisal Persian       StackTrace:            at Devisal.Localization.PersianCultureHelper..cctor() in F:\Mine\Saman\Source\Devisal Persian\PersianCultureHelper.cs:line 48       InnerException: {"Object reference not set to an instance of an object."}