سؤال

وأنا على الحصول على الخطأ التالية بينما كنت نشر الموقع ..

Server Error in '/domain/website' 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>

وحاولت تغيير customErrors وضع = "إيقاف" ولكن لا الفرح يعيد ..same الخطأ ...

وعلاوة على ذلك، GenericErrorPage.htm مفقود وهذا تسبب في حدوث الخطأ؟

وأي يد العون؟

هل كانت مفيدة؟

المحلول

وهذا هو ربما بسبب وجود خطأ في الملف web.config. قد تتمكن من محاولة استبدال الملف web.config الحالي مع واحد فقط يحتوي هذا ونرى ما سيحدث:

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

نصائح أخرى

هل أنت باستخدام الملف web.config المزدوج في موقع الويب الخاص بك. على سبيل المثال.

وإذا كنت تستخدم الملف web.config واحد في / مجال وآخر في / مجال / الموقع. تحتاج إلى تحويل / موقع كتطبيق.

ولكن، أود أن أقترح عليك تسجيل الدخول إلى الخادم واستعراض الصفحة، سوف تكون قادرا على رؤية القضية الحقيقية. إذا كنت غير متأكد من كيفية إصلاحه. بعد ذلك مرة واحدة. ونحن قد تكون قادرة على مساعدتك.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top