After installing ArchiOffice/EngineerOffice or BillQuick Web Suite, the application fails to start. Users are getting the following server error when opening the application in a browser:
Server Error in ‘/WS2014’ Application
The value for the ‘compilerVersion’ attribute in the provider options must be ‘v4.0’ or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the ‘targetFramework’ attribute from the element of the Web.config file.
The application was likely configured as a child of a web application that uses an earlier version (3.5 or earlier) of.NET Framework.
Note: The above error appears only if you are running IIS 6. If running IIS 7 or 7.5, the error received is a configuration error and varies slightly from the one above.
The Web.config file should be changed. Resolving this issue also depends on which version of IIS the application is running on. First determine which version of IIS you are using and then properly modify the Web.config file by doing the following:
1. In the parent application root folder, find the Web.config file and open it in Notepad.
2. For BillQuick Web Suite, find the parent application that WS20xx is under. If this was a default installation, this would be “Default Web Site”.
3. Right-click and select Explore or Open. This will take you to the root folder of the parent application selected.
4. Find the Web.config file and open it in Notepad using an Elevated Windows Administrator Account.
All versions of IIS
The following step is required if the ASP.NET 4 application is running on IIS 6, 7 or 7.5.
1. Add a location element (tag) in the Web.config file of the parent web application that is running ASP.NET 2 or ASP.NET 3.5.
2. The tag should explicitly state (for both the IIS and ASP.NET configuration systems) that the configuration entries apply only to the parent web application. The following syntax can be used for the location tag to add:
Use the location tag to wrap all configuration sections starting with the appSettings section and ending with system.webServer section. Here is sample syntax:
Note: These repair instructions are from the ASP.Net whitepaper located at: http://www.asp.net/whitepapers/aspnet4/breaking-changes#0.1__Toc256770150
The instructions explained here do not use all of the steps described in the link to resolve the issue. In certain situations, this might work or you may need to perform all of the steps mentioned to resolve the issue on your IIS installation.