title: An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
body: <p>I'm working in a Windows project (done a long time back by Visual Studio 2003 by .NET 1.03**). When I try to run some forms I am getting a strange error:</p>
  
  <blockquote>
    <p>An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll<br/>
    Additional information: Exception has been thrown by the target of an invocation.</p>
  </blockquote>
  
  <p>The inner exception is this:</p>
  
  <pre><code>Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.Web.Services.Protocols.SoapException: Server was unable to process request. --&gt; Value was either too large or too small for a UInt16.
  at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream)
  at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
  at Sabre.SabreRTS.UI.Forms.OrganizationService.OrganizationService.GetWorkCentre() in F:\tEndDEVNEW\UI\Forms\Web References\OrganizationService\Reference.cs:line 928
  at Sabre.SabreRTS.UI.Forms.ShiftException.PopulateWorkCentrecombo() in f:\****\ui\forms\shiftexception.cs:line 933
  at Sabre.SabreRTS.UI.Forms.ShiftException..ctor() in f:\****\ui\forms\shiftexception.cs:line 148
  --- End of inner exception stack trace ---
  </code></pre>
  
  <p>This has happened mostly when the variable is initiated (this code was sent to production many many times without this issue).</p>
  
  <p>Is there solution for this?</p>
  
  <p>(Is this caused by corruption of the framework itself?. Further, my PC have all the frameworks up to latest version.)</p>