An Error Occured Creating The Configuration Section Handler
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of an error occurred creating the configuration section handler could not load type this site About Us Learn more about Stack Overflow the company Business Learn an error occurred creating the configuration section handler for loggingconfiguration more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question an error occurred creating the configuration section handler for usersettings 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 An an error occurred creating the configuration section handler for applicationsettings error occurred creating the configuration section handler up vote 3 down vote favorite 1 I have a dot.NET 4.0 web application with a custom section defined:
An Error Occurred Creating The Configuration Section Handler For Nlog
get the following exception: An error occurred creating the configuration section handler for registrations: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) (C:\...\web.config line 13) I'm also using Unity but don't know if that's in any way related to the error. Have you faced this error before? How can I fix it? Do I need to replace the IgnoreSectionHandler with something else? c# asp.net c#-4.0 web-config unity-container share|improve this question asked Apr 29 '13 at 17:55 JohnDoDo 1,14751538 add a comment| 2 Answers 2 active oldest votes up vote 5 down vote accepted You are missing the Namespace in the type attribute of your section in App.Config. Infact you dont need the full assembly info in there either. only the namespace is enough Updated 1 yourcustomconfigclass config =(yourcustomconfigclass)System.Configuration.ConfigurationManager.GetSection( "registrations"); and in config file only write share|improve this answer edited Apr 29 '13 at 18:25 answered Apr 29 '13 at 18:04 Shafqat Masood 1,849615 I just noticed that! Crap... fixed it and now I have System.Configuration.IgnoreSectionHandler, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089. I'm getting no error but the section co
here for a quick overview of the site Help Center Detailed answers to
An Error Occurred Creating The Configuration Section Handler For Entityframework
any questions you might have Meta Discuss the workings and an error occurred creating the configuration section handler for could not load file or assembly policies of this site About Us Learn more about Stack Overflow the company Business Learn more an error occurred creating the configuration section handler for log4net about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community http://stackoverflow.com/questions/16285169/an-error-occurred-creating-the-configuration-section-handler 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 for” - up vote 6 down vote favorite 1 We're getting an odd error in our Test environment with a http://stackoverflow.com/questions/16364173/an-error-occurred-creating-the-configuration-section-handler-for custom configuration section. This is for a Windows Service running on a Enterprise Server 2008 r2 64 bit with SQL Server 2008 in both dev and test environments. This section configures our shared code library to send email out to interested parties whenever an error is handled and published with code like this: catch(Exception ex) { ExceptionManager.Publish(ex); } The error specifics (full detail - names changed to preserve the innocent) 4
Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ&A http://www.codeproject.com/Questions/61214/Custom-configuration-sections-in-app-config Ask a Question View Unanswered Questions View All Questions... C# questions Linux questions ASP.NET questions SQL questions VB.NET questions discussionsforums All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI C# Free Tools an error Objective-C and Swift Database Hardware & Devices> System Admin Hosting and Servers Java .NET Framework Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam and Abuse Watch features Competitions News The Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library CodeProject Stuff communitylounge Who's Who Most Valuable creating the configuration Professionals The Lounge The Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics General Chinese Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ Custom configuration sections in app.config Rate this: Please Sign up or sign in to vote. See more: VB VB.NET I am trying to understand System.Configuration. I have been trying to use some examples of creating custom configuration sections in a VB.NET app. Not having much luck, so any help would be appreciated. Thanks, ed Posted is the error message I get: System.Configuration.ConfigurationErrorsException was unhandled BareMessage="An error occurred creating the configuration section handler for DeleteGroup/DeleteSection: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)" Filename="C:\Devel_NET\Test_Custom_App_Config\Test_Custom_App_Config\bin\Debug\Test_Custom_App_Config.vshost.exe.Config" Line=7 Message="An error occurred creating the configuration section handler for DeleteGroup/DeleteSection: The given assembly name or codebase was invalid. (Exception from HRESULT: 0