Microsoft Silverlight cannot be used in 64-bit browsers

I took responsibility for the application, which is the .net winform application that hosts System.Windows.Forms.WebBrowser. When the application launches it, it makes an HTTP request to download the xap file. I immediately see the "install silverlight" icon and press get: "Microsoft Silverlight cannot be used in 64-bit browsers."

The application was originally written on a 32-bit machine, although I have a 64-bit machine.

Any ideas what I need to set up to run this?

Jd

+4
source share
2 answers

The "bitness" of the machine on which the .NET application is running does not affect the "bitness" of the final application. By default, .NET EXE will run in either 32 or 64 bit, depending on the operating system it is currently running on.

Therefore, on a 64-bit system, a typical .NET application will run in a 64-bit process. You can change this behavior at compile time by changing the target platform of the build platform to x86 so that the application always starts as a 32-bit application.

This is probably what you will want to do if hosting a silverlight application is an important or general thing you need to do.

There is also an SDK tool called "CoreFlags" that can be used to configure an existing .NET.exe to ensure that it works as 32 bits: -

CoreFlags.exe YourApplication.exe /32BIT+ 
+2
source

Try to run the application in 32-bit mode. If this helps you change the build configuration to x86 in visual studio so that the generated executable always runs in 32-bit mode.

If you create an application with the option "Any processor", the bit rate will depend on the platform on which it actually runs. On the other hand, by creating it in 32-bit mode, it will always work as a 32-bit application.

+1
source

Source: https://habr.com/ru/post/1305761/


All Articles