Задайте вопросЗадайте вопрос
 

ВопросSystem.InvalidProgramException

  • 21 февраля 2008 г. 4:44Sanjukta Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
     

    Hi,

    I have a console application which uses Team Foundation APIs. It works perfectly well on my system, but when deployed onto a server, throws weird errors.

    This is the exception:

    System.InvalidProgramException: Common Language Runtime detected an invalid program.
       at Microsoft.TeamFoundation.Client.TeamFoundationServerFactory.GetServer(String name).

     

    This is the statement that throws the exception:

    TeamFoundationServer objTFS = TeamFoundationServerFactory.GetServer("http://"+strApplicationServer+":8080");

     

    I read about this exception and turned off Optimisation hoping that would resolve the problem. It did not help. I even used the PE Verifier to verify the MSIL, and it showed no errors.

     

    Now, I have no clue how to fix the problem. Please help.

     

    Thanks.

     

Все ответы