An Error Occurred Creating The Configuration Section Handler For Applicationsettings
Contents |
here for a quick overview of the site Help Center an error occurred creating the configuration section handler for application settings Detailed answers to any questions you might have Meta an error occurred creating the configuration section handler for usersettings Discuss the workings and policies of this site About Us Learn more about Stack Overflow an error occurred creating the configuration section handler could not load type the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x an error occurred creating the configuration section handler for loggingconfiguration Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up An error occurred creating the configuration section handler error in .NET 4.5 up vote 2 down vote favorite
An Error Occurred Creating The Configuration Section Handler For Nlog
1 I have a problem... nobody else can help so I wonder if anybody here can? I have a web service project (originally in .NET 2.0 but upgraded to .NET 4.5) which was working perfectly this morning. I also have a Winforms project which connects to the web services. When building the Winforms app, the build is successful, when running it, I get the error: An error occurred creating the configuration section handler for applicationSettings/Windows.Main.Properties.Settings: Could not load file or assembly 'Application, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. I have looked through SO and other sites but cannot find anything specific that shows the cause of this error. I've tried downgrading the .NET Frameworks and upgrading them again - everything is running on 4.5 - but this fails on: [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.WebServiceUrl)] [global::System.Configuration.DefaultSettingValueAttribute("ht
here for a quick overview of
An Error Occurred Creating The Configuration Section Handler For Entityframework
the site Help Center Detailed answers to any questions an error occurred creating the configuration section handler for could not load file or assembly you might have Meta Discuss the workings and policies of this site About Us an error occurred creating the configuration section handler for log4net Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs http://stackoverflow.com/questions/16544267/an-error-occurred-creating-the-configuration-section-handler-error-in-net-4-5 Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Visual Studio 2010: Properties.Settings broken after retargetting http://stackoverflow.com/questions/8141424/visual-studio-2010-properties-settings-broken-after-retargetting-project-to-ne project to .NET Framework 3.5 up vote 3 down vote favorite 1 i've changed a project to target .NET Framework 3.5 rather than .NET Framework 4. The project now crashes whenever i try to access settings: Settings.Designer.cs: return ((global::System.Drawing.Font)(this["DefaultFont"])); With the exception on `global::System.Drawing.Font)(this["DefaultFont"])); An error occurred creating the configuration section handler for applicationSettings/GrobManagementSystem.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:\Develop\Contoso\GrobFrobberemphasized text\GrobManagementSystem\GrobManagementSystem\bin\Debug\GrobManagementSystem.vshost.exe.config line 8) The problem is that the MyApp.exe.config contains references to .NET Framework 4.0 (4.0.0.0):
(build key Build Key[Microsoft.Practices.EnterpriseLibrary.Data.Database, null]) failed: The value can not be null or an empty string. (Strategy type ConfiguredObjectStrategy, index2) » An error occurred creating the configuration section, ‘Microsoft.Practices.EnterpriseLibrary,The located assembly's manifest definition does not match the assemblyreference January 5, 2009 by chiragrdarji Today I was exploring Enterprise Library 4.1 and encounter this error. I created a sample application and added reference to few DLL from "EntLib41Src\bin" folder to my application. When I hit F5 to run the application I got following error, "An error occurred creating the configuration section handler for exceptionHandling: Could not load file or assembly ‘Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)" While searching for the reason I found a link here. According to this link assemblies in "EntLib41Src\bin" folders are not strong name assemblies. So when you run the application you will encounter error as shown above. While "Program Files\Microsoft Enterprise Library 4.1 - October 2008\Bin" folder contains strong name assemblies. You have to add reference from "Program Files\Microsoft Enterprise Library 4.1 - October 2008\Bin" folder in your application. Happy Programming !!! Rate this:Like this:Like Loading... Related Posted in DotNet 3.0, Techincal | 14 Comments 14 Responses on January 14, 2009 at 9:53 am | Reply Dipankar Biswas Thanks for sharing. on February 5, 2009 at 1:07 pm | Reply Brindesh Thanks mate.. This post really helpful to me.. Thanks a lot. on November 13, 2009 at 7:18 am | Reply Strikingknife Wow man, you are simple superb on January 26, 2010 at 8:56 pm | Reply Francois Desrosiers Seriously you ROCK ! I just lost 3 hours in this problem ! And once again i don't understa