PDA

View Full Version : نمایش ندادن صفحات بعد از upload



oranoos
پنج شنبه 26 خرداد 1384, 11:10 صبح
سلام
همانطور که در عنوان بیان شد صفحات من بعد از upload نمایش داده نمیشه و erroreهای مختلفی از جمله can not page ویا web config میده ؛ چطور میتونم این مشکل رو رفع کنم؟

titbasoft
پنج شنبه 26 خرداد 1384, 11:46 صبح
یه علت میتونه این باشه که دایرکتوری مقصد اجازه write رو به شما نده و یک exception فعال بشه و شما با یکی از حالت هایی که گفتید مواجه بشید

mkh1365
پنج شنبه 26 خرداد 1384, 12:15 عصر
اگر cannot page می ده احتمال داره مال این باشه که فایلت خیلی بزرگه مثلا 3 یا 4 مگابایت . اگر خطای web.config می ده خطا رو دقیقا بفرس تا ببینم.

oranoos
شنبه 28 خرداد 1384, 09:53 صبح
این هم خطایی که میده
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>

H_Ghaffarian
یک شنبه 29 خرداد 1384, 16:14 عصر
سلام
اول اینکه این error بر روی سرور host که در اون جهت امنیت در صورت وقوع خطا, فقط یک پیغام سر بسته و کلی ارسال می شه . شما باید صفحات سایت رو به یک سرور محلی منتقل کنید و همون شرایط برای ایجاد خطا رو دوباره تکرار کنید تا خطا بطور واضح نمایش داده بشه.
در مورد اونچه که در بالا هست باید گفت شما باید یک سری به وب کانفیگ سایتتون بزنید و ببینید حداکثر حجم فایل Upload شده در اونجا چقدر تعیین شده. مقدار پیش فرض تنها 4 مگابایته که باید اون رو به 20 مگابایت برسونید(توصیه مایکروسافت):
برای این منظور در تگ httpRuntime در قسمت حداکثر طول درخواست مقدار پیش فرض رو بصورت زیر تغییر بدید:

maxRequestLength="32768"
در ضمن چک بکنید ببینید که آیا فولدر مقصد فایل دارای خاصیت write هست یا نه.
اگه خطای فوق با این کارها رفع نشد و بر روی سرور محلی هم مشکلی بوجود نیامد و وب سایت درست کار کرد, بهتره با هاستتون تماس بگیرید. :sunglass: