rahim_shirkhani
شنبه 03 مهر 1395, 15:42 عصر
با سلام خدمت اساتید
من توی پروژه ام از persianCulture استفاده میکنم که توی لوکال هیچ مشکلی نداره ولی موقعی که روی سرور آپ کردم با پیغام زیر مواجه شدم اگه امکانش هست راهنمایی بفرمایید.
Server Error in '/' Application.
Attempt by method 'GSD.Globalization.PersianCulture..ctor(System.Str ing, Boolean)' to access method 'System.Globalization.Calendar.get_ID()' failed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MethodAccessException: Attempt by method 'GSD.Globalization.PersianCulture..ctor(System.Str ing, Boolean)' to access method 'System.Globalization.Calendar.get_ID()' failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[MethodAccessException: Attempt by method 'GSD.Globalization.PersianCulture..ctor(System.Str ing, Boolean)' to access method 'System.Globalization.Calendar.get_ID()' failed.]
System.RuntimeMethodHandle.PerformSecurityCheck(Ob ject obj, RuntimeMethodHandleInternal method, RuntimeType parent, UInt32 invocationFlags) +0
System.RuntimeMethodHandle.PerformSecurityCheck(Ob ject obj, IRuntimeMethodInfo method, RuntimeType parent, UInt32 invocationFlags) +31
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +146
System.Reflection.RuntimePropertyInfo.GetValue(Obj ect obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) +61
System.Reflection.RuntimePropertyInfo.GetValue(Obj ect obj, Object[] index) +21
GSD.Globalization.PersianCulture..ctor(String cultureName, Boolean useUserOverride) +267
Denaa.MvcApplication.Application_BeginRequest(Obje ct sender, EventArgs e) +31
System.Web.SyncEventExecutionStep.System.Web.HttpA pplication.IExecutionStep.Execute() +141
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +69
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1069.1
من توی پروژه ام از persianCulture استفاده میکنم که توی لوکال هیچ مشکلی نداره ولی موقعی که روی سرور آپ کردم با پیغام زیر مواجه شدم اگه امکانش هست راهنمایی بفرمایید.
Server Error in '/' Application.
Attempt by method 'GSD.Globalization.PersianCulture..ctor(System.Str ing, Boolean)' to access method 'System.Globalization.Calendar.get_ID()' failed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MethodAccessException: Attempt by method 'GSD.Globalization.PersianCulture..ctor(System.Str ing, Boolean)' to access method 'System.Globalization.Calendar.get_ID()' failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[MethodAccessException: Attempt by method 'GSD.Globalization.PersianCulture..ctor(System.Str ing, Boolean)' to access method 'System.Globalization.Calendar.get_ID()' failed.]
System.RuntimeMethodHandle.PerformSecurityCheck(Ob ject obj, RuntimeMethodHandleInternal method, RuntimeType parent, UInt32 invocationFlags) +0
System.RuntimeMethodHandle.PerformSecurityCheck(Ob ject obj, IRuntimeMethodInfo method, RuntimeType parent, UInt32 invocationFlags) +31
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +146
System.Reflection.RuntimePropertyInfo.GetValue(Obj ect obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) +61
System.Reflection.RuntimePropertyInfo.GetValue(Obj ect obj, Object[] index) +21
GSD.Globalization.PersianCulture..ctor(String cultureName, Boolean useUserOverride) +267
Denaa.MvcApplication.Application_BeginRequest(Obje ct sender, EventArgs e) +31
System.Web.SyncEventExecutionStep.System.Web.HttpA pplication.IExecutionStep.Execute() +141
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +69
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1069.1