CS0246: The type or namespace name could not be found
在服务器上部署子应用程序,应用程序在本地运行没有问题,一旦放到服务器上就会出错。此应用程序是vs2003开发的,后来又转化到vs2005的环境上,所以添加的web引用路径发生了变化。添加的web引用csidev,在其中有CrmService,在vs2003的开发环境中,路径为:using Crm_smForecast.csidev (Crm_smForecast是namespace),在vs2005的开发环境中,路径为:using csidev.
在服务器上运行出现如下的错误信息:
Server Error in '/' Application.
--------------------------------------------------------------------------------
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: CS0246: The type or namespace name 'CrmService' could not be found (are you missing a using directive or an assembly reference?)
using csidev;
Source Error:
Line 20: public partial class Change : System.Web.UI.Page
Line 21: {
Line 22: protected CrmService service;
如何解决?