none
Kinect and HTML5 - WebServer Problem RRS feed

  • Question

  • Hello everybody,
    when I run the example project (as I am not supposed to post links: https://msdn.microsoft.com/en-us/library/dn435689.aspx) which shows how to establish a connection between the Kinect and a web page the request for the Kinect stream is denied (403). I did not change anything and also I deactivated my firewall completely but I always get an 403 error when the sample page tries to get data from the Kinect (surprisingly the state can be requested but not the stream).
    I am woking on Windows 8.1 and installed the Kinect SDK 1.8 and the Kinect is plugged into a USB 3 port (although I think this should not be the problem as other sample applications are working)
    Here is the console output:

    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/Kinect/default/stream", client="::1" completed with result: 403
    "WebserverBasics-WPF.vshost.exe" (Verwaltet (v4.0.30319)): "C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" geladen
    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/files/SamplePage.html", client="::1" completed with result: 200
    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/files/Images/logo.png", client="::1" completed with result: 200
    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/files/Kinect-1.8.0.css", client="::1" completed with result: 200
    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/files/Kinect-1.8.0.js", client="::1" completed with result: 200
    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/files/Images/beach.jpg", client="::1" completed with result: 200
    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/Kinect/default/stream", client="::1" completed with result: 101
    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/files/Images/fireworks.jpg", client="::1" completed with result: 200
    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/Kinect/default/interaction/client", client="::1" completed with result: 101
    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/files/Images/operahouse.jpg", client="::1" completed with result: 200
    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/files/Images/hamlet.jpg", client="::1" completed with result: 200
    "WebserverBasics-WPF.vshost.exe" (Verwaltet (v4.0.30319)): "C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" geladen
    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/Kinect/default/state", client="::1" completed with result: 200
    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/Kinect/default/events", client="::1" completed with result: 101
    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/files/KinectWorker-1.8.0.js", client="::1" completed with result: 200
    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/Kinect/default/state", client="::1" completed with result: 200
    Eine Ausnahme (erste Chance) des Typs "System.UriFormatException" ist in System.dll aufgetreten.
    WebserverBasics-WPF.vshost.exe Information: 0 : Request for URI="http://localhost:8181/Kinect/default/stream", client="::1" completed with result: 403

    Thank you for your answers!


    Sunday, February 1, 2015 11:17 AM

All replies

  • Are you running the sample from the SDK Toolkit Browser or did you compile the sample? If compiled, how did you create the project(did you click the "Install" button to create a new project folder on your drive that you have read/write access to?

    403 errors are an access issue which may be due to firewall/security settings or just permissions issues. Since the sample is build on .Net 4.5 websockets you may want to try a regular web sockets sample and see if you can get that to work. If so, copy the Kinect solution to the same folder and see if you can get the configuration correct.

    http://www.codeproject.com/Articles/617611/Using-WebSocket-in-NET-Part


    Carmine Sirignano - MSFT

    Monday, February 2, 2015 7:51 PM