PDA

View Full Version : منظور از این اشکال چیست ؟



saeid taheri
چهارشنبه 08 شهریور 1385, 00:49 صبح
زمانی که یک فایل ASPX را در اینترنت می خوانم این پیغام را می دهد


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>




اگر لطف کنید زود جواب دهید ممنون می شوم

اَرژنگ
چهارشنبه 08 شهریور 1385, 03:58 صبح
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".


اگر ارور را میخوندید زودتر جواب میگرفتید.
این خط را

<customErrors mode="Off"/>

زیره این خط


<system.web>

اضافه کنید بعد میبینید اروره واقعی چیه.



<!-- Web.Config Configuration File -->

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

titbasoft
چهارشنبه 08 شهریور 1385, 11:17 صبح
این رو هم من اضافه می کنم که، ASP.Net برای جلوگیری از بوجود اومدن ریسک های امنیتی روی وب، به طور پیش فرض جلوی نمایش متن Exception ها رو روی کلاینت های Remote میگیره. پس شما با اعمال تغییراتی که در پست بالا اشاره شد، می تونید اجازه دیده شدن متن خطا رو به کاربران Remote هم بدید

saeid taheri
چهارشنبه 08 شهریور 1385, 18:19 عصر
دست شما درد نکنه که جواب دادید . ممنون