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.