在我的應用程序中,我使用的用戶設置爲here。 然後我意識到在VS 2010中我使用.NET 4.0,而只有.NET 2.0就足夠了。更改項目的目標框架後的應用程序設置錯誤
當我改變了框架,並建立工程,在我的代碼,每當我訪問現在設置,我得到以下錯誤:
An error occurred creating the configuration section handler for userSettings/Vegi_Manager.Properties.Settings: Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. (C:\Users\AKSHAY\AppData\Local\Microsoft\Vegi-Manager.vshost.exe_Url_44035dlkzpfaaauiqsd4nh3f0l0yq0tv\1.0.0.0\user.config line 5)
它是使用4.0版本,原因不明。 請建議我該怎麼做。
我有這在我的app.config中:sectionGroup name =「userSettings」type =「System.Configuration.UserSettingsGroup,System,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089」 –
@ V4Vendetta我已更改爲版本2,如果我改變2它顯示無法加載文件或程序集'系統,版本= 2.0.0.0,文化=中立,PublicKeyToken = b77a5c561934e089'我該如何解決這個問題。 – Manoj