مشاهده نسخه کامل
: کمک فوری-انتقال سایت asp از لوکال به هاست
hamed zare
07-08-2013, 04:55
سلام دوستان.من یک سایت با visual studio طراحی کردم .ولی وقتی سایتو آپلود کردم همون ارور معروف که مربوط به web.config رو میده.من تمام آموزش های تو اینترنتو نگاه کردم و انجام دادم ولی اصلا درست نمیشه.تو رو خدا یه نفر بیاد یه آموزش کامل از موقع آپلود تا بالا اومدن سایت رو بگه.من کاملا مبتدی هستم اگه ممکنه از اصلاحات پیچیده استفاده نکنید.ممنووون:n12:
hamed zare
07-08-2013, 05:00
اروری که میده اینه:
<!-- 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>
hamed zare
07-08-2013, 05:01
یکیی جواب بدهههههههههههههههههه!!!!!!!!! :n30::n30::n30:
hamed zare
07-08-2013, 05:44
اصلا به خودتون زحمت ندین.خودم جوابمو پیدا کردم.اونایی که این مشکلو پیدا کردن دقیق گوش بدن.اگرم مشکلتون حل شد.نامردین اگه تشکر نفرستید :n18:
مرحله 1-برید تو دیتابیس یک دیتا بیس برای خودتون درست کنید.
مرحله2-همون پایین دیتا بیس یه یوزرم برای خودتون درست کنید. فرض میکنیم دیتابیس=amlaksha_1 و یوزرتون = amlaksha_538
مرحله3-برید تو فایل منجر و تو روت سایت فایل web.config رو باز کنید.متن زیر را با دقت کپی کنید و در web.config پیست کنید.فقط به جای amkalsha_1 , amlaksha_538 نام دیتابیس و یوزر خودتونو وارد کنید.پسوردم همین طور
مرحله 4 بعده این کداست
__________________________________________________ _______________________________________________
<?xml version="1.0" encoding="UTF-8"?>
<!--
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="portal_spcoConnectionString" connectionString="Data Source=windows;Initial Catalog=amlaksha_1;User ID=538_amlaksha;Password=??????" providerName="System.Data.SqlClient" />
<add name="amlakConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirector y|\amlak.mdf;Integrated Security=True;User Instance=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.
Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /></assemblies></compilation>
<pages>
<namespaces>
<clear />
<add namespace="System" />
<add namespace="System.Collections" />
<add namespace="System.Collections.Specialized" />
<add namespace="System.Configuration" />
<add namespace="System.Text" />
<add namespace="System.Text.RegularExpressions" />
<add namespace="System.Web" />
<add namespace="System.Web.Caching" />
<add namespace="System.Web.SessionState" />
<add namespace="System.Web.Security" />
<add namespace="System.Web.Profile" />
<add namespace="System.Web.UI" />
<add namespace="System.Web.UI.WebControls" />
<add namespace="System.Web.UI.WebControls.WebParts" />
<add namespace="System.Web.UI.HtmlControls" />
</namespaces>
</pages>
<!--
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" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
__________________________________________________ __________________________________________________ ___________________
مرحله4 و مهم ترین مرحله!!!- بقل فایل web-config یه قفل میبینید؟ روش کلیک کنید و تمام تیکاشو بزنید و ok کنید.
مرحله 5-پایین اونجایی که رمزو پسو وارد کردین یک خط هستش که واسه پایگاه دادتونه.اون خطو حذف و با همون خطی که تو web.config خودتونه جایگزین کنید.منظورم خط پایینه:
<add connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspn etdb.mdf;User Instance=true" name="LocalSqlServer" providerName="System.Data.SqlClient" />
مرحله6-(اختیاری) : صفحات NoAccess.htm FileNotFound.htm هم به صلیغه خودتون بزارید که هنگام ارور دادن سایت کاربر به این صفحات هدایت بشه.
سایت شما حاضره :n02: .تشکر فراموش نشههه!!!!!
vBulletin , Copyright ©2000-2025, Jelsoft Enterprises Ltd.