Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error starting Visual Studio 2017 - Error loading configuration file...IIS

This is not really a show stopper, but it is annoying. I recent switched from IIS Express to plain old IIS. Now when I start the debugger in Visual Studio I get the following error (my co-workers have had it for a long time, so it is not just me):

enter image description here

After you hit "OK" everything still debugs successfully. I have read a lot of articles that seem to suggest this is a privileges, but I have messed with privileges in the associated directories without being able to get rid of this. Any suggestions welcome.

I can show the contents of the config file at the lines specified, but I don't think that it the real issue.

Update

For those with the inability to see images clearly:

"The following error occured while getting connection string information from the configuration file." An error occurred loading a configuration file: Could not load file or assembly 'Microsoft.Configuration.ConfigurationBuilders.Azure, Version=1.0.0.0, Culture=Neutral' or one of its dependencies. The system cannot find the file specified. (C:\Users\me\Documents\myapp.web\myapp.Web\Web.config line 126)

like image 782
Stephen McCormick Avatar asked Jan 01 '26 21:01

Stephen McCormick


1 Answers

I encountered a very similar error dialog, and opened an issue in the ConfigBuilders GitHub repository. According to Stephen Molloy from the team, this is a known issue with no good workaround other than to install Microsoft.Configuration.ConfigurationBuilders.Base.dll and Microsoft.Configuration.ConfigurationBuilders.[Azure|Environment|etc.].dll in a "findable" location, such as the GAC or the Visual Studio installation directories.

like image 171
David Rubin Avatar answered Jan 03 '26 12:01

David Rubin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!