Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Please correct before proceeding." - Web.config error

I attempted to launch a website project locally but received the below message in an error dialog:

Please correct before proceeding.(You might rename the current web.config and add a new one).

Typically this error is preceded by a general description of the cause, this one was not. Knowing odd, out-of-the-blue, problems such as these are typically related to corrupt IDE generated files. I tried deleting the .suo, .vssscc and other generated files from the solution and project directories but the problem continued.

like image 674
alan Avatar asked Dec 10 '15 14:12

alan


People also ask

How do I open Web config file in Visual Studio?

In Visual Studio 2017, right click in Project in Solution Explorer -> Add -> New Item -> Search for "config" -> Add Web Configuration File. This will add web. config in your project with default stuff. Thank you.

Where is Web config configuration file?

The Web. Config file is used to configure Oracle Web Application functionality. This file is typically installed in the c:\Inetput\wwwroot\WebApp directory.

How to enable detailed error information from web config file?

How to enable detailed error information from web.config file?Print 1 Locate the web.config file in the wwwroot directory of your web application. Edit it with your choice of editor. 2 Add following entries to your web.config file to disable generic errors and save the file. If these entries already... More ...

What is the web config file?

The web.config is a file that is read by IIS and the ASP.NET Core Module to configure an app hosted with IIS. In order to set up the ASP.NET Core Module correctly, the web.config file must be present at the content root path (typically the app base path) of the deployed app. This is the same location as the website physical path provided to IIS.

Why is my Web config file not opening in Visual Studio?

This issue came to me after merging some code in version control using RTC tools. When I saw whyoz answer I noticed that web.config wasn't opened anywhere. It could be RTC locking the file or something like this. So, I simply restarted Visual Studio and it became normal again. Show activity on this post.

What do the errors in the configuration file mean?

Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Unrecognized attribute 'targetFramework'.


2 Answers

This happened to me today after getting latest. I resolved by closing and reopening the solution, rebuild, then run. All is well...

like image 144
Kershaw Avatar answered Oct 20 '22 03:10

Kershaw


I actually resolved this by making sure the Web.config file wasn't an open document inside VS 2015. In other words, close the Web.config file wherever it might be open, and make sure your Team Explorer isn't causing any problems, like an unexpected change or staged change...rebuild the sln and run...

like image 26
whyoz Avatar answered Oct 20 '22 05:10

whyoz