2011-04-05 110 views
2

我有一个Silverlight 4类库,我试图使用HttpListener和关联类型(HttpListenerContext,HttpListenerException,HttpUtility等)。在Silverlight 4类库中使用HttpListener

然而,VS2010由于某种原因,一直给我下面的错误:

Error 84 The type or namespace name 'HttpListener' could not be found (are you missing a using directive or an assembly reference?)

我看着在项目的引用窗口参考(点击右键,查看在对象浏览器),它似乎在被拉动系统[2.0.5.0]。该程序集实际上不包含这些类型的定义(它已安装到%ProgramFiles%\ Reference Assemblies \ Microsoft \ Framework \ Silverlight \ 4.0 \ system.dll)。这是否意味着我不能使用这些类型,或者我只是在引用程序集时做了些愚蠢的事情?

谢谢!

回答