ورود

View Full Version : سوال: مشکل در Web.config



maxpayn2
دوشنبه 11 شهریور 1387, 10:13 صبح
سلام
با این که توی Web.config سایتم <customErrors mode="Off"/> رو دارم بازم خطای معروف زیر رو میده :






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>

milade
دوشنبه 11 شهریور 1387, 10:37 صبح
خوب این که خودش گفته : remoteonly

maxpayn2
دوشنبه 11 شهریور 1387, 10:43 صبح
نه داداش ، گفته الان RemoteOnly هست در صورتی که نیست

milade
دوشنبه 11 شهریور 1387, 10:48 صبح
خوب شما remoteonly اش کن داداش!!!!
به هر حال یه اشتباه(کوچک و بزرگ بودن حروف بکیر تا ...)داره که این ارور رو می ده
بای

maxpayn2
دوشنبه 11 شهریور 1387, 11:01 صبح
RemotOnly اش کنم که چی بشه ؟

milade
دوشنبه 11 شهریور 1387, 11:09 صبح
RemotOnly اش کنم که چی بشه ؟
عذر خواهی می کنم که اودم به سوالتون جواب دادم(چون قراره یه دست کتک بخورم انگار)
ولی در کل remoteonly فقط برای کاربران محلیه(به من چه استفاده نکن)
بای

maxpayn2
دوشنبه 11 شهریور 1387, 12:21 عصر
خیلی زود رنجی داداش (...) ، به قول خودت RemotOnly فقط برای کاربران محلیه ، پس به درد من که پای سرور نیستم نمیخوره

el_abdollahi
دوشنبه 11 شهریور 1387, 12:42 عصر
من یه دفعه که سایت رو به صورت Virtual directory نساخته بودم این خطا رو گرفتم.

maxpayn2
دوشنبه 11 شهریور 1387, 13:24 عصر
Web.config رو دوباره آپلود کردم درست شد