-
August 8th, 2017, 16:26
#1
Server Error in '/' Application رفع خطا
با سلام ببخشید من نمی دونم مشکلم رو کجا باید مطرح کنم ناچازا اینجا مطرح می کنم
می خواستم کمکم کنید که این ارور رو از سایت برطرف کنم:
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
-
-
August 8th, 2017 16:26
# ADS
-
August 8th, 2017, 16:35
#2
عضو جدید
پاسخ : Server Error in '/' Application رفع خطا

نوشته اصلی توسط
rezaabtahi
با سلام ببخشید من نمی دونم مشکلم رو کجا باید مطرح کنم ناچازا اینجا مطرح می کنم
می خواستم کمکم کنید که این ارور رو از سایت برطرف کنم:
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 مربوط به برنامه سایت با نسخه مربوط در هاستینگ
۲- استفاده از دستورات و کدنویسی اشتباه در فایل های سایت
-
-
August 8th, 2017, 19:27
#3
پاسخ : Server Error in '/' Application رفع خطا

نوشته اصلی توسط
persiandroid
دلیل خطا:
۱- یکسان نبودن نسخه مربوط به Asp.net مربوط به برنامه سایت با نسخه مربوط در هاستینگ
۲- استفاده از دستورات و کدنویسی اشتباه در فایل های سایت
خیلی دوست عزیز اما میشه راهنمایی بکنین تا درستش بکنم
-
-
August 8th, 2017, 20:38
#4
عضو جدید
پاسخ : Server Error in '/' Application رفع خطا

نوشته اصلی توسط
rezaabtahi
خیلی دوست عزیز اما میشه راهنمایی بکنین تا درستش بکنم
هنگام انجام چه عملیاتی این خطا را دریافت می کنید؟
-
-
August 9th, 2017, 18:28
#5
پاسخ : Server Error in '/' Application رفع خطا
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1087.0
این خطا مربوط ورژن دات نت نصب شده روی سرور میباشد شما باید نسخه 4.6.2 روی سرور نصب کنید
-
-
August 10th, 2017, 00:46
#6
عضو جدید
پاسخ : Server Error in '/' Application رفع خطا
کد:
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 است . (حالا هر چیزی میتونه باشه)
که باید اصلاح بفرمایید.
ربطی به ورژن و .. نداره ، برنامتون رو اصلاح بفرمایید بزرگوار
-