Running a .NET DLL from an ASP.NET Page

I am working with an intranet site written in ASP.NET and must have access to the DLL installed on the user machine. I can make it work if I host the site locally, but when I try to access it from another computer, it does not work. I understand that this can be a dangerous tool to use, but if you have a valid business goal for this, is that possible?

I looked around and you can use JavaScript for this, but I'm wondering if there is anything else.

To make it work locally, I had to add AspCompat to the page so that the first would look like this:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" AspCompat="True" %>

Any help would be greatly appreciated.

+3
source share
2 answers

Even for good reason, I would find another way, for example, to load them .exe. Think of it this way. Even if you really need to hand over your car to someone, will you leave it in a mall unlocked with keys in the ignition all day until they can pick it up? Because this is what you will have if you find a way to change your security so that it executes .dll.

+4
source

I think you have two options:

1: dll - asp.net, . , DLL -, , -.

2: - ( Windows WPF) ClickOnce XBAP ..

, Javascript DLL , , , ActiveX - .

+3

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


All Articles