failed to locate System.Drawing (2 Viewers)

mucdev

New Member
November 15, 2011
2
0
Home Country
Hi,

I am trying to set up environment to compile and debug mediaportal.
I obtained the source from gitHub, Commit:c2342fe5375d41d6e7ea1f9df243aa46057dde56, dated 10th of November 2011.

It compiles OK, with 5 warnings and no errors.

Then start debugging, it throws up an error box: Failed to locate assembly System.Drawing, Version=4.0.0.0.

The assembly should be part of GDI which should be part of DirectX. Am I right?

I have DirectX SDK June 2010,
Windows SDK c7.0.


MediaPortal Version: 1.2.1
Windows Version: XP SP3
CPU Type: Intel D525

Any idea how to overcome this problem, am I missing something?

Thanks in advance...

Funny, I closed the project, as I had done several times already,
but this time I created a simple windows forms project,
in which I included a few lines of code containing System.Drawing.
Then ran it successfully.

Then I went back to the mediaportal solution, and it passed the original problem.

But now it give me a languageException : No available language found.

I will try to find out what that problem is too. A quick search didn't give me any hints.

Thanks for reading, and you're welcome to give me some hints too :D
 

mucdev

New Member
November 15, 2011
2
0
Home Country
Guess what? I made a test project in which I added System.Drawing, which successfully compiled and ran.
Then I reopened mediaportal solution and it also went pass this point.

It then came up with the initial configuration prompt. When I clicked OK, it terminated with a language exception: "No available language found".

Had to do my first debugging, and found that it was looking for files in
C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Language.
No files were present. So I found and copied them from
C:\Documents and Settings\user\My Documents\MediaPortal-1\mediaportal\MediaPortal.Base\language.


Now the application continued to the configuration window.

I reckon the problem was this was a clean development environment, in which I had never installed mediaportal before.

Hope this can be of help to someone in the future.
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hi mucdev

    Indeed, you need to install MP or otherwise put the various settings files into the places expected by MP if you want to debug.

    mm
     

    Users who are viewing this thread

    Top Bottom