[英]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.