PDA

View Full Version : خطا در اپلود سايت



sajjad1365
چهارشنبه 24 شهریور 1389, 17:18 عصر
سلام.من سايتم رو تو كنترل پنل plesk اپلود كردم ولي خطا ميده:

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
ميدونم ميگه mode رو تو web.conf اف كن تا خطا رو نشون بده .
ولي من ايكار رو كردم ولي باز اين خطا رو ميده
در ضمن من عين همين سايت رو تو somee اپلود كردم وبه درستي كار كرد.
اين هم فايل config:

hamhik
چهارشنبه 24 شهریور 1389, 17:24 عصر
custom error رو از حالت کامنت درش بیار.

sajjad1365
چهارشنبه 24 شهریور 1389, 19:14 عصر
سلام.ممنون ازتوجه شما.
ميشه يه كم بيشتر توضيح بدين.
يعني چي از حالت كامنت...

hamhik
چهارشنبه 24 شهریور 1389, 20:28 عصر
برو تو فایل web.config تگ customerror رو از حالت کامنت در بیار یعنی اونو از بین این علامتا در بیار
<--
<!-- بیا بزار بیرون این علامتا

sajjad1365
چهارشنبه 24 شهریور 1389, 22:57 عصر
سلام. اين config هم مساله اي شده برا من.
اون كار رو كردم باز هم همون خطاروميده.
ببينيد حالا درست شده؟:
راستي چرا تو سايت somee اين خطا هارو نداشت؟

sajjad1365
پنج شنبه 25 شهریور 1389, 10:53 صبح
سلام. لطفا از دوستان كسي كمك كنه

hamhik
پنج شنبه 25 شهریور 1389, 11:33 صبح
الان درست شد
فایل رو ببین

sajjad1365
جمعه 26 شهریور 1389, 23:12 عصر
سلام. من نميدونم ديگه با اين فايل config چكار كنم
ببينيد اين درسته:

<?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 xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings/>
<connectionStrings>
<add name="bookConnectionString1" connectionString="Data Source=.;Initial Catalog=book;Integrated Security=True"
providerName="System.Data.SqlClient" />
<add name="forushgahConnectionString1" connectionString="Data Source=.;Initial Catalog=forushgah;Integrated Security=True"
providerName="System.Data.SqlClient" />
</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="true"/>
<!--
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="Off"/>
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>
</system.web>

</configuration>


ممنون

sajjad1365
شنبه 27 شهریور 1389, 10:33 صبح
سلام. لطفا يكي از دوستان بگه اين فايل من درسته يا نه؟
اين فايل config منو سردرگم كرده ...
ممنون

sajjad1365
شنبه 27 شهریور 1389, 19:18 عصر
سلام.تورو خدا يكي كمك كنه ديگه
هشتادو اندي بازديد وبي جواب...
حداقل بگين متن بالايي درسته يا نه؟؟