"The configuration is read only" error

A place for Ventity software questions & answers
Post Reply
anthonybritto
Junior Member
Posts: 5
Joined: Tue Oct 29, 2019 8:23 am
Vensim version: Ventity

"The configuration is read only" error

Post by anthonybritto »

So I'm just getting started with Ventity. I followed the first "Pasture" tutorial until the point where we run the model. When I hit "run" however, I get the following error message: "The configuration is read only". I've pasted the error log below, and attached my exercise file. Any help on fixing this issue is much appreciated!

Product: Ventity
Version: 1.0.0.0

Assembly Name Assembly Version
Anonymously Hosted DynamicMethods Assembly 0.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
Antlr4.Runtime 4.6.0.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
AssemblyLoader4x64 2.1.6.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.DLL
DevExpress.Charts.v19.1.Core 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.Data.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.Images.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.Utils.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.XtraBars.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.XtraCharts.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.XtraEditors.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.XtraTreeList.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.XtraVerticalGrid.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
Infralution.Licensing.Forms 6.2.0.0 file:///C:/Program%20Files/Ventity/Infralution.Licensing.Forms.DLL
mscorlib 4.0.0.0 file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
Northwoods.Go 5.1.0.45 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
PresentationCore 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
PresentationFramework 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
System 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
System.ComponentModel.DataAnnotations 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
System.Configuration 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Core 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
System.Data 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
System.Data.DataSetExtensions 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll
System.Data.Linq 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Linq.dll
System.Drawing 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Numerics 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
System.Windows.Forms 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System.Windows.Forms.DataVisualization 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll
System.Xaml 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
System.Xml 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
System.Xml.Linq 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
VE_Primitives 1.0.0.0 file:///C:/Program%20Files/Ventity/VE_Primitives.DLL
VE_RuntimeManager 0.9.7219.33535 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
Ventity 1.0.7219.33554 file:///C:/Program%20Files/Ventity/Ventity.exe
Ventity 1.0.7219.33542 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
VentityGlobals 1.0.0.0 file:///C:/Program%20Files/Ventity/VentityGlobals.DLL
VentityImpl 1.0.0.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
VentityMainForm 1.0.0.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
VentityModel 1.0.0.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
VentityRuntimeFunctions 1.0.0.0 file:///C:/Program%20Files/Ventity/VentityRuntimeFunctions.DLL
VenUtils 1.0.0.0 file:///C:/Program%20Files/Ventity/VenUtils.DLL
WindowsBase 4.0.0.0 file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll


--------------------------------------------------------------------------------
Level 0 Exception
--------------------------------------------------------------------------------
TYPE : ConfigurationErrorsException
MESSAGE : The configuration is read only.
SOURCE : System.Configuration
METHOD : SetPropertyValue
STACK TRACE : at System.Configuration.ConfigurationElement.SetPropertyValue(ConfigurationProperty prop, Object value, Boolean ignoreLocks)
at VE_RuntimeManager.RuntimeManager.CreateRunTask(RuntimeContext runtimeContext, IRuntimeAdapter adapter, IModelRunConfig modelRunConfig, Boolean baseRun)
at VE_RuntimeManager.RuntimeManager.<CreateRunTasks>d__13.MoveNext()
at VE_RuntimeManager.RuntimeManager.<Run>d__10.MoveNext()
at VentityMainForm.AppMainForm.<>c__DisplayClass400_0.<RunModel_new>b__2()
*** this is probably indicative of the original error ***
Attachments
Exercise_1.vmdl
(2.92 KiB) Downloaded 698 times
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: "The configuration is read only" error

Post by tomfid »

This could be an operating system lockdown of the config file. Are you running the latest 3.0.3?
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: "The configuration is read only" error

Post by tomfid »

Sorry - 3.0.2 (3.0.3 is internal).
anthonybritto
Junior Member
Posts: 5
Joined: Tue Oct 29, 2019 8:23 am
Vensim version: Ventity

Re: "The configuration is read only" error

Post by anthonybritto »

Hi, sorry for the delayed response. Yes, I am using version 3.0.2. After your comment I tried running the program as administrator and got the same error.
anthonybritto
Junior Member
Posts: 5
Joined: Tue Oct 29, 2019 8:23 am
Vensim version: Ventity

Re: "The configuration is read only" error

Post by anthonybritto »

I also just tried using Lockhunter to view which processes were using the locking the "Ventity" program folder, and it seems as though only Ventity itself is accessing the folder (see attachment).
Attachments
Capture.PNG
Capture.PNG (37.39 KiB) Viewed 14056 times
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: "The configuration is read only" error

Post by tomfid »

The problem is typically with %appdata%/Local/VentityConfig.xml.

I'll check with the programming team for other ideas.
anthonybritto
Junior Member
Posts: 5
Joined: Tue Oct 29, 2019 8:23 am
Vensim version: Ventity

Re: "The configuration is read only" error

Post by anthonybritto »

Thanks, Tom. It doesn't seem as though any processes are locking that file/folder. It also looks as though my account has the required read/write permissions.
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: "The configuration is read only" error

Post by tomfid »

OK ... another possibility is that the model is loading read-only.

What happens if you move the sample model to another place - maybe your Documents folder? Or, what if you create/run a new, empty model in a location where you're sure you have permissions?

