PDA

View Full Version : اشكال در web.config



mona_z
شنبه 28 اردیبهشت 1387, 07:50 صبح
با سلام خدمت دوستان
من برنامه اي نوشتم كه نياز به خواندن و نوشتن تصوير در database دارد اينكار را درست انجام ميدهد ولي الآن كه سايت upload كردم براي خواندن ونوشتن عكس خطاي زير مي گيرد مي خواستم ببينم چكار بايد انجام بدهم.
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>

m.hamidreza
شنبه 28 اردیبهشت 1387, 08:00 صبح
همونطور که تو متن خطا هم نوشته شما اول باید مقدار این تگ رو :

<customErrors mode="Off"/>
رو به Off تغییر بدی تا دقیقا مشخص شه از کجای کدت داره Error میگیره ...

mona_z
شنبه 28 اردیبهشت 1387, 08:03 صبح
اينكار را انجام دادم ولي خطاي آن تغييري نكرد

m.hamidreza
شنبه 28 اردیبهشت 1387, 08:12 صبح
به حروف کوچیک و بزرگ حساسه !
Off رو همینجوری نوشتی ؟ یا off ؟

mona_z
شنبه 28 اردیبهشت 1387, 09:34 صبح
off اينجوري نوشتم ولي الآن مثل شما نوشتم خطا را نشان نداد و خبر را درج كرد انشا ا... كه نشان هم بده از كمكتون ممنونم

mona_z
شنبه 28 اردیبهشت 1387, 09:40 صبح
ببخشيد ديگه درج هم نمي كنه ونشان هم نداد چكار كنم مربوط به مسير عكس هستش يا نه؟

m.hamidreza
شنبه 28 اردیبهشت 1387, 09:49 صبح
حالت های مختلف رو امتحان کن تا به متن خطا برسی چون تا وقتی ندونی کجای کد مشکل داره نمیتونی درستش کنی!