Bugreports (1 Viewer)

milagroso

MP Donator
  • Premium Supporter
  • May 23, 2007
    95
    7
    Home Country
    Germany Germany
    AW: Bugreports

    Thanks, that additional copy made it. I can access TV, schedules and recordings.

    However, there's still not everything working here. When following the link 'TV Server Status' I get another error screen:

    Die Anfrage ist ungültig.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Management.ManagementException: Die Anfrage ist ungültig.

    Source Error:

    Line 110: ManagementObjectCollection queryCollection=query.Get();
    Line 111:
    Line 112: foreach (ManagementObject os in queryCollection)
    Line 113: ret=os["Caption"].ToString() + " (Build " + os["BuildNumber"].ToString() + " - " + os["BuildType"] + " - " + os["OSArchitecture"]+")";
    Line 114: return ret;


    Source File: c:\Programme\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\TvServerStatus.aspx.cs Line: 112

    Stack Trace:

    [ManagementException: Die Anfrage ist ungültig. ]
    System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) +144
    System.Management.ManagementObjectEnumerator.MoveNext() +428
    TvServerStatus.GetOSVersionStr() in c:\Programme\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\TvServerStatus.aspx.cs:112
    TvServerStatus.RefreshServerInfo(List`1 recPaths) in c:\Programme\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\TvServerStatus.aspx.cs:87
    TvServerStatus.Page_Load(Object sender, EventArgs e) in c:\Programme\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\TvServerStatus.aspx.cs:65
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
    System.Web.UI.Control.OnLoad(EventArgs e) +73
    System.Web.UI.Control.LoadRecursive() +52
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2184

    Any ideas?
     

    Pitscho

    MP Donator
  • Premium Supporter
  • April 18, 2008
    81
    5
    Home Country
    Germany Germany
    Re: AW: Bugreports

    ich krieg nen datentyp fehler. ich hab win 7 64bit und auch 4gb arbeitsspeicher, sodass int32 der falsche datentyp ist. dürfte kein großes problem sein.

    ich hab den webserver mit den dll aus dem tvserver dir zum laufen gebracht, geht auch das meiste soweit inkl stream nur die seite server status gibt folgenden fehler.

    Der Wert für einen Int32 war zu groß oder zu klein.

    Beschreibung: Unbehandelte Ausnahme beim Ausführen der aktuellen Webanforderung. Überprüfen Sie die Stapelüberwachung, um weitere Informationen über diesen Fehler anzuzeigen und festzustellen, wo der Fehler im Code verursacht wurde.

    Ausnahmedetails: System.OverflowException: Der Wert für einen Int32 war zu groß oder zu klein.

    Quellfehler:


    Zeile 80: manufacturer = mo["manufacturer"].ToString();
    Zeile 81: computername = mo["name"].ToString();
    Zeile 82: totalPhysicalMem = Convert.ToInt32(mo["totalphysicalmemory"]);
    Zeile 83: totalPhysicalMem = (totalPhysicalMem / 1024) / 1024;
    Zeile 84: }

    -----------------------------------------------------

    sorry, i forgot i'm in the english speaking section above, but i think gemx will understand.

    found another bug. whenever i click on a recording button nothing happens. die show isnt added to the shedules.
     

    feizex

    Portal Member
    July 26, 2009
    24
    1
    Home Country
    I'm using Win7 x64 and have 4GB RAM. This is the issue. 4GB is too large for a signed INT. Change to unsigned as follows...

    EDIT:
    C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\TvServerStatus.aspx.cs

    Change Int to UInt...
    Code:
        private void RefreshServerInfo(List<string> recPaths)
        {
          string manufacturer = "";
          string model = "";
          string computername = "";
    [B]      uint totalPhysicalMem = 0;[/B]
    
          ManagementObjectSearcher query = new ManagementObjectSearcher("SELECT model,manufacturer,name,totalPhysicalMemory FROM Win32_ComputerSystem");
          ManagementObjectCollection queryCollection = query.Get();
          foreach (ManagementObject mo in queryCollection)
          {
            model = mo["model"].ToString();
            manufacturer = mo["manufacturer"].ToString();
            computername = mo["name"].ToString();
    [B]        totalPhysicalMem = Convert.ToUInt32(mo["totalphysicalmemory"]);[/B]
            totalPhysicalMem = (totalPhysicalMem / 1024) / 1024;
          }

    ==========================================================================================

    HOW TO INSTALL?

    I fumbled my way through installing this Plugin. It wouldn't hurt to have a readme.txt

    Here's some instructions for other novices like me...

    RUN MPWebServices_RC3.msi to install.

    dump the following into a bat file and run (updates webservice DLLs from your MP DLLs). This assumes you're running Win7 x64
    Code:
    copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\Gentle.Common.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"
    copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\Gentle.Framework.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"
    copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\Gentle.Provider.MySQL.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"
    copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\Gentle.Provider.SQLServer.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"
    copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\MySql.Data.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"
    copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\TvControl.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"
    copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\TVDatabase.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"
    copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\TvLibrary.Interfaces.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"
    copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\DirectShowLib.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"
    pause

    EDIT: C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\config.xml
    FIND LINE:
    <config httpport="8080" thumbwidth="70" thumbheight="70" clientplayerpath="c:\program files\Videolan\VLC\vlc.exe" playertype="2" streamurl="http://mycomputername:8080" username="admin" password="admin" scraper_url="http://www.imdb.com/find?s=all&amp;q={0}" />
    CHANGE:
    set http port (eg. 8080) and stream URL (eg. http://mycomputername:8080) and scraper_url to imdb.com (assuming you don't read German)

    EDIT: C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\gentle.config
    FIND LINE:
    <DefaultProvider name="MySQL" connectionString="Server=localhost;Database=MPtvDB;User ID=root;Password=MediaPortal;charset=utf8;Connection Timeout=300;" />
    CHANGE:
    These are the defaults for MP but you have to enter them.

    EDIT:
    C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\TvServerStatus.aspx.cs

    FIND:
    int totalPhysicalMem = 0;
    CHANGE TO:
    uint totalPhysicalMem = 0;

    FIND:
    totalPhysicalMem = Convert.ToInt32(mo["totalphysicalmemory"]);
    CHANGE TO:
    totalPhysicalMem = Convert.ToUInt32(mo["totalphysicalmemory"]);


    Open TVserver configuration
    under PLUGINS tick MediaPortal WebSevices
    OK

    Open Browser and go to http://mycomputername:8080
    login: admin admin (this can be edited in config.xml line above)
     

    Users who are viewing this thread

    Similar threads

    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    40
    Views
    4K
    • Sticky
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested [2024-03-03 18:26:58,262] [Log ] [MPMain ] [DEBUG] - Main: TV service found. Checking status... [2024-03-03 18:26:58,263] [Log ] [MPMain ] [INFO ] - Main: TV service is in status Running - proceeding...
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested...
    MediaPortal 1.33 Release Written by Team-MediaPortal. We have just released MediaPortal 1.33 - Springtime / 20th Anniversary...
    Replies
    7
    Views
    765
    I am Sure the Issues will be fixed towards a stable. NET6 Version. Please don't get me wrong - My Intent was not any Complaint at all. I just wanted to: understand current Status & Situation understand my Options for a stable System improve my Knowledge & learn from Experts Especially because your limited Dev Resources and the...
    I am Sure the Issues will be fixed towards a stable. NET6 Version. Please don't get me wrong - My Intent was not any Complaint at...
    Hello Folks, Yesterday I upgraded to Mediaportal 2.5 via uninstalling 2.4.1 first and then install the latest .NET6 Variant of...
    Replies
    12
    Views
    1K
    Prerequisites A Spotify account (free or premium) I've not tested with a free account, but according to spotify it should work. Spotify desktop app installed on same computer as you are going to use with MediaPortal Getting ready Create an app at spotify, use this link: Dashboard | Spotify for Developers, you have to login. Click...
    Prerequisites A Spotify account (free or premium) I've not tested with a free account, but according to spotify it should work...
    Prerequisites A Spotify account (free or premium) I've not tested with a free account, but according to spotify it should work...
    Replies
    0
    Views
    1K
    It's working after some hours search: the Auto3D plugin which I haven't used for years was corrupting the start of the TV live stream from server to MP. If anyone has a similar problem - disable all old plugins and then enable one after another :-)
    It's working after some hours search: the Auto3D plugin which I haven't used for years was corrupting the start of the TV live...
    After using MP for more than 10 years with regularly updates - this is the first time that after an update MP is not working...
    Replies
    3
    Views
    1K
    Top Bottom