lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prescott Nasser <geobmx...@hotmail.com>
Subject RE: [Lucene.Net] Could not load assembly
Date Sun, 12 Jun 2011 04:01:40 GMT
I'll investigate it a bit. So far though there are issues with making lucene wp7 compatible
ATM. As I fix things more issues  pop up.

Definitely something I'll look closely at though

Sent
from my Windows Phone

-----Original Message-----
From: Michael Herndon
Sent: Saturday, June 11, 2011 6:30 PM
To: lucene-net-dev@lucene.apache.org
Subject: Re: [Lucene.Net] Could not load assembly



> If thats the case, I'd propose exploring the portable class library project
> for the long run.
> 
> Its supposed to constrain you to the shared APIs that are available in the
> target frameworks chosen. (xna/xbox, the full framework, silverlight,
> windows mobile 7 silverlight).
> 
> Then it should allow you to build against all of those using one project
> rather than having to maintain several csproj files or go through the hassle
> of linking files.
> 
> In the future MS is hoping to also get mono touch and mono droid as
> targets.
> 
> Getting Lucene.Net working on WP7, Mono Droid & Mono Touch would give
> Lucene.Net a leg up to it's java counterpart and enhance its long term
> viability.
> 
> - Michael
> 
> 
> 
> On Sat, Jun 11, 2011 at 8:33 PM, Prescott Nasser <geobmx540@hotmail.com>wrote:
> 
>>
>> Definitely a small project of changes ;) - for now it's a new branch that
>> links to 2.9.4g (linking is definitely the way to go). At a certain point we
>> might might merge the build and what into 2.9.4g directly.
>>
>> We'll have to discuss in the future the best way to merge this back into
>> 2.9.4g - there are some caveats - each will have a set of it's own files for
>> some classes
>>
>>
>>
>>
>> ----------------------------------------
>> > Date: Sat, 11 Jun 2011 19:15:55 -0400
>> > From: mherndon@wickedsoftware.net
>> > To: lucene-net-dev@lucene.apache.org
>> > Subject: Re: [Lucene.Net] Could not load assembly
>> >
>> > In the past people have used project linker. However there is something
>> > newer that could be use which is the portable class library:
>> > http://msdn.microsoft.com/en-us/library/gg597391.aspx
>> >
>> > Either way, unless someone knows an easier way (possibly changing the
>> > project guids), you'll have to use a separate project files to compile
>> them
>> > against the silverlight framework.
>> >
>> > And that is even if the Lucene.Net core is currently compatible with the
>> WP7
>> > apis. If it is not, that could be small project worth of changes within
>> > itself. (someone might have tried to compile it before hand).
>> >
>> > - Michael
>> >
>> > On Sat, Jun 11, 2011 at 6:58 PM, Prescott Nasser wrote:
>> >
>> > >
>> > > Hmm, that's likely it. Do you know a fast way to compile Lucene.Net and
>> the
>> > > IsolatedStorage to the silverlight framework? I could create new wp7
>> class
>> > > projects and import all the files, but surely there is another way?
>> > >
>> > >
>> > >
>> > >
>> > > ----------------------------------------
>> > > > Date: Sat, 11 Jun 2011 18:34:02 -0400
>> > > > From: mherndon@wickedsoftware.net
>> > > > To: lucene-net-dev@lucene.apache.org
>> > > > Subject: Re: [Lucene.Net] Could not load assembly
>> > > >
>> > > > was it compiled against the wp7 version of silverlight? or .net full
>> > > > framework?
>> > > >
>> > > > On Sat, Jun 11, 2011 at 6:28 PM, Prescott Nasser wrote:
>> > > >
>> > > > >
>> > > > > I have - I wasn't sure how to fake IsolatedStorage and figured
I'd
>> just
>> > > try
>> > > > > and get it running in a wp7 app with the emulator, then go back
and
>> > > start
>> > > > > filling in holes (like the test proj)
>> > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > > > ----------------------------------------
>> > > > > > From: digydigy@gmail.com
>> > > > > > To: lucene-net-dev@lucene.apache.org
>> > > > > > Date: Sun, 12 Jun 2011 01:23:35 +0300
>> > > > > > Subject: RE: [Lucene.Net] Could not load assembly
>> > > > > >
>> > > > > > Hard to guess.
>> > > > > >
>> > > > > > Have you seen Contrib.IsolatedStorage.Test.csproj?
>> > > > > >
>> > > > > > DIGY
>> > > > > >
>> > > > > > -----Original Message-----
>> > > > > > From: Prescott Nasser [mailto:geobmx540@hotmail.com]
>> > > > > > Sent: Sunday, June 12, 2011 12:33 AM
>> > > > > > 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(MouseButto
>> > > > > > nEventArgs 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 =
>> > > > > >
>> > > > >
>> > >
>>

Mime
View raw message