My revised application runs fine in Debug mode, but when I try and Publish I get this error.

Researching this issue, I thought my problem was that the app_Global_asax.compiled and app_Global.asax.dll were not in the bin directory. I did get these files to generate by specifying Precompile in  my Publish options.

The category route is defined in the GeneralUrlRouteProvider.cs file.

How do I get around this error?