Property or indexer cannot be assigned to — it is read only

When trying to set up a property variable let’s say “Properties.Settings.Default.YcsoftwareDb = DbLocation.FileName” for example you may get the error message: “Property or indexer cannot be assigned to — it is read only”. To fix the issue make sure that the application scope of you settings variable is set to  “User” instead of “Application”

The crucial distinction between application-scope and user-scope settings is that user-scope settings are read/write at run time, and their values can be changed and saved in code. Application-scope settings are read only at run time. While they can be read, they cannot be written to. Settings with application scope can only be changed at design time, or by altering the settings file manually.”

Microsoft (http://msdn.microsoft.com/en-us/library/aa730869(VS.80).aspx)