Compiling an ASP.Net website using aspnet_compiler.exe fails with error: /global.asax(1): error ASPPARSE: Could not load type 'namespace.className'.
I have followed all the usual recommendations to fix similar issues and it fails the same way every time:
- Check the references, I think all the referenced dlls are present.
- This is content of the global.asax file: <%@ Application Codebehind="Global.asax.cs" Inherits="namespace.className" Language="C#" %>
- Clean and rebuild
I have also made sure that the global.asax and global.asax.cs -where the class is defined- are in the folder where I am trying to precompile the website using aspnet_compiler.exe.
This is the command line I am using:
path_to_asnet_compiler.exe\aspnet_compiler.exe -v / -p correct_path_to_compiled_the_website_project -f -c output_path\binTemp
Any help is appreciated.