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

时间:2011-05-08 14:57:11

标签: c# asp.net html5 websocket

我是ASP.NET的新手(在当天做了一些经典的ASP,但事情已经改变了!)并且需要获得浏览器的概念验证,使用websockets up与服务器通信和运行的。

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

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

我发现我需要将/ counter / Web中的Global.asax复制到/: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(阅读:AT ALL)来弄清楚:(

非常感谢任何帮助!

1 个答案:

答案 0 :(得分:0)

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