midomshakel2010 كتب:اواجه هذه المشكلة ولا اعرف لها حلاارجو منكم الافادة ,جزاكم الله كل خيرا
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.]
RadioResala._Default.GetAd() in E:\A7mad\Projects\Resala\Website\RadioResala\RadioResala\Default.aspx.cs:112
RadioResala._Default.Page_Load(Object sender, EventArgs e) in E:\A7mad\Projects\Resala\Website\RadioResala\RadioResala\Default.aspx.cs:106
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4205
مرفق الملف الذي توجد به المشكلة او الذي اعتقد انه المسؤل عن المشكلة
مشكلة عند رفع الموقع على السيرفر
الأخ ميدو
السلام عليكم ورحمة الله وبركاته
بالنسبة للملف الي انت أرفقتهـ، إذا كان في خطأ فأعتقد راح يكون في السطر رقم 99
<%--<li class="separator"> </li>--%> // Please note that the <% %> represent a server-side block of code // try to type in the code-behind --<li class="xyz"> </li> -- // and then compile
إذا الخطأ لا يزال موجود أتمنى منك إرفاق ملف السي شارب
Default.aspx.cs
أتمنى لك التوفيق والنجاح