Click here to Skip to main content
15,171,053 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I came across below question on Stackoverflow where the solution for IE 8 is provided.

Call .Net assembly from OBJECT tag in IE8

Is there any solution or workaround for the Object tag code for Microsoft Edge browser. The .net application is built in .Net 2.0 Framework. it is working fine now till IE7, but as Internet Explorer browser might be removed it should get rendered on Microsoft Edge.

ExamineFile.dll is a dll of class library containing a Windows Form and related source code.
<object id='ExamineFile'  name='ExamineFile' classid='ExamineFile.dll#ExamineFile.FileInfo' ></object>

What I have tried:

1. Tried changing the registry and setting
to both 32 and 64 bit .netframework
2. Tried converting HTML to HTML 5
Updated 3-Dec-20 4:29am

1 solution

No. The solution relied on ActiveX controls, which were extremely insecure, and only ever worked in Internet Explorer on Windows. No other browser, including both flavours of MS Edge, will support it.

You either need to run the code on the server, and use an AJAX request to call it, or use a technology such as Blazor[^] to run your C# code on the client.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900