Server Error in ‘/’ Application.
Parser Error
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 file or assembly ‘System.EnterpriseServices.Wrapper.dll’ or one of its dependencies. An attempt was made to load a program with an incorrect format.
Source Error:
Line 1: <%@ Application Codebehind=”Global.asax.cs” Inherits=”Premier.Global” Language=”C#” %>
Source File: /global.asax Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
One more thing. Whenever I try to install the System.EnterpriseServices.Wrapper.dll using gacutil command line tool it fails.
Make sure IIS is set to ‘Enable 32 bit applications’ in your particular application pool, if you use IIS
Make sure your project build properties are set to “Any CPU” in Visual Studio, if you use Visual Studio