Uploaded image for project: 'MediaPortal 2'
  1. MediaPortal 2
  2. MP2-491

DirectoryEntryNeighborhoodBrwoser throws exceptions in a Domain environment

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.1
    • 2.0.0-Summer Release '15
    • Extensions
    • None

    Description

      <p>The DirectoryEntryNeighborhoodBrowser throws exceptions in the following form, when it runs on a computer that is member of a Domain:</p>

      <p>[2015-09-04 19:15:22,178] [894034 ] [59&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ] [ERROR] - DirectoryEntryNeighborhoodBrowser: Error while getting IPHostEntries<br />
      System.Net.Sockets.SocketException (0x80004005): Der angegebene Host ist unbekannt<br />
      &nbsp;&nbsp; bei System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)<br />
      &nbsp;&nbsp; bei System.Net.Dns.EndGetHostEntry(IAsyncResult asyncResult)<br />
      &nbsp;&nbsp; bei System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)<br />
      --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---<br />
      &nbsp;&nbsp; bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)<br />
      &nbsp;&nbsp; bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)<br />
      &nbsp;&nbsp; bei MediaPortal.Extensions.ResourceProviders.NetworkNeighborhoodResourceProvider.NeighborhoodBrowser.DirectoryEntryNeighborhoodBrowser.&lt;DoGetHostsAsync&gt;d__1.MoveNext()</p>

      <p>Reason is that in a domain, the direct child-objects of the domain-object are not only computers, but also other objects, which do not have an ip address. The ip address resolution therefore fails.</p>

      <p>Solution is that we need to check <a href="https://github.com/MediaPortal/MediaPortal-2/blob/1fcf783e56c55e96ae9c0e490a4b5b5b7be5487f/MediaPortal/Source/Extensions/ResourceProviders/NetworkNeighborhoodResourceProvider/NeighborhoodBrowser/DirectoryEntryNeighborhoodBrowser.cs#L90">here</a>, whether the object is a computer, before we try to relove the ip address.</p>

      Attachments

        Activity

          People

            aspik aspik
            MJGraf MJGraf (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: