87

We upgraded from .NET 2.0 to .NET 3.5. A co-worker of mine is getting the following dialog when attempting to run the ASP .NET web project under the debugger in Visual Studio 2008. He can build fine, but he can't debug (hence, it's a run-time issue):

Microsoft Visual Studio

"The Extender Provider failed to return an Extender for this object. Please correct before proceeding. (You might rename the current web.config and add a new one.)"

OK

Searching on this error provided one hit that is in French, but Google translated, and the dude deleted his web.config. Well, my co-worker has a web.config.

Thanks!

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
Dan7el
  • 1,995
  • 5
  • 24
  • 46

15 Answers15

205

I encountered the

The Extender Provider failed to return an Extender for this object.

message in a winforms designer window.

I'm aware that your question is about ASP.Net 3.5, but in my case I resolved it by:

  • Closing the solution in Visual Studio
  • Deleting the obj and bin directories from the problematic project.

When I reopened the solution the error no longer occurred in the designer.

UPDATE:

VS 2019, resolution still relevant

UPDATE:

VS 2022, resolution still relevant

Daniel Ballinger
  • 13,187
  • 11
  • 69
  • 96
  • 1
    Sounds good. Thanks for taking the time to answer this question. – Dan7el Aug 16 '11 at 19:41
  • Had the same problem with VS2012 today; this fixed it. Thanks! – 3Dave Aug 15 '13 at 16:21
  • Same problem when Sharepoint list definitions are shown as normal folders instead of sharepoint list definitions! Thanks for the answer!!! – Bernhard Sep 28 '15 at 13:42
  • 4
    I got the error in VS2015, for a WPF project. I tried to "Clean" the project, but that also did not work. Then I closed the solution (as Dan suggested), and after reopening I was able to Clean and then Run my project. – Gabe Halsmer Jun 22 '16 at 16:20
  • 1
    Same here for VS 2015 with a web project. Clean did not solve the problem, but closing VS and deleting the obj and bin folders worked. – Andreas Paulsson Jan 18 '17 at 20:19
  • This occured to me when deleting language-specific *.resx files from a Form. The solution above worked. – DeveloperExceptionError Sep 12 '18 at 10:01
  • 1
    Restarting the visual studio alone resolves the issues for me. Thanks. – Arun Prasad Sep 18 '18 at 11:04
  • I recently saw this in VS 2019 and was able to solve it by closing VS, deleting the .vs folder, then re-opening the solution. – santos Jul 15 '20 at 10:16
  • Worked me for me on vs2017 on a solution with two web projects – shai tibber Aug 28 '20 at 12:28
  • Worked for me as well, asp.net project in vs2019 – Derrick.X Jan 14 '21 at 05:34
  • Just to add to the order of operations that worked: I deleted the bin and obj directories in the Web service project to no avail then closed and re-opened Visual Studio 2019 and the error disappeared! I encountered this one last when I switched branches to merge in some changes from another branch and then switched back to that branch to run the solution again. – Sphynx Mar 30 '21 at 22:43
  • I got the error in vs2022. – Anders Lindén Feb 01 '22 at 09:22
  • Nice, VS2019, worked. – R-D Sep 22 '22 at 16:25
34

I solved it by just closing Visual Studio and opening it again. I was using Visual Studio 2015 Community Edition and didn't have to delete those folders.

UPDATE:

Helps with Visual Studio 2022 as well.

Luis Teijon
  • 4,769
  • 7
  • 36
  • 57
7

In my case run Visual Studio as administrator helped. My project uses local IIS and Studio needs Admin permissions to manage IIS.

Oleg M
  • 71
  • 1
  • 3
  • 1
    This was the solution for me too, for Visual Studio 2019, none of the others worked. Of course the new VS install didn't carry over the "Run as Administrator" setting on my VS2017 shortcut (which I had set years ago and totally forgotten about) – Matt Wanchap Sep 30 '19 at 23:34
6

None of the solutions above worked in VS2019 for me. What did work was deleting the ProjectName.csproj.user file and then reloading the project.

Smyrnian
  • 701
  • 9
  • 15
4

In Visual Studio 2019 I had several webservices in a solution failing to load with this error. In my case the error was caused because I had changed the port numbers in IIS for those web services meaning the port numbers in .csproj and/or csproj.user did not match IIS. As soon as I updated the .csproj port numbers to match IIS, the error went away.

Craig A
  • 1,368
  • 12
  • 11
2

VS2019 - restarting Visual Studio did the trick.

Juergen Riemer
  • 1,393
  • 2
  • 13
  • 29
1

I had this problem because a project used IIS and HTTPS, there was no https binding on the IIS, adding a HTTPS binding on the default website fixed the problem.

JDC
  • 1,569
  • 16
  • 33
1

I was also facing the same issue on the new branch checkout in VS 2019. I just did some changes in web.config and then did undo. it's weird but worked.

Vivek Nuna
  • 25,472
  • 25
  • 109
  • 197
1

Well in my case, I did following

  1. cleaned solution
  2. rebuilt solution
  3. Just opened Web.config in the editor

Launch the application and it worked for me.

Project type: ASP.Net MVC Framework: .Net Framework 4.5.2

SamirBhatt
  • 66
  • 6
0

In VSTO, you can't use the designer while debugging another VSTO app.

For example, if another VSTO debugging session is running and you try to invoke the Excel Designer on a different project, you'll get "The Extender Provider failed to return an Extender for this object". Stop debugging to free up the Designer.

Leo Gurdian
  • 2,109
  • 17
  • 20
0

I had this issue in Visual Studio 2015, the error kept persisting even after cleaning the project, restarting visual studio and restarting my pc.

What resolved it for me, was right-clicking the xaml file and choosing Open with... > XML Editor. It opened the file and the error didn't occur after that.

Marre
  • 31
  • 1
  • 7
0

For me none of the solutions above worked. I am using VS 2019. In my case, the repository had special characters in the name, so when cloned, the root folder had escaped characters in the name. The compiler could no longer match the file names. Updating the parent folder name and reopening VS fixed the issue.

The detailed error behind 'Extender Provider failed to return an Extender' was related to the inability to find the compiler targets in the path.

0

In my case I had deleted 'SSL' from the VS2017 C# project properties debug configuration build tab Conditional compilation symbols. Putting it back resolved the error. Apparently SSL require in Debug configuration (but not release).

0

I had the problem right now, and got help from this thread. It seems its related to web.config being formatted differently from what Visual Studio expects. It might be due to editing web.config on a mac, because when I opened web.config, it detected line breaks that were non-windows, and suggested to replace those. When with CRLF linefeeds. When i said yes to this and saved, the problem went away.

0

I am trying to upgrade the .Net framework 4.7.2 to 4.8 and Restarting Visual studio worked for me.

  • There must be some detailed information, and proper steps should have mentioned to solve the issue, this make no sense! – Shoaib Fareed Aug 16 '23 at 08:30