Eric Wu
Eric Wu

Reputation: 917

Visual Studio 2015 RTM crashing when opening a Windows Forms

I'm facing a rather infuriating issue when trying to open a Windows Forms 'form' on Designer mode.

If I press F7 and go to the aforementioned mode, it shows a Design Time Error

enter image description here

, and when I click any part of it, VS2015 crashes.

When it suggests me to debug it, (and I grudgingly accept to open another VS 2015 instance, it says that the issue resides on the type initializer from one of it's embedding custom user controls:

enter image description here , which is nonsense.

The userControl it complains about has this initializer:

enter image description here

Thanks in advance.

Upvotes: 1

Views: 701

Answers (2)

user3041193
user3041193

Reputation: 1

If your project is merged recently by using version control software like git, please make sure that the embedded resource file(resx file) of the user control is properly associated. You can correct it in the csproj file.

Upvotes: 0

Angie Xu
Angie Xu

Reputation: 11

You can use Devenv.exe /SafeMode, it launches the IDE in safe mode loading minimal windows, and check whether it can fix it.

Upvotes: 1

Related Questions