• 06-02-2016, 00:28:02
    #1
    1/2
    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
  • Sponsor Reklam
  • 06-02-2016, 16:34:40
    #2
    1/2
    selam,

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

    Project -> Properties -> Build tab ->Platform Target = x86
    Lütfen özel mesaj atmak yerine sorularınızı forum üzerinden sorun.
  • 06-02-2016, 22:54:59
    #3
    1/2
    http://stackoverflow.com/questions/2...ven-when-the-p

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319