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

    @CyberSimian Sorry, I missed your last post. I ended up doing a clean install on the client and all is well now. It still doesn't let me go back in time when I change channels but it does continue operating from that point on. I'm ok with that. Thanks for your help! EDIT: I now downgraded the server (as I did with the client above)...
    @CyberSimian Sorry, I missed your last post. I ended up doing a clean install on the client and all is well now. It still doesn't...
    When I first start watching a TV program the timeshift functions works perfectly. I can shift back and forth in time and it works...
    Replies
    11
    Views
    2K
    I do not know why this xml was in my theme folders, it must have sneaked in some time ago (years?). I simply removed the file. The Latest Media Handler plugin seems to be working as expected. I've had no lock-ups.
    I do not know why this xml was in my theme folders, it must have sneaked in some time ago (years?). I simply removed the file. The...
    Before you create this bug report: Make sure that your system (windows, codecs and drivers) is up to date, matching the...
    Replies
    13
    Views
    2K
    Sorry, it's my fault -- I did not notice that you are using MP2. :( MP1 has a separate configuration utility, similar to "TV Server Config". I have tried MP2 only a couple of times, and have never used it seriously. I don't know what MP2 supports with regard to adjusting audio delay, but I do know that all of the adjustments of...
    Sorry, it's my fault -- I did not notice that you are using MP2. :( MP1 has a separate configuration utility, similar to "TV...
    Hi. I recently upgraded my home cinema AVR which also meant changed from sending audio from my HTPC as 5.1 using optical to 7.1...
    Replies
    5
    Views
    1K
    MP 1.37 Final (Willow) Bugfix II released, download links updated...
    MP 1.37 Final (Willow) Bugfix II released, download links updated...
    We have just released MediaPortal 1.37 - Willow x86 and x64 version. Highlights of this release Bugfixes: [MP1-5232] - GPU...
    Replies
    4
    Views
    2K
    • Sticky
    Shame on me. That's it. I forgot that this computer was still running the 32-bit version of MP. From now on, I will no longer do updates in the morning :).
    Shame on me. That's it. I forgot that this computer was still running the 32-bit version of MP. From now on, I will no longer do...
    We have just released MediaPortal 1.38 - Tatiana & Leo x86 and x64 version. Highlights of this release Bugfixes: New...
    Replies
    24
    Views
    3K
    Top Bottom