PDA

View Full Version : سوال: مشکل درهاست



ezzatvafaei
چهارشنبه 12 آذر 1393, 16:19 عصر
این فایل web.config منه

<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
<add name="ApplicationServices" connectionString="Data Source=xxxx\SQL2008;Initial Catalog=mashhado_seraj;User ID=xxxx;Password=xxxx" providerName="System.Data.SqlClient"/>

<add name="SerajModelContainer" connectionString="Data Source=xxxx\sql2008;Initial Catalog=mashhado_seraj;User ID=xxxx;Password=xxxxx" providerName="System.Data.EntityClient"/>

</connectionStrings>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0"/>
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
</authentication>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
</providers>
</membership>
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
</providers>
</profile>
<roleManager enabled="false">
<providers>
<clear/>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/>
</providers>
</roleManager>
</system.web>


<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>

خطای زیر رومیده
Keyword not supported: 'data source'.


[ArgumentException: Keyword not supported: 'data source'.]
System.Data.EntityClient.DbConnectionOptions.Parse Internal(Hashtable parsetable, String connectionString, Hashtable synonyms) +7889148
System.Data.EntityClient.DbConnectionOptions..ctor (String connectionString, Hashtable synonyms) +82
System.Data.EntityClient.EntityConnection.ChangeCo nnectionString(String newConnectionString) +8489924
System.Data.EntityClient.EntityConnection..ctor(St ring connectionString) +43
System.Data.Objects.ObjectContext.CreateEntityConn ection(String connectionString) +85
System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName) +16
Seraj.Model.SerajModelContainer..ctor() in D:\Site\OrduSite\Seraj\Seraj\Model\SerajModel.Desi gner.cs:34
Seraj.Global.Application_Start(Object sender, EventArgs e) in D:\Site\OrduSite\Seraj\Seraj\Global.asax.cs:16
الان مشکل کجاست
<customErrors mode="Off"/> رو on هم قراردادم بازم همین خطارومیده