繁体   English   中英

ASP.NET的新手需要帮助来配置wsaspnet websockets服务器

[英]newbie to ASP.NET need help configuring wsaspnet websockets server

我是ASP.NET的新手(以前有一些经典的ASP,但是我的情况发生了变化!),并且需要获得浏览器与运行中使用websockets与服务器通信的概念证明。 。

我下载了http://wsaspnet.codeplex.com/

我将其安装在本地IIS webroot中的一个名为“计数器”的目录中(计数器包含Web文件夹,WsTestClient和文件wsaspnet.sln)。

我发现我需要将Global.asax从/ counter / Web复制到/:p

当我访问http://localhost/counter/Web/Default.aspx时 ,出现以下错误:

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'WebSocks' does not exist in the current context
Source Error:
Line 4: void Application_Start(object sender, EventArgs e)
Line 5: {
Line 6:     WebSocks.WebSockServer.Start();
Line 7: }

我意识到这是因为服务器无法从文件/counter/Web/App_Code/WebSockServer.cs中找到定义了名称空间和对象的代码。

如何告诉服务器在哪里可以找到此代码? 我猜这很简单,但是我对ASP.NET的了解不够(阅读:一点也不了解):(

任何帮助将不胜感激!

我终于发现,Web文件夹中的所有内容都必须放在webroot中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM