locked
An unhandled exception of type 'Microsoft.UpdateServices.Administration.WsusInvalidServerException' occurred in Microsoft.UpdateServices.Administration.dll RRS feed

  • Question

  • Hello,

    Im am coding in C# visual studio 2015 on which is installed on a WSUS server.
    This is all the code I got:

    using System;
    using Microsoft.UpdateServices.Administration;

    public class TestWSUS
    {

         IUpdateServer obj = AdminProxy.GetUpdateServer();

    }

    when I run this code I get the error: "An unhandled exception of type 'Microsoft.UpdateServices.Administration.WsusInvalidServerException' occurred in Microsoft.UpdateServices.Administration.dll".
    Does anyone know what could possibly the problem of this error? I tried running it as admin and it still doenst work.

    Tuesday, February 14, 2017 4:14 PM

All replies