PDA

View Full Version : مشکا در اضافه کردن migrations به ef



saeed31641
شنبه 26 اسفند 1391, 21:55 عصر
سلام زمانی که میخام enable-migrations در entity frame اضافه کنم این خطا رو میده مشکل از چی واقعا دیگه نمیدونم چیکار کنم
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleRe turnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(MessageData& msgData, Int32 type)
at EnvDTE.Properties.Item(Object index)
at System.Data.Entity.Migrations.Extensions.ProjectEx tensions.GetPropertyValue[T](Project project, String propertyName)
at System.Data.Entity.Migrations.MigrationsDomainComm and.GetFacade(String configurationTypeName)
at System.Data.Entity.Migrations.EnableMigrationsComm and.FindContextToEnable(String contextTypeName)
at System.Data.Entity.Migrations.EnableMigrationsComm and.<>c__DisplayClass2.<.ctor>b__0()
at System.Data.Entity.Migrations.MigrationsDomainComm and.Execute(Action command)
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
PM>

saeed31641
دوشنبه 28 اسفند 1391, 08:28 صبح
تبریک میگم به دوستان بابت این پاسخ.اگه دوستان لطف میکردن خطای بالا رو در اینترنت سرچ میزدن هزارتا پاسخ میتونستن به من بدن.البته من خود زیاد سرچ زدم متاسفانه نتیجه نداشت.تا اینکه تصمیم گرفتم Migrations
رو میحط appliction windows کار کنم که با کمال تعجب مشاهد کردم درست کار میکنه.حالا این سوال برام پیش امده چرا درasp.net درست کار نمیکنه خطای بالا رو میده ولی در appliction درست کار میکنه .