none
VS2019 - Update service reference (WCF) issue RRS feed

  • Question

  • Hello,

    I have migrated a solution (several projects) from VS2013 to VS2019, now every time I try to "Update service reference" (WCF service) VS2019 crashes.

    Sometimes (not always) error dialog appears:

    Problem signature:
      Problem Event Name: CLR20r3
      Problem Signature 01: devenv.exe
      Problem Signature 02: 16.1.28922.388
      Problem Signature 03: 5ce643d1
      Problem Signature 04: Microsoft.CodeAnalysis.Workspaces
      Problem Signature 05: 3.100.19.26603
      Problem Signature 06: b94d4ba5
      Problem Signature 07: 2674
      Problem Signature 08: 0
      Problem Signature 09: System.OutOfMemoryException
      OS Version: 6.3.9600.2.0.0.272.7
      Locale ID: 1040
      Additional Information 1: 371f
      Additional Information 2: 371f2ca2f24eafa94f4ac9490b30cc99
      Additional Information 3: 2d9b
      Additional Information 4: 2d9b54bc31a7238870d9de53dc89b851

    Any idea?

    Best

    Stefano

    Wednesday, June 12, 2019 6:59 AM

All replies

  • I would try doing a repair on Visual Studio 2019.   It could not hurt to run a virus scan. I would also try stop all apps but visual studio when updating the service reference.

    Another option is use SvcUtil.exe to generate the proxy class to call the WCF service.

    https://docs.microsoft.com/en-us/dotnet/framework/wcf/servicemodel-metadata-utility-tool-svcutil-exe

    Wednesday, June 12, 2019 8:42 AM
  • Hi,

    thank you for your reply.

    I have already tried to repair VS2019 without success (the problem persists)

    Honestly I do not know Svcutil.exe tool and I'd like it to work from the VS2019 environment as it worked perfectly with VS2013

    other information: the error occurs during "Generating service reference client code ..." phase

    Best

    Stefano

    Wednesday, June 12, 2019 10:35 AM
  • Does anyone have any other suggestions?

    Friday, June 14, 2019 3:14 PM
  • Hi Milanesi Stefano,

    Sorry for delay in reply.

    According to this log, VS IDE might be out of virtual memory. So we suggest you follow these steps to clear the caches for visual studio

    ## disable "Enable full solution Analysis" optoin

    Note: Tools/ Options/ Text Editor/ C#

    ## clear caches files

    Note: "C:\Users\[User name]\AppData\Local\Microsoft\VisualStudio\16.0_[random number]\ComponentModelCache"

    Any feedback will be expected.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Thursday, June 20, 2019 7:28 AM