Windows服务无法引用.dll的错误

项目中需要使用.NET开发Windows服务来检测MSMQ,但一直无法引用.dll(特别是.dll引用了其它的.dll),最后google找到了答案:

  • Every window service project, by default targets to .netClient version (which is not full version of .net and does not include the System.Web etc. This is atleast true with VS 2010) and the solution is to go to the project properties of Windows service and update the target frame work to .netFramework 4, instead of .net framework 4 client profile that should make your windows service to recognize your model project

posted @ 2012-12-19 15:29  阿土仔  阅读(1782)  评论(0编辑  收藏  举报