PDA

View Full Version : سوال: مفهوم این error



silver_Rain
یک شنبه 29 فروردین 1389, 19:30 عصر
سلام خدمت شما عزیزان

من سایتی طراحی کردم و زمان فراخوانی سایت با این error روبه رو شدم . میخواستم بدونم این error از کنترل هاست هستش یا از طراحی وب .


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>

raziee
یک شنبه 29 فروردین 1389, 22:45 عصر
مفهومش اینه که شما اررووری رو در زمان اجرا دارید. که به خاطر اینکه تعریف شده در هنگام بروز خطا به صفحه ای با نام mycustompage.htm بره که یا این صفحه اصلا وجود نداره یا خودش دارای خطا هست.

meysampaknahad
یک شنبه 29 فروردین 1389, 22:46 عصر
سلام
این error کجا اتفاق میفته؟ روی Local یا روی Host؟
اگه رویه هاست باشه من قبلاً به همچین چیزی برخورد کردم. و در مورد من مشکل اینجا بود که صفحات اصلی رو مستقیماً داخل ریشه آپلود نکرده بودم
موفق باشید

ehsan2007
یک شنبه 29 فروردین 1389, 22:58 عصر
توی فایل وب کانفینگ برو و این

<customErrors mode="Off"/>

فعالش کن (شاید باشه ولی بین خطهای توضیحات وجود داشته باشه ) بعد ارور بزارش اینجا شاید تونستیم حلش کنیم

silver_Rain
یک شنبه 29 فروردین 1389, 23:14 عصر
سلام خدمت همه لطف کنید برید به
http://barnamenevis.org/forum/showthread.php?t=215489