I had two FARMS. QA and PROD. Both are identical. 2 WFE / 2 APPSERVERS / 1 SQL BACKEND.
When (in QA) I browse an .aspx page it returns this error:
The attribute 'autoeventwireup' is not allowed in this page.
The same page in the other FARM (PRD) works fine. No error.
The page inside just have this:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RequestListDocumts.aspx.cs" Inherits="PMI.CMA.SitePages.UI.RequestListDocumts, PMI.CMA.SitePages.UI, Version=126.96.36.199, Culture=neutral, PublicKeyToken=e977370abbd36787"%>
in the web.config of this webApplication I have
<SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="15" TotalFileDependencies="50" AllowPageLevelTrace="false"> <PageParserPaths> <PageParserPath VirtualPath="/_catalogs/masterpage/*" CompilationMode="Always" AllowServerSideScript="true" /> </PageParserPaths> </SafeMode>
<SafeControl Assembly="PMI.CMA.SitePages.UI, Version=188.8.131.52, Culture=neutral, PublicKeyToken=e977370abbd36787" Namespace="PMI.CMA.SitePages" TypeName="*" Safe="True" SafeAgainstScript="False" />
The code of this, of course, is inside a DLL registered in the GAC.
So, I had spend a week reading and digging in this problem but I didnt have any luck.
Has someone had a similar issue? Or could anyone give me a hand to understand what is wrong?
I don't think is a code problem. The solution was deployed in both environment using the same version, and the same procedure using powershell scripts.
Many thanks in advance.!!! Cheers!