Many of you use Subversion as your version control system. I’ve been working on setting up a copy of svnquery, which is basically a search engine for your repository. If you download the compiled version, you may run into this particular ASP.NET error:
The file '/svnquery/Query.aspx' has not been pre-compiled, and cannot be requested.
After trying many many things to solve this problem, I finally figured out that the compiled version that you download from the project website is compiled as 32-bit. And when you try to run it on 64-bit Windows Server 2008, you will run into this problem.
If you have admin access to the web server, then the easiest solution is to turn on 32-bit compatibility mode. This is done by opening up a command prompt and running this command:
%windir%\system32\inetsrv\appcmd set config -section:applicationPools -applicationPoolDefaults.enable32BitAppOnWin64:true
Enabling 32-bit mode allows worker processes to run in 32-bit or 64-bit mode independent of each other on the same server.