ASP.NET caching problems (parser and compiler error messages)
Versions:
n/a,
FAQ number:
56,
Old FAQ number: 1006
Q: ASP.NET caching problems (parser and compiler error messages).
A: In case you get one of the errors below you may have a caching problem, which means that there are cached assemblies that conflicts with the assembly you are trying to build.
- Parser Error Message: Could not load type 'development.Global'
- Compiler Error Message: CS1595: 'System.Collections.ArrayList' is defined in multiple places; using definition from 'c:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll'
- Compiler Error Message: CS1595: 'System.Runtime.CompilerServices.CompilerGlobalScopeAttribute' is defined in multiple places; using definition from 'c:\windows\microsoft.net\framework\v1.0.3705\mscorlib.dll'
To solve caching problems you need to delete all conflicting files (mainly dlls and exes) from the .Net Framework 1.0 caches. Here is how:
- Shut down IIS.
- Delete all cached project files in