• 06-02-2016, 00:28:02
    #1
    Üyeliği durduruldu
    Server Error in '/' Application.

    An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

    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.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

    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:


    [BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)]
    System.Data.SQLite.UnsafeNativeMethods.sqlite3_con fig_none(SQLiteConfigOpsEnum op) +0
    System.Data.SQLite.SQLite3.StaticIsInitialized() +123
    System.Data.SQLite.SQLiteLog.Initialize() +32
    System.Data.SQLite.SQLiteFactory..cctor() +119

    [TypeInitializationException: The type initializer for 'System.Data.SQLite.SQLiteFactory' threw an exception.]

    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
    System.RuntimeFieldHandle.GetValue(RtFieldInfo field, Object instance, RuntimeType fieldType, RuntimeType declaringType, Boolean& domainInitialized) +0
    System.Reflection.RtFieldInfo.UnsafeGetValue(Objec t obj) +158
    System.Reflection.RtFieldInfo.GetValue(Object obj) +29
    System.Data.Common.DbProviderFactories.GetFactory( DataRow providerRow) +269
    System.Data.EntityClient.EntityConnection.GetFacto ry(String providerString) +24
    System.Data.EntityClient.EntityConnection.ChangeCo nnectionString(String newConnectionString) +552
    System.Data.Entity.Internal.LazyInternalConnection .InitializeFromConnectionStringSetting(ConnectionS tringSettings appConfigConnection) +110
    System.Data.Entity.Internal.LazyInternalConnection .TryInitializeFromAppConfig(String name, AppConfig config) +39
    System.Data.Entity.Internal.LazyInternalConnection .Initialize() +160
    System.Data.Entity.Internal.LazyInternalConnection .CreateObjectContextFromConnectionModel() +16
    System.Data.Entity.Internal.LazyInternalContext.In itializeContext() +364
    System.Data.Entity.Internal.InternalContext.GetEnt itySetAndBaseTypeForType(Type entityType) +25
    System.Data.Entity.Internal.Linq.InternalSet`1.Ini tialize() +76
    System.Data.Entity.Internal.Linq.InternalSet`1.get _InternalContext() +21
    System.Data.Entity.Infrastructure.DbQuery`1.System .Linq.IQueryable.get_Provider() +57
    System.Linq.Queryable.FirstOrDefault(IQueryable`1 source, Expression`1 predicate) +61
    TevhidDersleri._default.Page_Load(Object sender, EventArgs e) +800
    System.Web.UI.Control.OnLoad(EventArgs e) +109
    System.Web.UI.Control.LoadRecursive() +68
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4498

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1055.0
  • 06-02-2016, 16:34:40
    #2
    selam,

    projeni 32 bit (x86) olarak ayarlayıp dener misin?

    Project -> Properties -> Build tab ->Platform Target = x86
  • 06-02-2016, 22:54:59
    #3
    Üyeliği durduruldu
    http://stackoverflow.com/questions/2...ven-when-the-p

    Yabancı forumlarda araştırdım ve sorunun kaynağı çok basitmiş buradan çözdüm.