Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

LanguageManager alters Web.config causing ConfigurationErrorsException:The configuration file has been changed by another program

Vote:
 

LanguageManager seems to alter Web.config causing ConfigurationErrorsException:The configuration file has been changed by another program.

So what happens is that after deploying to my testing environment, I get an error stating the Episerver.Languagemanager.config has been changed by another program. After that error, I get the same error for the Web.config. I've got not idea what is causing this. 

I've tried adding the next thing to the web.config since we are using Azure. But that didn't help.

    <>add key="episerver:ReadOnlyConfigurationAPI" value="true" />

The errors are down below:

Error 1:

System.Web.HttpException (0x80004005): Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper'. ---> Newtonsoft.Json.JsonSerializationException: Error getting value from 'RestrictedTypes' on 'EPiServer.Labs.LanguageManager.LanguageManagerModuleViewModel'. ---> System.Configuration.ConfigurationErrorsException: The configuration file has been changed by another program. (D:\home\site\wwwroot\Modules\_Protected\EPiServer.Labs.LanguageManager\EPiServer.LanguageManager.config)  
 at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)  
 at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)  
 at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)  
 at EPiServer.Labs.LanguageManager.Configuration.LanguageManagerSection.get_Instance()  
 at EPiServer.Labs.LanguageManager.Configuration.LanguageManagerConfig.get_RestrictedTypes()  
 at EPiServer.Labs.LanguageManager.LanguageManagerModuleViewModel.get_RestrictedTypes()  
 at GetRestrictedTypes(Object )  
 at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)   --- End of inner exception stack trace ---  
 at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)  
 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue)  
 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)  
 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)  
 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)  
 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty)  
 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)  
 at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)  
 at EPiServer.Framework.Serialization.Json.Internal.JsonObjectSerializer.Serialize(TextWriter textWriter, Object value)  
 at EPiServer.Shell.Web.Mvc.Html.ScriptExtensions.SerializeObject(HtmlHelper html, Object value, String contentType)  
 at ASP.episerver_shell_views_shared_bootstrapper_aspx.__Render__control5(HtmlTextWriter __w, Control parameterContainer) in http://server/EPiServer/Shell/Views/Shared/Bootstrapper.aspx:line 58  
 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)  
 at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)  
 at System.Web.UI.Control.Render(HtmlTextWriter writer)  
 at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)  
 at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)  
 at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)  
 at ASP.episerver_shell_views_shared_sleek_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in http://server/EPiServer/Shell/Views/Shared/Sleek.Master:line 30  
 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)  
 at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)  
 at System.Web.UI.Control.Render(HtmlTextWriter writer)  
 at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)  
 at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)  
 at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)  
 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)  
 at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)  
 at System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer)  
 at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)  
 at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)  
 at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)  
 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.ProcessRequestWithNoAssert(HttpContext context)  
 at System.Web.UI.Page.ProcessRequest(HttpContext context)  
 at System.Web.Mvc.ViewPage.ProcessRequest(HttpContext context)  
 at ASP.episerver_shell_views_shared_bootstrapper_aspx.ProcessRequest(HttpContext context) in d:\local\Temporary ASP.NET Files\root\ee81deae\b94abb82\App_Web_cwgnn0gw.0.cs:line 0  
 at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.<>c__DisplayClass1.b__0()  
 at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.<>c__DisplayClass4.b__3()  
 at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap[TResult](Func`1 func)  
 at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap(Action action)  
 at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.ProcessRequest(HttpContext context)  
 at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)  
 at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)  
 at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage)  
 at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)  
 at System.Web.HttpServerUtilityWrapper.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)  
 at System.Web.Mvc.ViewPage.RenderView(ViewContext viewContext)  
 at System.Web.Mvc.WebFormView.RenderViewPage(ViewContext context, ViewPage page)  
 at System.Web.Mvc.WebFormView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)  
 at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)  
 at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)  
 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)  
 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)  
 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)  
 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)  
 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)  
 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)  
 at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)  
 at System.Web.Mvc.Controller.ExecuteCore()  
 at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)  
 at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext)  
 at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.ProcessController(IController controller)  
 at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)  
 at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state)  
 at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  
 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  
 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Error 2:

System.Web.HttpException (0x80004005): Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper'. ---> System.Configuration.ConfigurationErrorsException: The configuration file has been changed by another program. (D:\home\site\wwwroot\web.config)  
 at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)  
 at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)  
 at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)  
 at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)  
 at System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName)  
 at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)  
 at System.Web.Configuration.RuntimeConfig.get_Authorization()  
 at System.Web.Security.UrlAuthorizationModule.CheckUrlAccessForPrincipal(String virtualPath, IPrincipal user, String verb)  
 at EPiServer.Security.PrincipalInfo.HasPathAccess(String path)  
 at EPiServer.Cms.Shell.UI.Internal.CmsMenuProvider.<>c.b__7_2(RequestContext request)  
 at EPiServer.Shell.Navigation.MenuNode.Render(TextWriter writer, RequestContext request)  
 at EPiServer.Shell.Navigation.MenuNode.Render(TextWriter writer, RequestContext request)  
 at EPiServer.Shell.Navigation.MenuBuilder.Render(TextWriter writer, String startPath, String selectionPath)  
 at EPiServer.Shell.Navigation.MenuBuilder.GetMenu(String startPath, String selectionPath)  
 at EPiServer.Shell.Navigation.MenuHelper.ShellMenu(String path, String selectionPath)  
 at EPiServer.Shell.Navigation.MenuHelper.CreateGlobalMenu(String path, String selectionPath)  
 at EPiServer.Shell.Navigation.MenuHelper.GlobalMenu(HtmlHelper htmlHelper)  
 at ASP.episerver_shell_views_shared_bootstrapper_aspx.__Render__control4(HtmlTextWriter __w, Control parameterContainer) in http://server/EPiServer/Shell/Views/Shared/Bootstrapper.aspx:line 29  
 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)  
 at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)  
 at System.Web.UI.Control.Render(HtmlTextWriter writer)  
 at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)  
 at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)  
 at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)  
 at ASP.episerver_shell_views_shared_sleek_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in http://server/EPiServer/Shell/Views/Shared/Sleek.Master:line 22  
 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)  
 at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)  
 at System.Web.UI.Control.Render(HtmlTextWriter writer)  
 at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)  
 at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)  
 at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)  
 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)  
 at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)  
 at System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer)  
 at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)  
 at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)  
 at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)  
 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.ProcessRequestWithNoAssert(HttpContext context)  
 at System.Web.UI.Page.ProcessRequest(HttpContext context)  
 at System.Web.Mvc.ViewPage.ProcessRequest(HttpContext context)  
 at ASP.episerver_shell_views_shared_bootstrapper_aspx.ProcessRequest(HttpContext context) in d:\local\Temporary ASP.NET Files\root\ee81deae\b94abb82\App_Web_a10igp3h.0.cs:line 0  
 at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.<>c__DisplayClass1.b__0()  
 at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.<>c__DisplayClass4.b__3()  
 at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap[TResult](Func`1 func)  
 at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap(Action action)  
 at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.ProcessRequest(HttpContext context)  
 at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)  
 at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)  
 at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage)  
 at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)  
 at System.Web.HttpServerUtilityWrapper.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)  
 at System.Web.Mvc.ViewPage.RenderView(ViewContext viewContext)  
 at System.Web.Mvc.WebFormView.RenderViewPage(ViewContext context, ViewPage page)  
 at System.Web.Mvc.WebFormView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)  
 at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)  
 at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)  
 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)  
 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)  
 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)  
 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)  
 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)  
 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)  
 at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)  
 at System.Web.Mvc.Controller.ExecuteCore()  
 at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)  
 at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext)  
 at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.ProcessController(IController controller)  
 at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)  
 at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state)  
 at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  
 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  
 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

[Pasting files is not allowed]

#180267
Jul 04, 2017 16:48
Vote:
 

The LanguageManager will not change your web.config. What happen if you restart the site or clear ASP.NET cache in [C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files] (correct the path to fit your env)?

#180289
Jul 05, 2017 11:32
Vote:
 

Hey Dac,

Thanks for answering.

When I restart it works for a while and after that is gives this error again. I tried deleting the languagemanager completely but that didn't help either so Languagemanager does not seem to be the problem.
It seems as though it has something to do with an issue of Azure. It look similar to this on Stackoverflow. The settings that are posed as the answer did not work for me.

#180293
Jul 05, 2017 12:57
Vote:
 

Hi Lindy, your problem looks similar to https://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=179961, probably you tried to set app settings in web.config instead of azure portal like me :)

#180590
Jul 14, 2017 15:25
Vote:
 

I have experience from you
Not a bad course
thank you

Friv1000 | Friv100 | Friv3 | Friv1

#181440
Edited, Aug 19, 2017 18:22
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.