PDA

View Full Version : سوال: عدم اتصال با DataBase در Plesk



mirmohammadh
پنج شنبه 16 بهمن 1393, 10:08 صبح
با سلام خدمت دوستان گرامی

من سایتی رو طراحی کرده بودم و حال آن را بر روی هاست ویندوز آپلود کردم با آموزش های داده شده در همین سایت ... اما متاسفانه ارتباط با سرور برقرار نمی شود !
و این ارور را نمایش می دهد :

The connection string 'DefaultConnection' in the application's configuration file does not contain the required providerName attribute."


Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The connection string 'DefaultConnection' in the application's configuration file does not contain the required providerName attribute."

Source Error:





An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.




Stack Trace:






[InvalidOperationException: The connection string 'DefaultConnection' in the application's configuration file does not contain the required providerName attribute."]
System.Data.Entity.Internal.LazyInternalConnection .InitializeFromConnectionStringSetting(ConnectionS tringSettings appConfigConnection) +322
System.Data.Entity.Internal.LazyInternalConnection .TryInitializeFromAppConfig(String name, AppConfig config) +33
System.Data.Entity.Internal.LazyInternalConnection .Initialize() +128
System.Data.Entity.Internal.LazyInternalConnection .get_Connection() +13
System.Data.Entity.Internal.LazyInternalContext.ge t_Connection() +89
System.Data.Entity.Database.Exists() +47
System.Web.Providers.ModelHelper.EnsureDatabaseCre ated(DbContext db) +44
System.Web.Providers.ModelHelper.CreateMembershipC ontext(ConnectionStringSettings setting) +86
System.Web.Providers.DefaultMembershipProvider.Val idateUser(String username, String password) +99
System.Web.UI.WebControls.Login.AuthenticateUsingM embershipProvider(AuthenticateEventArgs e) +59
System.Web.UI.WebControls.Login.OnAuthenticate(Aut henticateEventArgs e) +113
System.Web.UI.WebControls.Login.AttemptLogin() +119
System.Web.UI.WebControls.Login.OnBubbleEvent(Obje ct source, EventArgs e) +75
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
System.Web.UI.WebControls.Button.OnCommand(Command EventArgs e) +114
System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +159
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724



اطلاعات داخل فایل web.config هم برای قسمت مربوط شامل :

<connectionStrings>
<add name="DefaultConnection" connectionString="Server=127.0.0.1:3306;Database=estelaa1_estelam;Us er ID=****;Password=****;" />
<add name="ConnectionString" connectionString="Provider=SQLNCLI11;Data Source=localhost;Integrated Security=SSPI;Initial Catalog=Estelaam" />

<add name="ConnectionString2" connectionString="Provider=SQLNCLI11;Data Source=localhost;Integrated Security=SSPI;Initial Catalog=Estelaam" />

</connectionStrings>
<!--

mirmohammadh
پنج شنبه 16 بهمن 1393, 16:19 عصر
خواهش میکنم یکی جواب بنده رو بده ... ( اگه کسی بلد هستش )