NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 6 7 8 9 10 … 93 Next »
Trouble loading .NET System assemblies

 
  • 0 Vote(s) - 0 Average
Trouble loading .NET System assemblies
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,589
Threads: 385
Joined: Dec 2004
#1
2013-10-29, 02:04 AM
I've got an nDroid support puzzle - I've an idea of what's going on but no idea what would cause it.

I've a handler in the main service for locating / loading 3rd-party assemblies...
Code:
    AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(ResolveAssemblyEventHandler);
...it should normally only fire when looking for things like the SQLite dll etc. but in this case it's firing when trying to locate native .NET System assemblies.

The thread is http://forums.nextpvr.com/showthread.php...ll-problem and from the logs I see...
Code:
26-10-2013 21:53:31.177 ResolveAssemblyEventHandler() called.
26-10-2013 21:53:31.177 args.Name: System.ServiceProcess.resources, Version=4.0.0.0, Culture=nl-NL, PublicKeyToken=b03f5f7f11d50a3a
26-10-2013 21:53:31.177 Attempting to find assembly: System.ServiceProcess.resources.dll
26-10-2013 21:53:31.193 ResolveAssemblyEventHandler() called.
26-10-2013 21:53:31.193 args.Name: mscorlib.resources, Version=4.0.0.0, Culture=nl-NL, PublicKeyToken=b77a5c561934e089
...I'm guessing from the "Culture=nl-NL" part of the args passed in to the handler that it's looking for locale-specific versions of the System dlls but I've never seen that before and can't think what might be causing it.

Anybody any ideas?

Cheers,
Brian
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,116
Threads: 957
Joined: May 2006
#2
2013-10-29, 02:08 AM
I was wondering if he can he run 3.1.1, I'd start there to see if it is .NET 4.0 before looking at nDroid

Martin
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,589
Threads: 385
Joined: Dec 2004
#3
2013-10-29, 02:43 AM
mvallevand Wrote:I was wondering if he can he run 3.1.1, I'd start there to see if it is .NET 4.0 before looking at nDroid

Martin
Agreed, that is one thing I intend to ask. If he's running an older npvr version or having problems with 3.1.1 then it's definitely an issue with his .NET 4 installation but I'm suspecting that anyway. It has highlighted a bug in the nDroid event handler which causes a recursive loop though.

Cheers,
Brian
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,589
Threads: 385
Joined: Dec 2004
#4
2013-10-31, 02:37 AM
Just for future reference...

It was the bug I mentioned I'd found. It was my ResolveAssemblyEventHandler() which was creating a problem which didn't really exist. I discovered I'd set a default load path so, even if the assembly couldn't be found and manually loaded from the npvr or ndroid folders, it would try loading from the default path. The result was that the handler would be called again and so on.

I changed the code to simply return 'null' if the assembly can't be found in either the npvr or ndroid folders and as a result the .NET framework assumes responsibility for what should be done.

Cheers,
Brian
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Loading Local Video Files Syler 25 6,934 2021-03-07, 09:20 PM
Last Post: Syler
  Can't debug with app using Nutility (System.TypeInitializationException) danorum 3 2,982 2015-08-17, 10:53 PM
Last Post: danorum
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,300 2013-03-24, 08:03 PM
Last Post: imilne
  Resolving required plugin assemblies problem McBainUK 37 12,373 2011-10-26, 06:12 PM
Last Post: psycik
  A foreign dll in the plugin folder breaks loading further plugins tmrt 10 5,525 2010-11-30, 04:48 AM
Last Post: sub
  Using Windows file system shortcuts ACTCMS 0 1,835 2010-01-26, 11:45 PM
Last Post: ACTCMS
  System.Data.DataSetExtensions mvallevand 4 9,895 2008-09-21, 06:02 AM
Last Post: mvallevand
  What SCM (Source Control Management) system do you use? JavaWiz 3 2,131 2008-08-19, 07:28 PM
Last Post: Manderson
  Loading Large lists - uiSimpleList, UiList psycik 10 3,552 2008-07-14, 10:08 PM
Last Post: psycik
  Vista problem loading MovieWizManager.exe? JavaWiz 5 2,748 2008-06-05, 06:23 AM
Last Post: whurlston

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode