我在ASP.NET应用程序中使用System.ServiceProcess.dll。我添加了一个引用,intellisense识别它。但是当我构建一个应用程序时,bin文件夹中没有System.ServiceProcess.dll,应用程序说它无法找到命名空间。可能有什么不对?我可以在IIS中使用这个DLL吗?
这就是我得到的:
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: CS0234: The type or namespace name 'ServiceProcess' does not exist in the namespace 'System' (are you missing an assembly reference?)
Source Error:
Line 5: using System.Diagnostics;
Line 6: using System.Linq;
Line 7: using System.ServiceProcess;
Line 8: using System.Web;
Line 9: using System.Web.UI;