Prechádzať zdrojové kódy

Stop .NET 4 complaining on Windows when it tries to load in DLLs that haven't been marked as trusted in the operating system.

This is done by adding <loadFromRemoteSources enabled="true" /> to the execute *.config files.
This tells .NET 4 to trust the DLLs, which is safe in our case since we are not loading DLLs from locations that untrusted users may specify
Addresses http://opensimulator.org/mantis/view.php?id=6853 and http://opensimulator.org/mantis/view.php?id=6846
As far as I know, CAS policy checks have never been performed in Mono
Justin Clark-Casey (justincc) 10 rokov pred
rodič
commit
bd5c414618

+ 1 - 0
bin/OpenSim.32BitLaunch.exe.config

@@ -4,6 +4,7 @@
     <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
   </configSections>
   <runtime>
+    <loadFromRemoteSources enabled="true" />
     <gcConcurrent enabled="true" />
 	<gcServer enabled="true" />
   </runtime>

+ 1 - 0
bin/OpenSim.ConsoleClient.exe.config

@@ -4,6 +4,7 @@
     <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
   </configSections>
   <runtime>
+    <loadFromRemoteSources enabled="true" />
     <gcConcurrent enabled="true" />
 	<gcServer enabled="true" />
   </runtime>

+ 1 - 0
bin/OpenSim.exe.config

@@ -4,6 +4,7 @@
     <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
   </configSections>
   <runtime>
+    <loadFromRemoteSources enabled="true" />
     <gcConcurrent enabled="true" />
 	<gcServer enabled="true" />
   </runtime>

+ 1 - 0
bin/Robust.32BitLaunch.exe.config

@@ -4,6 +4,7 @@
     <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
   </configSections>
   <runtime>
+    <loadFromRemoteSources enabled="true" />
     <gcConcurrent enabled="true" />
 	<gcServer enabled="true" />
   </runtime>

+ 1 - 0
bin/Robust.exe.config

@@ -4,6 +4,7 @@
     <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
   </configSections>
   <runtime>
+    <loadFromRemoteSources enabled="true" />
     <gcConcurrent enabled="true" />
 	<gcServer enabled="true" />
   </runtime>

+ 3 - 0
bin/pCampBot.exe.config

@@ -3,6 +3,9 @@
   <configSections>
     <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
   </configSections>
+  <runtime>
+    <loadFromRemoteSources enabled="true" />
+  </runtime>
   <appSettings>
   </appSettings>
   <log4net>