3

First of all, thank you everybody for all you do for the community, I have found so many answers on this forum.

I am working on a Large winforms project that connects to a WCF server. I am using Visual Studio 2015 and .NET 4.0.

As of this morning, when I do a build on our Nant Build Server (Windows Server 2003), and update my test application I am getting a "Common Language Runtime detected an invalid program" once I click my Login button.

So the App Loads, the Main Form loads but this is thrown when I click Login.

However, if I build and debug the App locally, I am able to run the application just fine.

Unfortunately, I did not setup the Build server as I have come in after the Architects and am in charge of Maintenance and Updating.

The differences between the last build that worked and the current build are very minute.

I removed a PictureBox, renamed a Tab, Updated some DLLs that link to the Server after adding another Server Call.

I know the Server is working correctly because I am pointing to the same server when I am Debugging or running the Downloaded App.

Thank you so much, and I will be happy to provide you with any more information!

leppie
  • 115,091
  • 17
  • 196
  • 297
Jon Roop
  • 31
  • 1
  • 8
  • Welcome to StackOverflow -- #SOReadyToHelp. Have you seen this MSDN KB article: https://support.microsoft.com/en-us/kb/312544 – David Tansey Jun 09 '16 at 20:15
  • This details the exact scenario, thank you! – Jon Roop Jun 09 '16 at 20:59
  • David Tansey: Where can I get my hands on cordbg? I've googled for it and searched my machine for it, no luck in finding it. Running Windows 10, and Visual Studio 2015, also have 2010, 2012 installed. – Jon Roop Jun 09 '16 at 21:47
  • I think this post from over on SuperUser should help you get going with `CorDbg` http://superuser.com/questions/983305/where-is-cordbg – David Tansey Jun 09 '16 at 23:06
  • 1
    Thank you for the Help! The response from this article helped me out: http://stackoverflow.com/questions/23563299/invalidprogramexception-common-language-runtime-detected-an-invalid-program I disabled optimization in one of our projects and it works now. – Jon Roop Jun 10 '16 at 14:46

0 Answers0