I need help developing a new site (3 Viewers)

Dj_Moren

Portal Pro
November 7, 2009
171
25
I'm trying to develop a new site but i'm not .NET coder, so i'm a really a noob here.

I installed Visual Studio 2010 Utilmate and downloaded the source code with tortiseSVN. I opened OnlineVideos.sln and i can see three projects: Onlinevideos, Onlinevideos.Mediaportal1 and Siteparser. There are also 2 directories, SiteutilProjects (with the sites developed by the users) and Solution Items wich is empty.

I tried launching three projects (i really don't know it it has sense throwing 3 projects but i just tried it):

1. Onlinevideos: i launch it and gives me 3 alterts:
Code:
Se detectó LoaderLock
Message: El archivo DLL 'C:\Windows\assembly\GAC\Microsoft.DirectX.Direct3D\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.Direct3D.dll' está intentando realizar una ejecución administrada dentro del bloqueo del cargador del sistema operativo. No intente ejecutar código administrado dentro de DllMain ni la función de inicialización de imagen porque la aplicación se puede bloquear.
 
Se detectó LoaderLock
Message: El archivo DLL 'C:\Windows\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll' está intentando realizar una ejecución administrada dentro del bloqueo del cargador del sistema operativo. No intente ejecutar código administrado dentro de DllMain ni la función de inicialización de imagen porque la aplicación se puede bloquear.
 
 
Se detectó LoaderLock
Message: El archivo DLL 'C:\Windows\assembly\GAC\Microsoft.DirectX.Direct3DX\1.0.2911.0__31bf3856ad364e35\Microsoft.DirectX.Direct3DX.dll' está intentando realizar una ejecución administrada dentro del bloqueo del cargador del sistema operativo. No intente ejecutar código administrado dentro de DllMain ni la función de inicialización de imagen porque la aplicación se puede bloquear.
I click in each message continue button and then mediaportal starts, i enter in onlinevideos but it hangs here. I have to close mediaportal window. If i enter in other sites i.e. videos, music... it works well.

2. Onlinevideos.Mediaportal1: i can't start it because it throws an error saying it can't load the archive:
Code:
No se puede cargar el archivo o ensamblado 'file:///C:/Program Files (x86)/Team MediaPortal/MediaPortal/Common.Utils.dll' ni una de sus dependencias. Se ha intentado cargar un programa con un formato incorrecto. Línea 178, posición 5.    C:\Proyectos\Onlinevideos\OnlineVideos.MediaPortal1\Configuration\CreateEditSite.resx    178    5    OnlineVideos.MediaPortal1
I tried adding "C:\Program Files (x86)\Team MediaPortal\MediaPortal\Common.Utils.dll" to references and it apeears in the list but the same error is thrown.

3. Siteparser: loads correctly and i can work with it like if i where in mediaportal but really i don't know how this can help me.

Now i have lots of questions, i'm going to try to simplify them:
a. Wich project do i need to launch for developing a site?
b. Wich steps do i have to do for developing a site? (offbyone told me to start modifiying a developed site but i don't know how to test those modifications)
c. How can i test the site i'm developing?
d. Wich of the warnings do i need to solve and how?

Please, respond this questions like if you were talking to a noob in .NET enviroment please, my goal is to help the community aporting new sites!! Thank you!!
 

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    The correct file is OnlineVideos.sln
    You should have MediaPortal installed in its default directory on the machine you try to develop on.
    Please either disable UAC or start Visual Studio as Admin (right click).
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Ah now that I translated that spanish error :
    You can ignore the LoaderLock (in VS menu go to Debug->Exceptions->ManagedDebuggingAssistant and uncheck LoaderLock).

    When you say going to Onlinevideos "hangs" - does it work when you run MediaPortal without debugging? What does "hang" look like? Maybe you are in a breakpoint?
     

    Dj_Moren

    Portal Pro
    November 7, 2009
    171
    25
    I disabled now the loaderlock messages.
    When i say hang i'm saying that i can't do nothing when i enter in onlinevideos. It's like if there was a breakpoint like you said but there is no breakpoint (the play button in Visual Studio is disabled). In mediaportal i can see the sites and see the videos but it's curious, because when i launch the onlinevideos project from Visual Studio and hangs entering onlinevideos then i try to enter from windows (not from Visual Studio) and there happens the same, onlinevideos hangs. If i uninstall and reinstall the plugin it works well again and if i close and open mediaportal from windows works well (just to test if it was the first time wich works but all the times worked) but after launching the program from Visual Studio it hangs again when i enter from windows directly or from Visual Studio.
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Then I'd say the dlls you are compiling make something incompatible? What MP version are you running, what do the logs say?
     

    Dj_Moren

    Portal Pro
    November 7, 2009
    171
    25
    Mediaportal version is 1.2.2.0
    I attach the logs. I can see that there is an error when entering in onlinevideos. Maibe you can see the problem. (This logs are after the hang) Thanks a lot for the support
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Hm did you surely did a clean svn checkout/update? It says "System.MethodAccessException: OnlineVideos.DownloadList..ctor()" which sounds like source dont fit together.
     

    Dj_Moren

    Portal Pro
    November 7, 2009
    171
    25
    I checkouted the code some times between try and try to assure that it was well so that's not the problem. But it's very strange that once i launch the program from visual studio and it hangs, then if i launch mediaportal directly and try to use onlinevideos hangs also. Is it normal?
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,647
    3,108
    Nuenen
    Home Country
    Netherlands Netherlands
    On my system, it can take quite a while for mediaportal to get responsive. What I usually do, is start mediaportal, and in visual studiom debug menu, attach to the mediaportal process. That can save a lot of time debugging
     

    Users who are viewing this thread

    Top Bottom