PDA

View Full Version : ارور در افزودن dll در asp.net



alireza66617
پنج شنبه 08 مهر 1395, 12:48 عصر
با سلام
من در افزودن فایل dll تقویم فارسی دچار مشکل شدم
همین dll را دقیقا توی پروژه دیگه اد کردم هیچ مشکلی نداشت
ولی توی پروژه دیگرم این ارورا میده
مشکل کجاست
Object reference not set to an instance of an object. 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.NullReferenceException: Object reference not set to an instance of an object.

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:



[NullReferenceException: Object reference not set to an instance of an object.]
JQControls.Utility.RegisterCSS(Control control, String cssFileName, Boolean useJS) +346
JQControls.JQLoader.OnPreRender(EventArgs e) +137
System.Web.UI.Control.PreRenderRecursiveInternal() +88
System.Web.UI.Control.PreRenderRecursiveInternal() +160
System.Web.UI.Control.PreRenderRecursiveInternal() +160
System.Web.UI.Control.PreRenderRecursiveInternal() +160
System.Web.UI.Control.PreRenderRecursiveInternal() +160
System.Web.UI.Control.PreRenderRecursiveInternal() +160
System.Web.UI.Control.PreRenderRecursiveInternal() +160
System.Web.UI.Control.PreRenderRecursiveInternal() +160
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4775

alireza66617
پنج شنبه 08 مهر 1395, 13:48 عصر
کسی تا حالا یعنی به این مشکل برنخورده

mr_ayma
پنج شنبه 08 مهر 1395, 14:47 عصر
سلام ؛ چرا از کلاس PersianCalendar استفاده نمی کنید . کار کردن باهاش هم ساده اس و نیازی به اقزودن Dll هم نیست .




System.Globalization.PersianCalendar pc = new System.Globalization.PersianCalendar();
string s = pc.GetYear(DateTime.Now) + "/" + pc.GetMonth(DateTime.Now) + "<br>";
s=s+pc.GetHour(DateTime.Now)+":"+pc.GetMinute(DateTime.Now)+":"+pc.GetSecond(DateTime.Now);

Response.Write(s);

alireza66617
پنج شنبه 08 مهر 1395, 15:52 عصر
میخوام کاربر تاریخ را انتخاب کنه

alireza66617
پنج شنبه 08 مهر 1395, 15:55 عصر
کسی نمیدونه این مشکلش چیه تو پروژه دیگم همین dll به درستی کار میداد