Questions tagged [invalidprogramexception]

An exception running a .NET program, usually caused by a faulty compiler.

An exception when running a .NET program, usually caused by a faulty compiler.

19 questions
0
votes
0 answers

Visual Studio getting 'InvalidProgramException' when making changes while debugging

I've been using Visual Studio 2010 for years now. I have a fairly complex VB.net project that I routinely make changes to. Recently, whenever I'm making changes in debug mode, it throws a System.InvalidProgramException - Common Language Runtime…
0
votes
1 answer

InvalidProgramException during MvvmCross Setup instance initialization

I'm using the MvvmCross framework to deliver cross-platform app using Xamarin. My Windows Phone application works absolutely file under the WP8 platform and fails with internal error under the WP7 platform. I'm using the single visual studio project…
0
votes
3 answers

Simple VB code is not running

I made a simple example in VB.net, compiled it, and run it: Public Class Application Sub calc1() Dim sq as Integer 'uncommenting this loop keeps it from compiling for some reason 'For i as Integer = 1 to 1000 ' …
NoBugs
  • 9,310
  • 13
  • 80
  • 146
0
votes
0 answers

InvalidProgramException when creating a Timer using a delegate created by reflection

This code: var returnType = GetDelegateReturnType(typeof(TimerCallback)); var methodParameters = typeof(TimerCallback).GetMethod("Invoke").GetParameters().Select(x => x.ParameterType).ToArray(); var handler = new…
Papa Mufflon
  • 17,558
  • 5
  • 27
  • 35
1
2