How to get a .NET assembly running Delphi from a network drive?

I have a Delphi 5 executable that calls a .NET assembly through the free Delphi.NET and, for the most part, this works great. However, one of the requirements of my application is that our customers will be able to use this both from the network and local. On my test machine, I cannot get this to work, I just get an error message. .NET code has all permissions, but there is some error that Delphi does not seem to be able to receive or interpret. On the local disk, the application and the assembly interact flawlessly.

Can someone tell me how to get the error message? Or, if possible, can someone tell me why I get errors this way? Thank.

+3
source share
4 answers

You say you got full code permissions, but have you assigned FullTrust to a network resource? In .NET, network resources are part of the local intranet domain, so you lose trust. Run something like:

CasPol.exe -m -ag 1.2 -url file://\\ShawnFa-Srv/Tools/* FullTrust

For more information, see this article about using CasPol for complete trust. Share

+2

, . , , .

0

, CasPol .NET Framework (), , . , , , , (, ).

CasPol, , , "" "All Code" " . .

Another place I tried installing .NET Framework 3.5 failed because I missed that I did not install SP1. Installing SP1 on a test machine also fixed the problem. This method is what my boss decided to use, since it minimizes the interaction between us and our client - the staff.

Thank you both for your help. I appreciate the time.

0
source

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


All Articles