اصلا به خودتون زحمت ندین.خودم جوابمو پیدا کردم.اونایی که این مشکلو پیدا کردن دقیق گوش بدن.اگرم مشکلتون حل شد.نامردین اگه تشکر نفرستید
مرحله 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 هم به صلیغه خودتون بزارید که هنگام ارور دادن سایت کاربر به این صفحات هدایت بشه.
سایت شما حاضره .تشکر فراموش نشههه!!!!!