当我运行我的 ASP.net 应用程序时,我收到此错误:
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.
编译器错误消息:CS0234:命名空间“Microsoft”中不存在类型或命名空间名称“Exchange”(您是否缺少程序集引用?)
源错误:
Line 06: using System.Web.UI.WebControls;
Line 07: using System.Data.OleDb;
Line 08: using Microsoft.Exchange.WebServices.Data; // error
Line 09: using System.Net;
Line 10: using System.Data.SqlClient;
最佳答案
确保您的目标框架版本在您的解决方案的所有项目中匹配。我个人在 .NET Framework 4 Client Profile 方面遇到过问题。一旦我将它切换到 .NET Framework 4,它就起作用了。
关于c# - 命名空间中不存在类型或命名空间名称 'Exchange',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5442900/