PDA

View Full Version : سوال: علت run time error



havayetaze66
پنج شنبه 19 اردیبهشت 1392, 11:37 صبح
با سلام
من یک سایت دارم که از sql server 2008 استفاده می کنه در حالت لوکال هیچ مشکلی در این ارتباط وجود ندارد اما بعد از آپلود سایت و تغییر connection string متاسفانه در صفحاتی که از دیتابیس استفاده می کنند خطای زمان اجرا دارم . لازمه که بیان کنم من روی هاستم دیتابیس و یوزر ایجاد کرده ام و همینطور دیتابیس لوکالم رو از طریق script و همینطور export منتقل کردم و هر دو روش رو امتحان کردم ولی ارورم رفع نشده. خواهش می کنم اگر می تونید راهنمایی کنید.
در ضمن متن خطا و فایل web.config رو می ذارم.
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>

103923

alihassanabadi
پنج شنبه 19 اردیبهشت 1392, 14:01 عصر
سلام
مد ارور رو off کن منبع خطا مشخص شه

<customErrors mode="Off"></customErrors>

آدرس وب سایت هم بذار.

havayetaze66
پنج شنبه 19 اردیبهشت 1392, 18:01 عصر
مد ارور رو اگر off هم بذارم باز هم همین خطا رو می ده

nasrin55
سه شنبه 21 خرداد 1392, 08:19 صبح
واسه منم همین مشکل پیش اومد و من دقیقا بعد از <system.web> خط <customErrors mode="Off"/> را اضافه کرده بودم. ولی وقتی بردمش یه خط پایینتر مشکل حل شد. یعنی گذاشتم بعد از <httpRuntime requestValidationMode="2.0" /> !! دلیلش چیه را نمی دونم !