Enable Web Services Enhancements (WSE) 3.0 in Visual Studio 2012, 2010 and 2008

Web Service Enhancements 3 (WSE 3) is not officially supported since Visual Studio 2008. The reason is that Microsoft wants you to migrate your code to WCF. See below to enable Web Services Enhancements (WSE) 3.0 in VS2012, VS2010 and VS2008.

1. Download and install Web Services Enhancements (WSE) 3.0 for Microsoft .NET. Make sure you have all the files after installing WSE v3.0. In Window 7 the location is “C:\Program Files (x86)\Microsoft WSE\v3.0\Tools”. Note: Close Visual Studio before installing.

WSE 3.0 DLL on Window 7

WSE 3.0 DLL on Window 7

WSE 3.0 DLL on Window XP

WSE 3.0 DLL on Window XP

2. Go to the folder %ALLUSERSPROFILE%\Application Data\Microsoft\MSEnvShared\AddIns (notice that “Application Data” is hardcoded, which shouldn’t because Windows XP localizes that folder). If the folder is not there close Visual Studio and create the folder as show below.

Examples:
– Windows XP: “C:\Documents and Settings\All Users\Application Data\Microsoft\MSEnvShared\AddIns”
– Windows Vista / Windows 7: “C:\ProgramData\Microsoft\MSEnvShared\AddIns”. ( This is a hidden folder. Copy paste the UNC path to Windows Explorer.)

3. In the folder in step 2 you will find WSESettingsVS3.AddIn file. Backup WSESettingsVS3.AddIn before modifying. If its not there then create one with the file name WSESettingsVS3.Addin and type the content from the picture shown in step 4.

4. You’ll find two sections. Note that the version is 8.0. Copy and paste these two sections and change the version of the new sections to 9.0 (if using Visual Studio 2008) or 10.0 (if using Visual Studio 2010) or 11.0 (if using Visual Studio 2012). Save the file.

VS2012 WSE3.0 WSESettingsVS3.AddIn file

VS2012 WSE3.0 WSESettingsVS3.AddIn file

5. Go to C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE (if using VS2012) or C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE (if using VS2008) or C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE (if using VS 2010) and open the devenv.exe.config file. Backup the devenv.exe.config file and add the following snippet just above the closing tag inside the file. This helps Visual Studio to generate web service proxy classes using WSE.

Visual Studio Devenv.exe.config file

Visual Studio Devenv.exe. config file

<system.web>
  <webServices>
    <soapExtensionImporterTypes>
      <add type=“Microsoft.Web.Services3.Description.WseExtensionImporter,
       Microsoft.Web.Services3, Version=3.0.0.0,
       Culture=neutral, PublicKeyToken=31bf3856ad364e35“ />
    </soapExtensionImporterTypes>
  </webServices>
</system.web>

7. Close all the instances of Visual Studio and start the application again.

8. Open your project in Visual Studio and right click on project to see the WSE Setting 3.0 option. Now you could configure WSE setting in Visual Studio. Good luck.

WSE Setting 3.0 on VS2012 menu

WSE Setting 3.0 on VS2012 menu

WSE Setting 3.0 under VS2010 project

WSE Setting 3.0 under VS2010 project

Reference:

Default .AddIn file locations for Visual Studio add-ins
How to use WSE 3 in Visual Studio 2008
Migrating WSE 3.0 Web Services to WCF
WSE 3.0 Setting Tool For Visual Studio 2008
How to use WSE 3 in Visual Studio 2008
How to use WSE 3 in Visual Studio 2010

About these ads

Diganta Kumar has developed software for the last 11 years for a wide range of industries and development platforms and over the years has filled many roles including developer, architect, team lead, mentor and project manager. He is a certified Professional Scrum Master (PSM I), certified Professional Scrum Developer (PSD I) and ITIL Certified. He has presented at Microsoft Tech.Ed, Microsoft AppFest and Ark Group Intranet conference. He regularly attend Alt.Net, .NetUG and SydJs user groups. He like to help, mentor and manage development teams to improve and produce great software. He currently work as a Senior Developer/Tech Lead for Legal Aid NSW Software Development Team.

