东哥技术专栏 - Coldwine's Blog

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

Compiler Error CS1595

While changing namespaces and filenames at the request of Zorka, I encountered this error and was dumbfounded.

CS1595: ‘Rock.QL.LearningModuleSystem.Web.Global’ is defined in multiple places; using definition from ‘c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\(appname)\635cd671\892ee1b4\assembly\dl2\6a156ae1\9942572e_7e46c501\(appname).DLL’

I found no duplicate global class, and fortunately Lyle stopped by and gave me some good advice:

Wipe out any files under
c:\windows\micrososft.net\framework\v1.1.4322\Temporary ASP.NET\
c:\documents and settings\(username)\vswebcache
c:\(program dir)\bin

Worked like a charm after I wiped out all three.

Apparently the old binaries from the previous namespace hangout and are referenced by Visual Studio until you delete them. Therefore I would get a “duplicate global” error no matter how many times I verified I only had one global.asax file.

posted on 2005-08-05 23:41  东哥技术专栏 - Coldwine's Blog  阅读(509)  评论(0编辑  收藏  举报