نمایش نتایج 1 تا 2 از 2

نام تاپیک: کمک در رفع خطای System.MissingMethodException

  1. #1

    Question کمک در رفع خطای System.MissingMethodException

    با سلام خدمت همه

    من برنامه ای با VS2012 نوشتم و برای دسترسی به پایگاه داده هم از Entity Framework 5 استفاده کردم.حالا وقتی میخام روی یه سیستم دیگه ای برناممو اجرا کنم خطای زیر را میده فکر کنم به entity framework گیر میده اگه نظرم درسته چه کار کنم تمام dll های entityframe work هم قرار دادم ام نشد.در frame load هر فرم هم یه query قرار دادم که برای autocomplete استفاده کنم :

    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.MissingMethodException: Method not found: 'Void System.Data.Objects.ObjectContextOptions.set_UseCo nsistentNullReferenceBehavior(Boolean)'.
    at System.Data.Entity.Internal.LazyInternalContext.In itializeContext()
    at System.Data.Entity.Internal.InternalContext.GetEnt itySetAndBaseTypeForType(Type entityType)
    at System.Data.Entity.Internal.Linq.InternalSet`1.Ini tialize()
    at System.Data.Entity.Internal.Linq.InternalSet`1.get _InternalContext()
    at System.Data.Entity.Infrastructure.DbQuery`1.System .Linq.IQueryable.get_Provider()
    at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)
    at Saja.Frm_Main.Frm_Main_Load(Object sender, EventArgs e) in c:\Users\Program\Desktop\Saja\Saja\Frm_Main.cs:lin e 165
    at System.Windows.Forms.Form.OnLoad(EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
    at System.Windows.Forms.Form.WmShowWindow(Message& m)
    at System.Windows.Forms.Form.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.225 (RTMGDR.030319-2200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    Saja
    Assembly Version: 1.0.0.0
    Win32 Version: 2014.0.0.0
    CodeBase: file:///I:/Saja/Saja/bin/Debug/Saja.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.225 built by: RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    EntityFramework
    Assembly Version: 5.0.0.0
    Win32 Version: 5.0.20627.0
    CodeBase: file:///I:/Saja/Saja/bin/Debug/EntityFramework.DLL
    ----------------------------------------
    System.Data.Entity
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Data.Entity/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Entity.dll
    ----------------------------------------
    System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.225 built by: RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.225 built by: RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    Anonymously Hosted DynamicMethods Assembly
    Assembly Version: 0.0.0.0
    Win32 Version: 4.0.30319.225 (RTMGDR.030319-2200)
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
    ----------------------------------------
    DevExpress.XtraBars.v12.2
    Assembly Version: 12.2.4.0
    Win32 Version: 12.2.4.0
    CodeBase: file:///I:/Saja/Saja/bin/Debug/DevExpress.XtraBars.v12.2.DLL
    ----------------------------------------
    DevExpress.Data.v12.2
    Assembly Version: 12.2.4.0
    Win32 Version: 12.2.4.0
    CodeBase: file:///I:/Saja/Saja/bin/Debug/DevExpress.Data.v12.2.DLL
    ----------------------------------------
    DevExpress.Utils.v12.2
    Assembly Version: 12.2.4.0
    Win32 Version: 12.2.4.0
    CodeBase: file:///I:/Saja/Saja/bin/Debug/DevExpress.Utils.v12.2.DLL
    ----------------------------------------
    DevExpress.XtraEditors.v12.2
    Assembly Version: 12.2.4.0
    Win32 Version: 12.2.4.0
    CodeBase: file:///I:/Saja/Saja/bin/Debug/DevExpress.XtraEditors.v12.2.DLL
    ----------------------------------------
    System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.




    تمام dll های مورد نیاز هم همراه برنامم هست اما تا وقتی که VS 2012 را روی سیستم مورد نظر نصب نکنم خطای بالا را میده. به نظر شما چه کار کنم که روی ویندوز xp و 7 کنه و خطا رفع بشه؟

  2. #2

    نقل قول: کمک در رفع خطای System.MissingMethodException

    سلام
    کسی این سوالا بلد نیست جواب بده؟

تاپیک های مشابه

  1. کمک برای رفع خطای سایت
    نوشته شده توسط morteza_mokhtari در بخش ASP.NET Web Forms
    پاسخ: 0
    آخرین پست: چهارشنبه 02 اسفند 1391, 19:31 عصر
  2. کمک برای رفع خطای سایت
    نوشته شده توسط morteza_mokhtari در بخش ASP.NET Web Forms
    پاسخ: 0
    آخرین پست: یک شنبه 29 بهمن 1391, 22:26 عصر
  3. سوال: خالی کردن stack جهت رفع خطای (System.StackOverflowException)
    نوشته شده توسط FVVSBN در بخش C#‎‎
    پاسخ: 7
    آخرین پست: پنج شنبه 15 مهر 1389, 19:12 عصر
  4. سوال: درخواست کمک برای رفع خطای لاگین کردن به دیتابیس
    نوشته شده توسط hamed2661 در بخش ASP.NET Web Forms
    پاسخ: 13
    آخرین پست: شنبه 22 اسفند 1388, 02:27 صبح
  5. سوال: کمک در رفع خطا System.IndexOutOfRangeException: Index was outside the bounds of the array
    نوشته شده توسط ghafarifar در بخش VB.NET
    پاسخ: 3
    آخرین پست: پنج شنبه 21 آبان 1388, 17:03 عصر

قوانین ایجاد تاپیک در تالار

  • شما نمی توانید تاپیک جدید ایجاد کنید
  • شما نمی توانید به تاپیک ها پاسخ دهید
  • شما نمی توانید ضمیمه ارسال کنید
  • شما نمی توانید پاسخ هایتان را ویرایش کنید
  •