Discussions
Where is ImpersonationStatus in 20.2.65?
We are migrating from 20.2.1.235 to 20.2.65 and found a problem with one of our login pages. Everything is moved over to the new server, but the login fails with an event log message of:
The Server/Windows Event Log records the following:
Event code: 3006
Event message: A parser error has occurred.
Event time: 9/11/2019 12:32:13 PM
Event time (UTC): 9/11/2019 5:32:13 PM
Event ID: 9aeaec3e7aab449fadd1263236ec27b7
Event sequence: 124
Event occurrence: 1
Event detail code: 0Application information:
Application domain: /LM/W3SVC/1/ROOT/iMIS-6-132126907419388639
Trust level: Full
Application Virtual Path: /iMIS
Application Path: C:\Program Files (x86)\ASI\iMIS\net\
Machine name: JBV-TST-IMIS-16Process information:
Process ID: 5116
Process name: w3wp.exe
Account name: IIS APPPOOL\iMISApp1Exception information:
Exception type: HttpParseException
Exception message: Could not load type 'AsiCommon_Controls_Shared_Utility_ImpersonationStatus'.
at System.Web.UI.TemplateParser.ProcessException(Exception ex)
at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding >fileEncoding)
at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, >Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath >virtualPath)
at System.Web.UI.TemplateParser.ParseInternal()
at System.Web.UI.TemplateParser.Parse()
at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)
at System.Web.UI.Page.get_Master()
at Asi.Web.UI.DisplayPageBase.SetContext(Page currentPage)
at Asi.Web.UI.DisplayPageBase.OnPreInit(EventArgs e)
at System.Web.UI.Page.PerformPreInit()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)Could not load type 'AsiCommon_Controls_Shared_Utility_ImpersonationStatus'.
at System.Web.UI.TemplateParser.ProcessException(Exception ex)
at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)Could not load type 'AsiCommon_Controls_Shared_Utility_ImpersonationStatus'.
at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError)
at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly)
at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData)Request information:
Request URL: https://testserver.local:443/iMIS/info/Default.aspx?WebsiteKey=1536cf53-b596-473e-900a-2f4c1d382ddb&hkey=0d1edfcc-57fd-40dc-98d1-cae8658d763f
Request path: /iMIS/info/Default.aspx
User host address: 10.72.xxx.xxx
User: AOCCIS
Is authenticated: True
Authentication Type: Application
Thread account name: IIS APPPOOL\iMISApp1Thread information:
Thread ID: 94
Thread account name: IIS APPPOOL\iMISApp1
Is impersonating: False
The key missing piece appears to be 'AsiCommon_Controls_Shared_Utility_ImpersonationStatus'. There is an ImpersonationStatus.ascx file in the AsiCommon/Controls/Shared/Utility folder. Directory searches confirm that there is no associated “ascx.cs” file nor is there an obviously related “.dll” file in the iMIS/bin folder or any other beneath iMIS. The page is managed through RiSE->Manage Content and consists of a panel with 3 controls; a NewContactSignInCommon, a LoginError, and a blank appearing control called AuthScript. There is no explicit callout to anything called ImpersonationStatus.
Tracing backwards through the *.ascx files leads to references to "ciAuthScript_fea5da7d4d9e48bc8e1153560d0a82a5", "Asi.Bae.Web.PageAccessValidationWebUserControl", and "PageAccessValidationWebUserControl.ascx.cs" none of which are found in searches. I suspect the ContentItemKey Guid has changed but I cannot find the AuthScript control anywhere within iMIS to verify.
We need this page to work, along with all of its related pages. Any assistance in locating the missing references would be greatly appreciated!