Tagged with: ,
Posted in ASP.NET, C#, Visual Studio
39 comments on “Enable Web Services Enhancements (WSE) 3.0 in Visual Studio 2012, 2010 and 2008
  1. #Coder says:

    Thank you – works like a charm! One thing to note is that if you copy/paste the code above, you may need to manually enter the double quotes found in the add element to avoid syntax errors.

  2. jet says:

    Thank you! Works great. And thanks for the heads up on the double quotes too.

  3. Thanasekaran says:

    Thank you much. This was really helpful.
    I would like to add this, please make sure you select Visual Studio Developer optin when you install WSE3.0 extension. Also you need to enable WES3.0 from project. In visual studion, right click on the project and select WSE Settings 3.0 and enable the option from popup dialog.

    Hope this might helpe if some needs to know how to enable the extension after the above setup.

    Thanks again.

  4. Vu Nguyen Hai Dang says:

    I use vs2010 and win 7 ultimate. After instal wse3.0, i can’t find this folder : C:\Documents and Settings\All Users\Application Data\Microsoft\MSEnvShared\Addins
    Please help me!

  5. Swami says:

    Wonderful article and saved me tonnes of time from installing vs 2005.

  6. Thanks..it helped a lot..

  7. Natalia says:

    Thank you very much for this information. Your help has been great!

  8. pardhu says:

    It worked for the first time but after restarting my machine this option is not showing on the right click menu of the project. First time worked application is compiling successfully but if I tried to add reference of the dll in another project even that way is also not working. What could be the reason?

  9. [...] Visual Studio 2005. If you need the same addin to be added to VS 2008 or 2010 please follow this link. We use this link the create the proxy class for the web service that we are going to use in our [...]

  10. Omer Khayyam says:

    great work

  11. lorisgia says:

    Thank you so much. This is just what I need!.

  12. lorisgia says:

    Thank you so much!. This is just what I need it! Keep doing a great job!

  13. venkat says:

    Hey thanks !!! that worked like charm

  14. Graham says:

    Solution also works when trying to install Visual Studio 2005 and WSE 3.0 on Windows 7, although WSE 3 appears fine it does not build the wse class in the imported web service, devenv.exe.config does not get set up correctly by the WSE 3 installer, manually adding in the fix above get it working

  15. WSE3…

      This is useful when trying to get WSE3 running in Visual Studio 2010:  …

  16. vipin says:

    Very Very nice. I got Solution…..

  17. Brian McLaughlin says:

    Thank you very much, you are the man.

  18. Sadye says:

    My partner and I absolutely love your blog and find the majority of your post’s to be exactly what I’m looking for.
    can you offer guest writers to write content in your case?
    I wouldn’t mind publishing a post or elaborating on a few of the subjects you write concerning here. Again, awesome website!

  19. HyeonGu Kwon says:

    Thanks for this article. I’ve got finally added WSE in Visual Studio 2008.
    I appreciated it !!
    I’ve had link of this article on my blog to review this some day later.
    Please let me know if you mind, then I’ll remove it.
    Good luck :D

  20. Hello! Do you know if they make any plugins to
    help with Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not
    seeing very good gains. If you know of any please share.

    Thanks!

  21. Hector says:

    Great web site you have got here.. It’s hard to find good quality writing like yours nowadays. I honestly appreciate individuals like you! Take care!!

  22. Charlie says:

    Great article,Thanks very much :)

  23. youga says:

    ive tryed those steps in windows 7 ultimate 64bit but i get problem when i open vs2010
    even thou it worked fine with windows xp

  24. Fernando says:

    Man you saved me a lot of time. Thanks!

  25. Do you mind if I quote a couple of your posts as long as I
    provide credit and sources back to your weblog?

    My blog is in the very same area of interest as yours and my
    users would truly benefit from some of the information you
    provide here. Please let me know if this okay with you. Thanks a
    lot!

  26. There is definately a great deal to learn about this issue.
    I love all of the points you made.

  27. resources says:

    After looking at a number of the articles on your website, I seriously appreciate your technique of writing
    a blog. I book-marked it to my bookmark webpage list and will
    be checking back in the near future. Take a look at my website as well and
    let me know how you feel.

  28. 5 says:

    Good article. I will be experiencing many of these issues as well..

  29. 3 says:

    Hello everybody, here every one is sharing these kinds of
    experience, thus it’s pleasant to read this blog, and I used to go to see this
    weblog daily.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 240 other followers