PDA

View Full Version : خطا در هنگام فراخوانی سایت



MH2538
دوشنبه 03 مهر 1385, 10:43 صبح
سلام
در درجه اول بگم تمام تاپیک های مربوط به Upload کردن و مشکلات ASP.net رو خوندم و به نتیجه نرسیدم.
من یه سایت خیلی مختصر با ASP.net 2 درست کردم و اون رو Publish کردم اما وقتی آدرسش رو می زنم این error رو می ده . چه کنم ؟
(ورژن ASP.net سایت من 2 است)


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>

حتی من Custom Errors را هم Set کردم (یک بار به On و باردیگر Off) اما نتیجه تغییری نکرد

yavari
دوشنبه 03 مهر 1385, 16:29 عصر
سلام

اینو ببین !!! ...
http://barnamenevis.org/forum/showthread.php?t=52299

MH2538
سه شنبه 04 مهر 1385, 10:09 صبح
سلام
عرض کرده بودم ، من تمام تاپیک های در ارتباط با خطاهای Upload سایت رو خوندم.
نمونه بالا رو هم مطالعه مرده بودم و مشکل من حل نشده بود.
چیزی که برای من جای تعجب داره اینه که حتی وقتی CustomErrors رو تغییر می دم باز هم صورت Error تغییری نمی کنه!

amir_civil
یک شنبه 24 دی 1385, 18:05 عصر
با سلام
منم این مشکل رو دارم پست های قبلی هم کمکی نکرد میشه بیشتر توضیح بدید
ممنون

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>

rtech
یک شنبه 24 دی 1385, 20:22 عصر
دوست عزیز برای این که خطا رو به صورت کامل ببینید Customerror در فایل web.config برابر off کنید و سپس دوباره به صفحه مورد نظر رجوع کنید البته این تگ را در محل مناسب قرار دهید

rtech
دوشنبه 25 دی 1385, 09:58 صبح
میشه صفحه ای که ساختی رو آپلود کنید

amir_civil
دوشنبه 25 دی 1385, 12:05 عصر
با سلام
این یه برنامه ساد ه هستش
و اینم ارور که میده:

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>


من تمام برنامه رو در wwwroot کپی کردم

rtech
سه شنبه 26 دی 1385, 20:50 عصر
من فایل را دریافت کردم و پس از بررسی نتیجه را به عرض شما خواهم رساند

samaNet
سه شنبه 02 مرداد 1386, 13:45 عصر
من هم دقیقا با همین مشکل برخورد کردم . ایا امکانش هست که یک webconfig
را که به صورت صحیحی عمل میکند را نمایش دهید.
چون اینجور که به نظر میرسد customtag باید در مکان مناسب ان قرار بگیرد.

MH2538
سه شنبه 02 مرداد 1386, 13:51 عصر
دوست من مشکل من خیلی وقت پیش حل شد.
ولی چون یک نمونه کامل و سالم WEBCONFIG رو خواسته بودی برات گذاشتم
ضمناً لازمه بگم که دیتابیس من اوراکل است.


<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings>
<add name="ConnectionString1" connectionString="Data Source=XXXX;User ID=YYYYY;password=ZZZ; Unicode=True" providerName="System.Data.OracleClient"/>
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="false">
<assemblies>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<httpModules>
<add name="WebChartImageStream" type="blong.WebControls.WebChartImageStream, blong"/>
</httpModules>
</system.web>
</configuration>

samaNet
پنج شنبه 04 مرداد 1386, 09:50 صبح
ممنون از جوابتون .
من از این کدی که فرموده بودید استفاده کردم اما متاسفانه جواب نگرفتم.
در ضمن چرا <customError> را در comment گذاشته اید.

این کدی است که من استفاده نموده ام. و البته جواب نگرفته ام .

<?xmlversion="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilationdebug="true"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticationmode="Forms"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
-->
<customErrorsmode="RemoteOnly"defaultRedirect="GenericErrorPage.htm">
<errorstatusCode="403"redirect="NoAccess.htm" />
<errorstatusCode="404"redirect="FileNotFound.htm" />
</customErrors>


</system.web>
</configuration>

MH2538
پنج شنبه 04 مرداد 1386, 11:20 صبح
سلام
میشه دقیقاً پیغام خطات رو بفرستی

samaNet
پنج شنبه 04 مرداد 1386, 11: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>

samaNet
یک شنبه 14 مرداد 1386, 13:58 عصر
سلام دوستان من مشکل را حل کردم.
گفتم اینجا بنویسم شاید مورد استفاده دیگران واقع شود.
مشکل از انجا بود که باید در control panel
version را به version 2 تغییر میدادیم