الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

[ تنبيه ] الموقع لا يعمل على سرير فكيف اكتشف الخطا

بدأه محمد فايد محمد في 31 يناير 2013 · 3 رد · 1,111 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

 

انا عاملت موقع باستخدام

asp.net

c#

 

وعند رفعها على  الاستضافة او الهوست

فانه لا يعمل مع  انى متاكد بالفريمورك المستخدم فى صناعة المشروع فى الهوست

انا عاوز اعرف رسالة الخطا بتيجى ازاى

او بمنى اصح ترجمة دى ايه

 

Server Error in '/' Application. Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".



<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.



<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>

hG6rVm.jpg

#2

*- يحظر استخدام اللهجة العامية

*- أو كتابة الأسئلة باللغة الإنجليزية

*- أو كتابة الكلمات الإنجليزية بالعربية

====

Do as I say, not as I do

We are Anonymous. We are Legion. We don't forgive. We don't forget

#3

السلام عليكم ..

  1. حدث Exception  في كود الصفحة , و لكن السيرفر لن يذكر لك  تفاصيل الخطأ لأسباب تتعلق بالحماية .
  2. لجعل تفاصيل الخطأ تظهر , يجب وضع الكود :
    <configuration>
        <system.web>
             <customErrors mode="Off" />
        </system.web>
    </configuration>

    في الملف web.config  الخاص بالموقع .

  3. هل يظهر الخطأ في كل الصفحات أم في صفحة محددة ؟ قم بإنشاء صفحة بسيطة فيها كود طباعة جملة بسيطة مثلا , و  اطلب الصفحة في المستعرض .
  4. http://www.codeproject.com/Articles/2345/Custom-Errors-in-ASP-NET

لا إله إلا الله ... محمد رسول الله

لو كانت مشاركتي مفيدة و تريد تشجيعي على المزيد من العطاء , فضلا قم بتقييم المشاركة

المعرًف القديم : houssam11350_11350

من مواضيعي : ArabGenCode : مولد كود و إجراءات مخزنة و واجهات لجداول سيكوال سيرفر

#4

 اخي العزيز ممكن تكتب الكونكشن سترنج حقك الذي في ملف web.config

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…