I have added WebView2 to my visual Studio 2017 VB.NET solution with .NET 4.7.2, as per the instructions on microsoft at https://learn.microsoft.com/en-us/microsoft-edge/webview2/gettingstarted/winforms
When I put the webview2 on my form and hit F5 to run it, I always get
System.InvalidOperationException: 'An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object.'
and it is stuck in application in break mode.
Can anyone tell me how to make it work please? Or am I stupid and it will only work in visual studio 2019 with core?
Related
When I try to create a WPF App (.NET Core) in Visual Studio 2019 the following error appears:
When I go to the spot I have it checked off already;
Yes, I have restarted both VS and my computer. I can create Class Libraries using .NET Core 3.0. I have updated Visual Studio to 16.2.3.
All my search points back to the checkbox that is already checked.
I just unpacked my new laptop on Windows 8, and installed the latest version of Visual Studio Ultimate 2013.
Through the server explorer view I tried to add a new connexion to a sql-server database. (Connect to database button)
Each attempts to log-in finished by a crash of visual studio.
Then I tried to get more information about the issue using VS as a debugger for itself.
It seems that msvcr110_clr0400.dll thrown an exception.
Just in case here is the disassembly :
I tried and re-tried several times, checked for updates, installed an other version of vs (Ultimate2012).Any clue how to fix this ?
Require repair installation of .net 4.0 (or 4.5/4.5.1).
Everytime I try to load a WPF window/page/userControl, the xaml designer crashes and System.BadImageFormatException is thrown. I've tried to switch the platform to X86 in configuration manager but it does not work. The following is the complete detail of exception:
System.BadImageFormatException
[C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll] The signature is incorrect.
at Microsoft.Expression.Markup.XmlCharType..cctor()
System.TypeInitializationException
The type initializer for 'Microsoft.Expression.Markup.XmlCharType' threw an exception.
Any idea guys?, thank you!
I've resolved the issue by Windows Task Manager and ending the process 'Microsoft Visual Studio XAML UI Designer'. In fact some issues are solved by stopping this process. Visual Studio automatically run this a new fresh instance of this process.
Whenever I open a WPF project, Visual Studio crashes. I start a second instance and attach the process to the first instance and I receive the following error once the project is "opened":
An unhandled exception of type 'System.MissingFieldException' occurred in Microsoft.VisualStudio.Progression.LanguageService.CSharp.dll
Additional information: Field not found: 'Microsoft.VisualStudio.Progression.Actions.GetNodeAtSourcePosition'.
I'm not entirely sure what to do. I have reinstalled Visual Studio once before and the error still occurs. Any help on this problem would be wonderful!
Had the same problem when creating a new project with VS2012. Applying VS2012 Update 1 did the trick for me.
http://www.microsoft.com/en-us/download/details.aspx?id=35774
Did you have a Beta Version of Visual studio installed in your system prior to this? What is your current version of VS? If yes, then you need to remove all the components of VS Beta version manually.
I am using VS 2010 SP1
I am having this error after installed the .Net Framework 4.5 developer preview:
While editing a WPF Application, appears the error:
Exception of type 'MS.Internal.Validate+ValidationFailure' was thrown.
Then I uninstalled the .Net 4.5
and now Visual Studio 2010 quit working... now gives me an "unknown error" dialogue when launched
Does somebody also have this issue, or can tell a solution?
I uninstalled .net 4.5
then VS stopped working
then i runned VS 2010 Repair mode
then the installer runned, at some percentage it gave an error
then i closed it, and opened VS 2010, normally.