Bugreports (3 Viewers)

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


    Write your reply...

    Similar threads

    • Sticky
    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
    774
    Does anyone else have problem with long (several hours) pauses of TV broadcasts? If I pause and forget, I can still resume TV the next day, but if I try to change channel or stop, MP freezes. Only way to fix is to restart both MP and TV Service. Sometimes I need to restart PC It seems that TVServer cannot proprtly handle large...
    Does anyone else have problem with long (several hours) pauses of TV broadcasts? If I pause and forget, I can still resume TV the...
    Does anyone else have problem with long (several hours) pauses of TV broadcasts? If I pause and forget, I can still resume TV the...
    Replies
    0
    Views
    547
    I should point out that the developers have not formally left the project, and development has not formally stopped. The developers have instead simply "faded away", gradually spending less and less time on MP2 until the present, when they spend no time on MP2. But one or more of the developers might return next week! It is impossible...
    I should point out that the developers have not formally left the project, and development has not formally stopped. The developers...
    Hi Folks, I need some help with fixing the Problem that MP2 doesn't keep the sorted Order of Channels in TV-Configuraiton. I am...
    Replies
    10
    Views
    623
    • Sticky
    Upgrade install on MP 1.36 x64 proceeded without issue, everything I have tried so far is working and looking very good. Many Thanks(y):)
    Upgrade install on MP 1.36 x64 proceeded without issue, everything I have tried so far is working and looking very good. Many...
    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
    1
    Views
    637
    Now with Version 1.37 x64 MP is near to perfect with repect to speed, robustness and funtionality. There is just one point where I have an Idea for further improvement. As I am not too interested in advetisments, I am using comskip to mark times of ads, which is normally working, as it should but produces an error when trying to...
    Now with Version 1.37 x64 MP is near to perfect with repect to speed, robustness and funtionality. There is just one point where I...
    Now with Version 1.37 x64 MP is near to perfect with repect to speed, robustness and funtionality. There is just one point where I...
    Replies
    0
    Views
    176
    Top Bottom