NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 36 37 38 39 40 … 93 Next »
Missing assembly problem...

 
  • 0 Vote(s) - 0 Average
Missing assembly problem...
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,599
Threads: 388
Joined: Dec 2004
#1
2008-01-02, 02:13 AM
I've come across this before but I'm having a mental blank trying to remember what causes it.

The DVB-T Radio plugin lives in the plugins folder and has a sub-folder of the same name. There are three main commpnents in that folder...

DVB-T Radio.dll (the plugin dll)
Dvbtr.exe (a worker exe)
DvbtrLib.dll (class library with some common stuff in it)

When I try to play a radio station from the plugin, I see the following in the PVRX2.exe.log file...

Code:
2008-01-02 01:41:34.663    VERBOSE    [1]    Looking for missing assembly in C:\Program Files\devnz\gbpvr\plugins\UKCinema: DvbtrLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2008-01-02 01:41:34.663    VERBOSE    [1]    Looking for missing assembly in plugin\common: DvbtrLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2008-01-02 01:41:34.803    VERBOSE    [1]    ReturnToMainMenu()
2008-01-02 01:41:34.803    VERBOSE    [1]    DVB-T Radio is currently active
2008-01-02 01:41:34.803    VERBOSE    [1]    DVB-T Radio.Deactivate() called
2008-01-02 01:41:34.803    VERBOSE    [1]    UiList.GetRenderList()
2008-01-02 01:41:34.803    VERBOSE    [1]    selectedIndex = 0     detailsViewVisibleIndex = 0
2008-01-02 01:41:34.803    VERBOSE    [1]    ReturnToMainMenu()@2
2008-01-02 01:41:34.928    VERBOSE    [1]    System.IO.FileNotFoundException: Could not load file or assembly 'DvbtrLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'DvbtrLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
   at DVBTRadio.DVBTRadio.Play2(String LCN, String ChannelName)

Why isn't the DvbtrLib assembly found in the DVB-T Radio plugin folder? Strangely enough, if I put it in the UKCinema plugin folder (which is searched as shown in the log above), it finds it and loads it.

Code:
2008-01-02 01:59:38.467    VERBOSE    [1]    Looking for missing assembly in C:\Program Files\devnz\gbpvr\plugins\UKCinema: DvbtrLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2008-01-02 01:59:38.467    VERBOSE    [1]    Assembly found...
2008-01-02 01:59:38.467    VERBOSE    [1]    ...and loaded

Confused.

Cheers,
Brian
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,953
Threads: 770
Joined: Nov 2003
#2
2008-01-02, 02:15 AM
Can you attach the whole pvrx2.exe.log?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,599
Threads: 388
Joined: Dec 2004
#3
2008-01-02, 02:37 AM
Thanks - log included. I've removed the DvbtrLib from the UKCinema folder in this case.

The first exception is showing at the point the plugin is trying to create a Remoting message client - the message handler interface is defined in DvbtrLib.

