could not parse the configuration file. the error message is
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 this site About Us Learn more about Stack Overflow the company Business Learn more 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 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 “Could not parse configuration file…” when I add EF6 to a solution up vote 4 down vote favorite 1 I get an error when I add EF6 to a solution. I think it also happens when I update the model from the database. The error shows up in the Output window right after I add EF: "Could not parse the configuration file. The error message is: 'Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))' Try editing the file manually and then saving it." The "error" doesn't seem to have any influence on the compiling or running of the application (or the function of EF). However, an error like this is always disturbing when it's with the technology that is supposed to be the linchpin of your data management strategy. entity-framework share|improve this question asked Oct 5 '14 at 21:43 Intensivist 13111 1 +1 I have started to see that exact same message in our VS2013 solution the past few days. Not sure yet what causes it. Also, it does not have any influence (yet) at compile, debug or runtime. –Thomas Oct 29 '14 at 8:10 I have better repro'd the error. Open the solution with VS Open the *.edmx in the designer (double click on file from solution explorer) Click on the white space anywhere on the designer's surface The error appears in the Output. If I clear the Output, I can compile, run, close *.edmx, re-open *.edmx, all without error. It seems this occurs only when I open VS, then the *.edmx, then click on the designer surface the first time. If I never open the *.edmx in the designer of VS, I never see the error in the Output window. –Intensivist Nov 3 '14 at 18:34 add a comment| 1 Answer 1 active oldest votes up vote 7 down vote accepted I believe that I have discovered the problem. I can repro it on my development machine and a couple of other dev machines. I am using VS 2013. The solution that I was using included a second project, a setup/deployment project, InstallShield Limited Edition Project. If I remove that project, the errors go away. If I create a new project, add EF via Nuget, add an EF model to
SQL Server 2014 Express resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers Retired content Samples We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: "Could not parse the configuration file..." when adding or updating to a model in EF 6 Data Platform Development > ADO.NET Entity Framework and LINQ to Entities Question 0 Sign in to vote I get an error when I add EF6 to a solution or add/update the model. I am using Database First approach. The error http://stackoverflow.com/questions/26207518/could-not-parse-configuration-file-when-i-add-ef6-to-a-solution shows up in the Output window right after I add EF or add/update the model: "Could not parse the configuration file. The error message is: 'Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))' Try editing the file manually and then saving it." The "error" doesn't seem to have any influence on the compiling or running of the application (or the function of EF). However, an error like this is always disturbing when it's with the technology that is supposed to be https://social.msdn.microsoft.com/Forums/en-US/01249206-c81f-4300-95be-c637603fe94e/could-not-parse-the-configuration-file-when-adding-or-updating-to-a-model-in-ef-6?forum=adodotnetentityframework the linchpin of your data management strategy. Michael Friday, October 31, 2014 1:31 PM Reply | Quote Answers 0 Sign in to vote I believe that I have discovered the problem. I can repro it on my development machine and a couple of other dev machines. I am using VS 2013. The solution that I was using included a second project, a setup/deployment project, InstallShield Limited Edition Project. If I remove that project, the errors go away. If I create a new project, add EF via Nuget, add an EF model to the solution and then add this setup project I can repro the error. If you try it yourself, just remember you need to open VS and the solution, open the model in the designer, click anywhere in the whitespace of the design surface, the error should pop up in the Output. The details are up there in an earlier post.Michael Marked as answer by Michael Hockstein Thursday, November 06, 2014 12:56 PM Tuesday, November 04, 2014 2:42 PM Reply | Quote All replies 0 Sign in to vote Maybe the config file is in some kind of a protected state, like the file is not checked-out with something like TFS has the file checked-in to its repository, and the file is read-only on the harddrive. Friday, October 31, 2014 6:27 PM Reply | Quote 0 Sign in to vote Well, I don't use TFS, the app i
This Site Careers Other all forums Forum: Object Relational Mapping Could not parse configuration: /hibernate.cfg.xml Leonardo Terrao Greenhorn Posts: 15 posted 4 years ago Hi all, I know little about hibernate, and then decided to explore this framework and came across an error! Could anyone help me? My application is returning me the following error: 16 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.3.1.GA 16 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found 32 [main] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist 32 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling 63 [main] INFO org.hibernate.cfg.Configuration - configuring from resource: /hibernate.cfg.xml 63 [main] INFO org.hibernate.cfg.Configuration - Configuration resource: /hibernate.cfg.xml Session startup failed org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml Exception in thread "main" java.lang.ExceptionInInitializerError at br.virtual.leo.util.HibernateUtil.