I have an (.Net 4.5.1) application that is often run from network shares (i.e.
Unfortunatly this does not always work unless I add the line
<loadFromRemoteSources enabled="true"/> to the application's configuration file.
The msdn documentation says:
In the .NET Framework 4.5, assemblies on local network shares are run as full trust by default; you do not have to enable the element.
So the problem seems to be that the server is not considered to be on the
I have searched around for some time trying to find out how a server is classified as "local network" but could not find anything conclusive. Some sites say I should add the server to the "trusted sites" in the internet settings but that has not helped when I tried it (and it also seems strange to add it there since it normally requires a https:// prefix).
Another confusing thing in the msdn documentation is the following:
If enabled is not set to true, an exception is thrown under the following conditions:
* The assembly being loaded is not from the MyComputer zone.
So in short: What are the requirements for a server to be in the
local netwwork? Is it something that is configured on the server, the client or the domain?
(Both server and client is in the same domain and the user is logged in with a domain account)