The extension name ‘enableWebScript’ is not registered error

While deploying a project I am working on that contain an AJAX enabled WCF service, I got the following error:

Invalid element in configuration. The extension name ‘enableWebScript’ is not registered in the collection at system.serviceModel/extensions/behaviorExtensions.

After hours of searching, it turned out to be that when you run the wcf uninstall command as shown below, it removes with the configurations from the machine.config.

servicemodelreg.exe -u

I found someone who suggested to add the xml tags manually to the machine.config. Although it worked, I got other errors. At the end, I reinstalled .Net FrameWork 3.5 SP1, in order to resolve that issue.


3 Responses to The extension name ‘enableWebScript’ is not registered error

  1. Adam says:


    Thank you so much. You saved me the hours you went through. I searched for maybe an hour before finding your post. Oddly, no one else had a post about the same problem. I also ran servicemodelreg.exe. with the -u switch. Very annoying. Why remove things from machine.config? It shouldn’t be a problem if you don’t want to user WCF.


  2. Abby says:

    Thanks so much. valuable piece of info


  3. Ross says:

    Nice one. Solution worked for me.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: