I am trying to install a Sitecore site on a QA server and I am getting a very strange error that I can't figure out. Basically what I did was first a clean install of Sitecore 8.1. I verified that was working. Then I simply copied all of our custom code in to the site. This includes all of our renderings, all of our custom DLLs and our custom config files. Sort of the normal stuff you would expect when deploying custom code for a Sitecore instance. Our site also has a custom Global.asax that inherits from some custom code of ours. So when I try to open up the site I see the following error:
Server Error in '/' Application.
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'MyProject.Web.Global'.
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="MyProject.Web.Global" Language="C#" %>
Source File: /global.asax Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34274
For some reason it seems like .NET can't find the assembly for my project which is definitely in the BIN folder like it should be. I have Googled this and found all kinds of solutions that just say things like "try re-copying all of your code". I have done that a number of times with no luck. I feel like I must be missing something very basic. Any ideas?