PDA

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



ezzatvafaei
سه شنبه 11 آذر 1393, 19:17 عصر
باسلام. من سایتم رو آپلود کردم وهمه تنظیمات روانجام دادم.اما وقتی روداخل مرورگر جستجو میکنم خطای زیر رومیده

<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
وقتی ام که ازداخل ویزوال استادیو runمیکنم خطای زیررومیده
Error 1 Could not load type 'System.Data.Entity.Design.AspNet.EntityDesignerBu ildProvider'.

بچه هایی که با entity framework کارمیکنند
connection string هام رو اینجوری تنظیم کردم

<connectionStrings>
<add name="ApplicationServices" connectionString="Data Source="xxxx";Initial Catalog=xxxx;User ID=xxxx;Password="xxxx" providerName="System.Data.SqlClient"/>
<add name="SerajModelContainer" connectionString="Data Source=xxxxx;Initial Catalog=mashhado_seraj;User ID=xxxx;Password="xxxx" providerName="System.Data.EntityClient"/>
</connectionStrings
1.این تنظیم connection stringدرسته؟چون با entity frame work دوتا کانکشن داریم
2.مشکل خطا کجاست؟آیا ازiisاست؟
بچه های حرفه ای اگه میتونید کمک کنید ممنون میشم ازراهنمایی تون

saeed410
سه شنبه 11 آذر 1393, 20:05 عصر
System.Data.Entity.Design.AspNet.EntityDesignerBu ildProvider سلام. این فاصله ایی که بین کلمات وجود داره حذف کن. کجا ازش استفاده کردی؟

ezzatvafaei
سه شنبه 11 آذر 1393, 22:31 عصر
System.Data.Entity.Design.AspNet.EntityDesignerBu ildProvider سلام. این فاصله ایی که بین کلمات وجود داره حذف کن. کجا ازش استفاده کردی؟

این خطا رومیده.اینجا کپی کردم فاصله افتاده.کل برنامه با ENTITY نوشته شده

_Memol_
چهارشنبه 12 آذر 1393, 01:35 صبح
من هم همچین مشکلی داشتم یادمه CustomErrors mode رو به on تغییر دادم درست شد

saeed410
چهارشنبه 12 آذر 1393, 14:53 عصر
سلام. بابا آخر خطا رو نگاه کن rBu ildProvider من فکر میکنم خطا از این باشه. درست رفرنس ندادی بهش.

ezzatvafaei
چهارشنبه 12 آذر 1393, 16:15 عصر
این فایل 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 هم قراردادم بازم همین خطارومیده