The easiest way to diagnose these issues is to run fuslogvw.exe from
the .Net SDK command line and choose to log bind failures. Fusion,
the .Net loader, gives a wealth of info about these kind of failures.
After you setup the logging, run the test to failure again; the log
should then point to the issue.

Sent from my Windows Phone From: Prescott Nasser
Sent: Saturday, June 11, 2011 2:33 PM
To: lucene-net-dev@lucene.apache.org
Subject: [Lucene.Net] Could not load assembly

While trying to set up a test for Contrib.IsolatedStorage, I'm running
into an issue I haven't been able to solve.

{System.TypeLoadException: Could not load type
'Lucene.Net.Documents.Document' from assembly 'Lucene.Net,
Version=2.9.4.2, Culture=neutral, PublicKeyToken=null'.
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at 
System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs
e)
   at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control
ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr
unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
}

I'm not sure why I'm getting this. When I call the
IsolatedStorageDirectory constructor, that runs fine, but when I try
to call something from the Lucene.Net core I'm running into this
error.

Directory isoDir = new IsolatedStorageDirectory("//", null);
Document doc; //this line throws the error, the above runs fine.

I've cleared the GAC, made sure I've got the latest binaries referenced etc.

Any thoughts?

Thanks,
~Prescott

Reply via email to