The second is when attempting to send a play request (I've defined a PlayRequest class in the class lib which is used to pass tuning info from the plugin to the exe).

Cheers,
Brian
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#4
2008-01-02, 03:23 AM
Have you tried placing DvbtrLib.dll in the main gbpvr folder?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,599
Threads: 388
Joined: Dec 2004
#5
2008-01-02, 03:32 AM
whurlston Wrote:Have you tried placing DvbtrLib.dll in the main gbpvr folder?
DOH! Nope - but I have now and don't see the same error.

I have to admit I don't like putting stuff in the GB-PVR install folder if I can help it so didn't think of doing that.

What confused me the most was that GB-PVR attempted to find the assembly by looking in other plugin folders but not the actual plugin folder that I'm using. :confused:

Cheers,
Brian
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#6
2008-01-02, 03:35 AM
bgowland Wrote:Thanks - log included. I've removed the DvbtrLib from the UKCinema folder in this case.

The first exception is showing at the point the plugin is trying to create a Remoting message client - the message handler interface is defined in DvbtrLib.

The second is when attempting to send a play request (I've defined a PlayRequest class in the class lib which is used to pass tuning info from the plugin to the exe).

Cheers,
Brian
Are you running this from your development environment? If so, I'm guessing that the reference in the Solutions list was set to point to the DLL in the UKCinema subdir.

Just a guess...

Also, you might want to place the common DLL in the plugins/common folder to be consistent.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,599
Threads: 388
Joined: Dec 2004
#7
2008-01-02, 03:50 AM
JavaWiz Wrote:Are you running this from your development environment? If so, I'm guessing that the reference in the Solutions list was set to point to the DLL in the UKCinema subdir.
No - I have a single solution with three projects for the different components. The plugin project and dvbtr.exe project reference the DvbtrLib in its VS project folder. At successful rebuild of all projects, a batch file is run to copy all components (including pdb files) to the plugin folder. I then run tests from PVRX2 itself, outside of the development environment.

The UK Cinema plugin isn't related in any way - I just spotted that GB-PVR was searching that folder when it couldn't find the assembly and took a chance to see if dropping the dll in there would fix things (which it did).

I spotted that the plugins\common folder was also being searched but I don't have one of those and I'm not sure it applies as the class lib is specific for the DVB-T Radio plugin and Dvbtr.exe. I've only created the class lib so I don't have to redefine common elements used for remoting etc.

Cheers,
Brian
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,953
Threads: 770
Joined: Nov 2003
#8
2008-01-02, 04:17 AM
The app has looked in the plugins\common to resolve missing dependencies for a couple of releases. It was also changed to look in the plugins\<plugin> directory, but I cant remember if that was post 1.1.5 or not.

I'd temporarily try creating a plugins\common directory and put it in there.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#9
2008-01-02, 04:46 AM
sub Wrote:The app has looked in the plugins\common to resolve missing dependencies for a couple of releases. It was also changed to look in the plugins\<plugin> directory, but I cant remember if that was post 1.1.5 or not.

I'd temporarily try creating a plugins\common directory and put it in there.
What's strange here, is the DLL that he's looking for (DvbtrLib.DLL) is specific to his plugin, and it seems that it is not found in his plugin directory(plugins/DVB-T Radio). For some reason, it tries to find it in another plugin directory (plugins/UKCinema), then in plugins/common.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,599
Threads: 388
Joined: Dec 2004
#10
2008-01-02, 04:55 AM
sub Wrote:I'd temporarily try creating a plugins\common directory and put it in there.
Yeah - probably the easiest thing......tomorrow. Nearly 5am and my brain's fried.

Cheers,
Brian
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with preview image for Pending Recordings Northpole 2 2,229 2012-08-14, 02:56 AM
Last Post: Northpole
  ActivatePopup: SSPlus problem ACTCMS 10 5,243 2012-07-18, 09:43 PM
Last Post: ACTCMS
  Dll assembly referencing mvallevand 5 2,468 2012-03-05, 04:07 AM
Last Post: mvallevand
  Weird Code problem - serialisation (I'll spell it the proper way!!"0 psycik 22 6,990 2011-11-25, 03:16 AM
Last Post: whurlston
  Resolving required plugin assemblies problem McBainUK 37 13,462 2011-10-26, 06:12 PM
Last Post: psycik
  Things missing in npvr alibert 2 1,775 2010-10-09, 10:53 AM
Last Post: alibert
  Problem using UIStatic philcooling 13 4,925 2010-02-12, 06:34 PM
Last Post: whurlston
  IVideoPlugin Problem SummerTimeBlues 9 4,355 2009-07-31, 04:02 AM
Last Post: sgilani
  pvrx2 / plugin assembly resolution bgowland 6 2,674 2009-02-05, 11:14 PM
Last Post: bgowland
  Weather Doppler Radar missing time 4 hours Snooze 0 1,447 2009-02-02, 07:00 PM
Last Post: Snooze

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

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

Linear Mode
Threaded Mode