c# - Targeting propertry settings to .net 3.5 throws error -
i converted 1 of project made .net framework 4.5 3.5(vs2013 ide) make compatible windows xp os.
issues:
project loads set of values 'project.property.settings @ onload event , throws error:
an unhandled exception of type 'system.configuration.configurationerrorsexception' occurred in system.configuration.dll additional information: error occurred creating configuration section handler usersettings/installer.properties.settings: not load file or assembly 'system, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089' or 1 of dependencies. system cannot find file specified. innerexception: when using relative path, make sure current directory correct. innerexception:verify file exists in specified location
i search web regarding problem nothing works in project , changed version 3.5.0.0 in app.config file.
app.config file
<configuration> <configsections> <sectiongroup name="usersettings" type="system.configuration.usersettingsgroup, system, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"> <section name="installer.settings1" type="system.configuration.clientsettingssection, system, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089" allowexedefinition="machinetolocaluser" requirepermission="false"/> <section name="installer.properties.settings" type="system.configuration.clientsettingssection, system, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089" allowexedefinition="machinetolocaluser" requirepermission="false"/> </sectiongroup> </configsections>
program throws above error while executing following coding in settings.designer.cs
public string c0 { { return ((string)(this["c0"])); } set { this["c0"] = value; } }
Comments
Post a Comment