Kinect和HTML5 - WebServer问题 [英] Kinect and HTML5 - WebServer Problem

查看:95
本文介绍了Kinect和HTML5 - WebServer问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我运行示例项目时为
(因为我不应该发布链接:https://msdn.microsoft.com/en-us/library/dn435689 .aspx)显示如何在Kinect和网页之间建立连接,拒绝Kinect流的请求( 403 )。
我没有改变任何东西,而且我完全停用了我的防火墙但是当样本页面试图从Kinect获取数据时我总是得到403错误(令人惊讶的是
状态可以请求但不是 strea m )。

我在Windows 8.1上工作并安装了Kinect SDK 1.8并将Kinect插入到USB 3端口(虽然我认为这应该不是问题,因为其他示例应用程序正在运行)

这是控制台输出:


WebserverBasics-WPF.vshost.exe信息:0:请求URI =" http:// localhost:8181 / Kinect / default / stream",client =" :: 1"完成结果:403

" WebserverBasics-WPF.vshost.exe" (Verwaltet(v4.0.30319)):"C:\ Windows \ Mysoftoft .Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a \ System.Web.dll" geladen

WebserverBasics-WPF.vshost.exe信息:0:请求URI =" http:// localhost:8181 / files / SamplePage.html",client =" :: 1"完成结果:200

WebserverBasics-WPF.vshost.exe信息:0:请求URI =" http:// localhost:8181 / files / Images / logo.png",client =" ; :: 1"完成结果:200

WebserverBasics-WPF.vshost.exe信息:0:请求URI =" http:// localhost:8181 / files / Kinect-1.8.0.css",client = QUOT; :: 1"完成结果:200

WebserverBasics-WPF.vshost.exe信息:0:请求URI =" http:// localhost:8181 / files / Kinect-1.8.0.js",client = QUOT; :: 1"完成结果:200

WebserverBasics-WPF.vshost.exe信息:0:请求URI =" http:// localhost:8181 / files / Images / beach.jpg",client =" ; :: 1"完成结果:200

WebserverBasics-WPF.vshost.exe信息:0:请求URI =" http:// localhost:8181 / Kinect / default / stream",client =": :1"完成结果:101

WebserverBasics-WPF.vshost.exe信息:0:请求URI =" http:// localhost:8181 / files / Images / fireworks.jpg",client =" ; :: 1"完成结果:200

WebserverBasics-WPF.vshost.exe信息:0:请求URI =" http:// localhost:8181 / Kinect / default / interaction / client",client =" ; :: 1"完成结果:101

WebserverBasics-WPF.vshost.exe信息:0:请求URI =" http:// localhost:8181 / files / Images / operahouse.jpg",client =" ; :: 1"完成结果:200

WebserverBasics-WPF.vshost.exe信息:0:请求URI =" http:// localhost:8181 / files / Images / hamlet.jpg",client =" ; :: 1"完成结果:200 zh?
" 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信息:0:请求URI =" http:// localhost:8181 / Kinect / default / state",client =" :: 1"完成结果:200

WebserverBasics-WPF.vshost.exe信息:0:请求URI =" http:// localhost:8181 / Kinect / default / events",client =": :1"完成结果:101

WebserverBasics-WPF.vshost.exe信息:0:请求URI =" http:// localhost:8181 / files / KinectWorker-1.8.0.js",client = QUOT; :: 1"完成结果:200

WebserverBasics-WPF.vshost.exe信息:0:请求URI =" http:// localhost:8181 / Kinect / default / state",client =": :1"完成结果:200¥
Eine Ausnahme(erste Chance)des Typs" System.UriFormatException" System.dll aufgetreten中的ist。
$
WebserverBasics-WPF.vshost.exe信息:0:请求URI =" http:// localhost:8181 / Kinect / default / stream",client =" ; :: 1"结果完成:403


感谢您的回答!

解决方案

您是从SDK Toolkit Browser运行示例还是编译样本?如果已编译,您是如何创建项目的(您是否单击了"安装"按钮在您的驱动器上创建了一个您具有读/写访问权限的新项目文件夹?


403错误是一个访问问题,可能是由于防火墙/安全设置或只是权限问题。由于示例是基于.Net 4.5 websockets构建的,您可能需要尝试常规的Web套接字示例,看看是否可以使其工作。如果是,将
Kinect解决方案复制到同一个文件夹,看看是否可以正确配置。


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


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!

解决方案

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


这篇关于Kinect和HTML5 - WebServer问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