Error when loading module content panel

Hello, I get this stacktrace when trying to load panel i backoffice. It’s in customers test environment. I have checked that file FieldExportAdmin of type ASP.NET User Control exists in that path on the server.

What to do?

Error when loading module content panel.

System.Web.HttpParseException (0x80004005): The file ‘/Site/CMS/Panels/FieldExportAdmin.ascx.cs’ does not exist. —> System.Web.HttpParseException (0x80004005): The file ‘/Site/CMS/Panels/FieldExportAdmin.ascx.cs’ does not exist. —> System.Web.HttpException (0x80004005): The file ‘/Site/CMS/Panels/FieldExportAdmin.ascx.cs’ does not exist.
at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
at System.Web.UI.TemplateParser.ProcessCodeFile(VirtualPath codeFileVirtualPath)
at System.Web.UI.TemplateParser.ProcessMainDirectiveAttribute(String deviceName, String name, String value, IDictionary parseData)
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.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.TemplateControl.LoadControl(VirtualPath virtualPath)
at ModulePanelContainer.Page_Init(Object sender, EventArgs e) in C:\SysData\vsts-agent2_work\1\s\Src\Web\Litium\Common\ModulePanelContainer.aspx.cs:line 81

Litium version: 6.2.1

Is both the file FieldExportAdmin.ascx and FieldExportAdmin.ascx.cs exists in the location? Is it a website or web application file (website will have the Codefile attribute and the web application will have the Codebehind attribute in the first line of the user control)?

Its a Web application.

No only FieldExportAdmin.ascx.

We publish the soultion via web deploy

The error message says that it missing the /Site/CMS/Panels/FieldExportAdmin.ascx.cs, with other word the Codefile. Ensure that your web user control have the attribute Codebehind and an FieldExportAdmin.ascx.Designer.cs file in your solution.

Worked, thank you.

Problem: it hade the codefile attribute not the codebehind attribute