hdv212
یک شنبه 31 شهریور 1387, 13:53 عصر
سلام و خسته نباشد
سایتی رو Publish کردم و روی هاردم ذخیره کردم (به صورت PreCompiled)
سپس با برنامه های Ftp Manager (مثل Leap Ftp) سایت رو آپلود کردم، سایت بدون مشکل اجرا میشه منتها یکی دوتا Page اش رو زمانی که روش کلیک میکنم، خطای زیر رو میده :
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>
وقتی در ویژوال استودیو run میکنم، درست نشون میده، حتی یک Virtual Directory هم برای نسخه ی Publish شده ی سایت (PreCompiled) ساختم و از طریق IIS اجراش کردم، دیدم درست اجرا میشه، فقط روی وب مشکل داره.
یکبار دیگه اون Dlll مربوط به اون صفحه رو به شاخه ی Bin در اینترنت کپی کردم ولی مشکلم حل نشد، میشه بگید مشکلم کجاست ؟
اینم بگم که فقط 2 تا صفحه ام این مشکل رو داره، بقیه درست کار میکنن، نکته ی دیگه اینکه نمیدونم این کد کمکی میکنه یا نه :
<CustomErrors Mode="Off">
چون سایت درست کار میکنه، فقط 2 تا صفحه اش خطا میده.
مرسی
سایتی رو Publish کردم و روی هاردم ذخیره کردم (به صورت PreCompiled)
سپس با برنامه های Ftp Manager (مثل Leap Ftp) سایت رو آپلود کردم، سایت بدون مشکل اجرا میشه منتها یکی دوتا Page اش رو زمانی که روش کلیک میکنم، خطای زیر رو میده :
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>
وقتی در ویژوال استودیو run میکنم، درست نشون میده، حتی یک Virtual Directory هم برای نسخه ی Publish شده ی سایت (PreCompiled) ساختم و از طریق IIS اجراش کردم، دیدم درست اجرا میشه، فقط روی وب مشکل داره.
یکبار دیگه اون Dlll مربوط به اون صفحه رو به شاخه ی Bin در اینترنت کپی کردم ولی مشکلم حل نشد، میشه بگید مشکلم کجاست ؟
اینم بگم که فقط 2 تا صفحه ام این مشکل رو داره، بقیه درست کار میکنن، نکته ی دیگه اینکه نمیدونم این کد کمکی میکنه یا نه :
<CustomErrors Mode="Off">
چون سایت درست کار میکنه، فقط 2 تا صفحه اش خطا میده.
مرسی