home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
General C#/Development Question
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="whiskaz" data-source="post: 366449" data-attributes="member: 66443"><p>I'm working on a small app that uses a couple of MediaPortal libraries (Databases.dll, which in turn uses other MediaPortal dlls). I'm having trouble running it (an executable) outside of the VS project folder. I'm a Java developer by day and new to the world of DLLs, etc.</p><p></p><p>I was really hoping to be able to use the DLLs that are already in the MediaPortal installation folder and not have to make copies - is there a way to do this? In the meantime, I've copied everything out of the VS2008/project/bin/Debug folder (exe w/ MediaPortal dlls) and I get an error when it tries to call one of the MP dlls. It's actually showing a different assembly version for the dll it's looking for than the one that was built in the Debug folder. </p><p></p><p>Again, the exe runs fine when I run it from the Debug folder but not when I move everything to another location. </p><p></p><p>[code]</p><p>Unhandled Exception: System.BadImageFormatException: Could not load file or asse</p><p>mbly 'Databases, Version=1.0.0.29792, Culture=neutral, PublicKeyToken=null' or o</p><p>ne of its dependencies. An attempt was made to load a program with an incorrect</p><p>format.</p><p>File name: 'Databases, Version=1.0.0.29792, Culture=neutral, PublicKeyToken=null</p><p>[/code]</p><p></p><p>The DLL it was built against was version shows as 1.0.0.29792 in VS but the dll in the debug folder shows 1.0.0.21149.</p><p></p><p>I'd prefer if there was a way to use the existing installed DLLs (I added those as references in the project and it appears to have copied those versions to the Debug folder).</p><p></p><p>Any help would be much appreciated!!</p><p></p><p>Thanks,</p><p>Jeremy</p></blockquote><p></p>
[QUOTE="whiskaz, post: 366449, member: 66443"] I'm working on a small app that uses a couple of MediaPortal libraries (Databases.dll, which in turn uses other MediaPortal dlls). I'm having trouble running it (an executable) outside of the VS project folder. I'm a Java developer by day and new to the world of DLLs, etc. I was really hoping to be able to use the DLLs that are already in the MediaPortal installation folder and not have to make copies - is there a way to do this? In the meantime, I've copied everything out of the VS2008/project/bin/Debug folder (exe w/ MediaPortal dlls) and I get an error when it tries to call one of the MP dlls. It's actually showing a different assembly version for the dll it's looking for than the one that was built in the Debug folder. Again, the exe runs fine when I run it from the Debug folder but not when I move everything to another location. [code] Unhandled Exception: System.BadImageFormatException: Could not load file or asse mbly 'Databases, Version=1.0.0.29792, Culture=neutral, PublicKeyToken=null' or o ne of its dependencies. An attempt was made to load a program with an incorrect format. File name: 'Databases, Version=1.0.0.29792, Culture=neutral, PublicKeyToken=null [/code] The DLL it was built against was version shows as 1.0.0.29792 in VS but the dll in the debug folder shows 1.0.0.21149. I'd prefer if there was a way to use the existing installed DLLs (I added those as references in the project and it appears to have copied those versions to the Debug folder). Any help would be much appreciated!! Thanks, Jeremy [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
General C#/Development Question
Contact us
RSS
Top
Bottom