NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 11 12 13 14 15 … 93 Next »
Resolving required plugin assemblies problem

 
  • 0 Vote(s) - 0 Average
Resolving required plugin assemblies problem
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#31
2011-04-05, 03:44 PM
Thanks for the info. Yeah, I did notice the stack contained no MusicSpot stuff so NPVR had nothing to work with. Sad
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#32
2011-04-05, 03:44 PM
I've found that if you have the plugin DLLS at ...\Program Files\NPVR\Plugins\Spotify\ and use a NextPVR.exe.config like below the dependencies are resolved and everything works!
Code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <probing privatePath="Plugins\Spotify"/>
      </assemblyBinding>
   </runtime>
</configuration>
Not sure if it's suitable as permanent solution though.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#33
2011-04-23, 08:41 AM
Any chance somebody has come up with a creative solution to this in the interim? I'm not excited about putting the additional DLLs into the app directory either, and I can't feel really good about the nextpvr.exe.config edit either.

Is there any advantage to an "oi! You heard of this assembly?" interface a plugin can optionally implement that can be used to give additional hints to the search?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#34
2011-04-23, 12:11 PM
I can probably do something more when I'm back home with my development machine. Worst case I can probably search all plugin directories looking for a named DLL.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 45,319
Threads: 865
Joined: May 2006
#35
2011-05-01, 11:08 PM
Sub, I'm using an NUtilities from the other thread on SetVisible (which I will also reopen when you are back) and I think you have started on this. For now I was just wondering if all these System.Windows.Forms belong there?

Code:
2011-05-01 18:46:49.677    [DEBUG][1]    PluginResolveEventHandler: System.ResolveEventArgs
2011-05-01 18:46:49.677    [DEBUG][1]    Known plugin directories:
2011-05-01 18:46:49.677    [DEBUG][1]    Checking stack
2011-05-01 18:46:49.677    [DEBUG][1]     - NUtility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2011-05-01 18:46:49.677    [DEBUG][1]     - mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.677    [DEBUG][1]     - Interfaces, Version=9.1.0.23111, Culture=neutral, PublicKeyToken=null
2011-05-01 18:46:49.677    [DEBUG][1]     - MusicBox4, Version=9.1.0.0, Culture=neutral, PublicKeyToken=null
2011-05-01 18:46:49.678    [DEBUG][1]     - MusicBox4, Version=9.1.0.0, Culture=neutral, PublicKeyToken=null
2011-05-01 18:46:49.678    [DEBUG][1]     - MusicBox4, Version=9.1.0.0, Culture=neutral, PublicKeyToken=null
2011-05-01 18:46:49.678    [DEBUG][1]     - mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - NUtility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2011-05-01 18:46:49.678    [DEBUG][1]     - NUtility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2011-05-01 18:46:49.678    [DEBUG][1]     - NextPVR, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - NextPVR, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
2011-05-01 18:46:49.678    [DEBUG][1]     - NextPVR, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#36
2011-05-02, 12:05 AM
Yeah, its normal to have a fair few System.Windows.Forms entries in the stack trace.
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#37
2011-10-26, 05:30 PM
NPVR is failing to load a COM Interop assembly for my plugin. It is not finding it even though my assembly plugin appears in the stack (I thought it was supposed to look in the directories of plugins appearing in the stack)? My log is attached.
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
psycik
Offline

Posting Freak

Posts: 5,206
Threads: 422
Joined: Sep 2005
#38
2011-10-26, 06:12 PM
Hi. I remember having these problems with gbpvr and later pvrx2.

One solution I found was in the constructor, or the initialise interface method (I can't remember what's used now), was to touch a method on each dll I needed to load.

I made a getversion static method for this purpose that reported the internal version. Butthe method was unimportant, it was the action of doing something with each external dll that helped. As only in initialisation did gbpvr know where it was to resolve all the dlls.

Then when they were accessed later on they were ready to use.

Maybe a help maybe not.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 257 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 1,995 2020-11-14, 08:01 PM
Last Post: sub
  NextPVR 5: When is PIN Required for API Access? pkscout 3 1,863 2020-05-26, 04:45 AM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 2,672 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,278 2014-11-14, 02:05 AM
Last Post: Benoire
  Trouble loading .NET System assemblies bgowland 3 1,813 2013-10-31, 02:37 AM
Last Post: bgowland
  API docs to help with plugin development? McBainUK 3 2,147 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 4,547 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 1,482 2013-03-12, 06:48 AM
Last Post: psycik
  Problem with preview image for Pending Recordings Northpole 2 1,486 2012-08-14, 02:56 AM
Last Post: Northpole

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

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

Linear Mode
Threaded Mode