PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : Server Error in '/' Application رفع خطا



rezaabtahi
August 8th, 2017, 16:26
با سلام ببخشید من نمی دونم مشکلم رو کجا باید مطرح کنم ناچازا اینجا مطرح می کنم
می خواستم کمکم کنید که این ارور رو از سایت برطرف کنم:

Server Error in '/' Application.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.]
ImamAli.IView.ArticleView3.buildPages() in c:\inetpub\wwwroot\AbtahiLib\ArticleView3.aspx.cs: 126
ImamAli.IView.ArticleView3.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\AbtahiLib\ArticleView3.aspx.cs: 48
System.Web.UI.Control.OnLoad(EventArgs e) +95
System.Web.UI.Control.LoadRecursive() +59
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2952




Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1087.0

persiandroid
August 8th, 2017, 16:35
با سلام ببخشید من نمی دونم مشکلم رو کجا باید مطرح کنم ناچازا اینجا مطرح می کنم
می خواستم کمکم کنید که این ارور رو از سایت برطرف کنم:

Server Error in '/' Application.

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.]
ImamAli.IView.ArticleView3.buildPages() in c:\inetpub\wwwroot\AbtahiLib\ArticleView3.aspx.cs: 126
ImamAli.IView.ArticleView3.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\AbtahiLib\ArticleView3.aspx.cs: 48
System.Web.UI.Control.OnLoad(EventArgs e) +95
System.Web.UI.Control.LoadRecursive() +59
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2952



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1087.0


دلیل خطا:

۱- یکسان نبودن نسخه مربوط به Asp.net مربوط به برنامه سایت با نسخه مربوط در هاستینگ
۲- استفاده از دستورات و کدنویسی اشتباه در فایل های سایت

rezaabtahi
August 8th, 2017, 19:27
دلیل خطا:

۱- یکسان نبودن نسخه مربوط به Asp.net مربوط به برنامه سایت با نسخه مربوط در هاستینگ
۲- استفاده از دستورات و کدنویسی اشتباه در فایل های سایت


خیلی دوست عزیز اما میشه راهنمایی بکنین تا درستش بکنم

persiandroid
August 8th, 2017, 20:38
خیلی دوست عزیز اما میشه راهنمایی بکنین تا درستش بکنم

هنگام انجام چه عملیاتی این خطا را دریافت می کنید؟

mehrdad-arch
August 9th, 2017, 18:28
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1087.0
این خطا مربوط ورژن دات نت نصب شده روی سرور میباشد شما باید نسخه 4.6.2 روی سرور نصب کنید

ealireza
August 10th, 2017, 00:46
System.NullReferenceException: Object reference not set to an instance of an object
مشکل سمت برنامه شما میباشد


ImamAli.IView.ArticleView3.buildPages() in c:\inetpub\wwwroot\AbtahiLib\ArticleView3.aspx.cs: 126

ببینید در این خط یک instance ساخته شده که مقدار ندارد و به اصطلاح NULL است . (حالا هر چیزی میتونه باشه)
که باید اصلاح بفرمایید.

ربطی به ورژن و .. نداره ، برنامتون رو اصلاح بفرمایید بزرگوار