Add secured web reference keeps crashing visual studio 2019 RRS feed

  • Question

  • I need to add a web reference (not service reference) from a secured URL that is using .p12 certificate (WSDL). Visual studio community edition 2019 4.08.3752 (the latest version i belive as at now)

    Everytime i added the web reference my visual studio crashes. Below is the message log. Can someone please assist? Thanks.

    Application: devenv.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.AccessViolationException
       at Microsoft.VisualStudio.Shell.Interop.IVsAddWebReferenceDlg2.AddWebReferenceDlg(Microsoft.VisualStudio.Shell.Interop.IDiscoverySession, System.String ByRef, System.String ByRef, Microsoft.VisualStudio.Shell.Interop.IDiscoveryResult ByRef, Int32 ByRef)

    Faulting application name: devenv.exe, version: 16.4.29519.181, time stamp: 0x5dd4c41f
    Faulting module name: msxml6.dll, version: 6.30.18362.418, time stamp: 0xc78e5f2f
    Exception code: 0xc0000005
    Fault offset: 0x0011d081
    Faulting process id: 0x52d8
    Faulting application start time: 0x01d5ae23c5b6b012
    Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe
    Faulting module path: C:\Windows\System32\msxml6.dll
    Report Id: e9077535-1bc7-4f39-8eec-8bce892ef772
    Faulting package full name: 
    Faulting package-relative application ID: 

    • Edited by jay2019 Monday, December 9, 2019 12:17 AM
    Monday, December 9, 2019 12:16 AM

All replies

  • For bugs in your IDE, it's best to press "Help" -> "Report a problem" to launch the built-in Feedback tool. Your problem will go directly to people who are resposible to fix it.
    Monday, December 9, 2019 1:44 AM
  • The IDE cannot extract the WSDL from services that require client certificates. There is no place in the IDE to specify the certs to pass. In general services should not protect their WSDL because tools like WCF Test Client that rely on MEX cannot be used.

    The only workaround is to use the command line svcutil tool. However it will fail as well so you actually have to modify the svcutil.exe.config file to add the client cert you need. That process is documented here.

    Michael Taylor

    Monday, December 9, 2019 4:29 PM
  • I think on the case of adding Web Reference on "SSL with client certificate" protected site, the error shouldn't be access violation.

    There ought to be something else bugs it.


    Btw, it seems you can also use a web browser to download the WSDL file and add Web Reference locally, then patch the URL.

    Tuesday, December 10, 2019 1:45 AM