Archive

Posts Tagged ‘c#’

Elmah + System.Data.SQLite, Version=1.0.61.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139′ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0×80131040)

May 22nd, 2010 ayah No comments

if your having this message, just add below code in your web.config

<dependentAssembly>
<assemblyIdentity name=”System.Data.SQLite” publicKeyToken=”db937bc2d44ff139″/>
<bindingRedirect oldVersion=”1.0.61.0″ newVersion=”1.0.66.0″/>
</dependentAssembly>

It tells you to redirect all of your SQLite DLL version 1.0.61.0 into somethin newer,for this example 1.0.66.0

For further info, check this

1.DLL redirection in web.config
2.Issue regarding elmah

Categories: C#, Uncategorized, asp.net Tags: ,

Debug in Visual Studio

May 13th, 2009 ayah No comments

Ever wonder how to detect whether apps run at debug or release mode.

Here is the code

  1: #if DEBUG
  2: Console.WriteLine("Hi, I'm in Debug mode");
  3: #endif
Categories: Programming Tags:

Debugging Lambdas

March 21st, 2009 ayah No comments

Susah juga ngedebug untuk method kali ini, karena secara default, Visual Studio 2008 / 2008 SP 1 belum bisa ngedebug Lambda expression di window watch. Kalau kita coba masukan expression tersebut ke window watch, nanti ada tulisan

Expression cannot contain lambda expression

Menyebalkan banget ya kalau seperti ini, bisa menghambat kecepatan untuk debug bila ada masalah.
Tapi, hal ini bisa kita atasi dengan cara menginstall sebuah plugins. Cara installnya juga gampang, copy ke

…\Documents\Visual Studio 2008\Visualizers

Kalau pake windows XP copy ke

…\My Documents\Visual Studio 2008\Visualizers

Kalau binun silahkan cek lokasinya ke Tools | Options | Projects and Solutions | General

Hasil yang diharapkan adalah seperti ini
Preview 1
Preview 1
Preview 2
Preview 2
Preview 3
Preview 3

Referensi
1. Ling Farm
2. Expression Tree basics