(Sorry for snatching at straws here - these things are hard to diagnose.)
anthonybritto
Junior Member
Posts: 5
Joined: Tue Oct 29, 2019 8:23 am
Vensim version: Ventity

Re: "The configuration is read only" error

Post by anthonybritto »

I've tried the above with no success...I'm totally baffled. I've also tried reinstalling Venitity, and running the program as administrator.

Do ask if there's any information you need that might help you diagnose the problem. Thanks for your help!
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: "The configuration is read only" error

Post by tomfid »

Email us at info at ventity.biz and we'll get you fixed up with a new build that may solve the problem.
rob_n
Senior Member
Posts: 53
Joined: Thu Feb 22, 2018 6:12 pm
Vensim version: DSS

Re: "The configuration is read only" error

Post by rob_n »

I'm getting the same error. Just installed Version 3.0.2. Models that worked on previous versions now give the error. Just as an experiment, creating a brand new model with only one entity containing one stock also gives the error! Super frustrating. Debug info pasted below, as suggested.
====

Product: Ventity
Version: 1.0.0.0

Assembly Name Assembly Version
Accessibility 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
Anonymously Hosted DynamicMethods Assembly 0.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
Antlr4.Runtime 4.6.0.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
AssemblyLoader4x64 2.1.6.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.DLL
DevExpress.Charts.v19.1.Core 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.Data.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.Images.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.Utils.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.XtraBars.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.XtraCharts.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.XtraEditors.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.XtraGrid.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.XtraLayout.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.XtraTreeList.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
DevExpress.XtraVerticalGrid.v19.1 19.1.4.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
Infralution.Licensing.Forms 6.2.0.0 file:///C:/Program%20Files/Ventity/Infralution.Licensing.Forms.DLL
Microsoft.GeneratedCode 1.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
Microsoft.GeneratedCode 1.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
mscorlib 4.0.0.0 file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
Northwoods.Go 5.1.0.45 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
PresentationCore 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
PresentationFramework 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
ScintillaNET 3.0.1.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
System 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
System.ComponentModel.DataAnnotations 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
System.Configuration 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Core 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
System.Data 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
System.Data.DataSetExtensions 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll
System.Data.Linq 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Linq.dll
System.Drawing 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Numerics 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
System.Windows.Forms 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System.Windows.Forms.DataVisualization 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll
System.Xaml 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
System.Xml 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
System.Xml.Linq 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
UIAutomationClient 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationClient/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationClient.dll
UIAutomationTypes 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll
VE_Primitives 1.0.0.0 file:///C:/Program%20Files/Ventity/VE_Primitives.DLL
VE_RuntimeManager 0.9.7219.33535 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
Ventity 1.0.7219.33554 file:///C:/Program%20Files/Ventity/Ventity.exe
Ventity 1.0.7219.33542 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
VentityGlobals 1.0.0.0 file:///C:/Program%20Files/Ventity/VentityGlobals.DLL
VentityImpl 1.0.0.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
VentityMainForm 1.0.0.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
VentityModel 1.0.0.0 file:///C:/Program%20Files/Ventity/AssemblyLoader4x64.dll
VentityRuntimeFunctions 1.0.0.0 file:///C:/Program%20Files/Ventity/VentityRuntimeFunctions.DLL
VenUtils 1.0.0.0 file:///C:/Program%20Files/Ventity/VenUtils.DLL
WindowsBase 4.0.0.0 file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll


--------------------------------------------------------------------------------
Level 0 Exception
--------------------------------------------------------------------------------
TYPE : ConfigurationErrorsException
MESSAGE : The configuration is read only.
SOURCE : System.Configuration
METHOD : SetPropertyValue
STACK TRACE : at System.Configuration.ConfigurationElement.SetPropertyValue(ConfigurationProperty prop, Object value, Boolean ignoreLocks)
at VE_RuntimeManager.RuntimeManager.CreateRunTask(RuntimeContext runtimeContext, IRuntimeAdapter adapter, IModelRunConfig modelRunConfig, Boolean baseRun)
at VE_RuntimeManager.RuntimeManager.<CreateRunTasks>d__13.MoveNext()
at VE_RuntimeManager.RuntimeManager.<Run>d__10.MoveNext()
at VentityMainForm.AppMainForm.<>c__DisplayClass400_0.<RunModel_new>b__2()
*** this is probably indicative of the original error ***
rob_n
Senior Member
Posts: 53
Joined: Thu Feb 22, 2018 6:12 pm
Vensim version: DSS

Re: "The configuration is read only" error

Post by rob_n »

UPDATE
Installed (downgraded to) Version 3.0.1, but got the same error.
Installed (double downgraded to) Version 3.0.0 but got the same error again.

Happy to provide any other diagnostic info.
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: "The configuration is read only" error

Post by tomfid »

Installing the latest .NET framework solved the problem in at least 1 case:
Download: https://dotnet.microsoft.com/download/dotnet-framework
Check: https://docs.microsoft.com/en-us/dotnet ... -installed
tomfid
Administrator
Posts: 3806
Joined: Wed May 24, 2006 4:54 am

Re: "The configuration is read only" error

Post by tomfid »

If the .NET framework update doesn't work for you, email us at info at ventity.biz - we now have a build that removes the dependency. This will be in an official release soon.
Post Reply