Error starting related to netframework CAS policy Opem Rails MG does not start due to assembly loading failure related t
#1
Posted 21 September 2021 - 05:45 AM
System.NotSupportedException: Attempting to load an assembly from a network location that would cause the assembly to be sandboxed in earlier versions of the .NET Framework. This version of the .NET Framework does not enable CAS policy by default, so this loading could be dangerous. If it does not intend to sandbox the assembly, enable the loadFromRemoteSources option. See http://go.microsoft..../?LinkId=155569 for more information.", something related to CAS policy in the Net framework. Searching the internet, I found something about adding a command line to grant access to this assembly, the most I could was to open the menu, to choose routes, consist, but when starting to load the route, it goes back to the menu again. I'll attach the photos, if anyone can help me, thank you in advance, thank you!!!
https://i.im.ge/2021/09/21/TArOKC.jpg
https://i.im.ge/2021/09/21/TArfrC.jpg
#2
Posted 21 September 2021 - 06:28 AM
Welcome to the Forum :)
It might not be the cause of your problem, but do you have the correct version of Net Framework for Open Rails installed (v3.5 SP1)?
See : http://openrails.org...on_guide_en.pdf
Cheers,
Ged
#3
Posted 21 September 2021 - 07:31 AM
slipperman, on 21 September 2021 - 06:28 AM, said:
Welcome to the Forum :)
It might not be the cause of your problem, but do you have the correct version of Net Framework for Open Rails installed (v3.5 SP1)?
See : http://openrails.org...on_guide_en.pdf
Cheers,
Ged
Hi, thanks for replying. I think so, I have version 3.5, I even downloaded it again but it doesn't install!!!
https://i.im.ge/2021/09/21/TACtqK.jpg
#4
Posted 21 September 2021 - 07:42 AM
#5
Posted 21 September 2021 - 07:46 AM
That's why user have to turn it on manually, when it needed.
For using ORTS, for instance.
#6
Posted 21 September 2021 - 08:03 AM
"<configuration>
<runtime>
<loadFromRemoteSources enabled="true"/>
</runtime>
</configuration>"
of machine.config file from .net 4.0.3 returns assembly loading failure messages by CAS policy.
#7
Posted 21 September 2021 - 08:16 AM
Weter, on 21 September 2021 - 08:06 AM, said:
Try to run Menu.exe directly and choose English language from options.
It looks like it will load and go back to the menu again, I did as you asked. Another thing, when trying to enable .NET, it failed and did not execute the commands
#8
Posted 21 September 2021 - 08:21 AM
#9
Posted 21 September 2021 - 08:33 AM
#10
Posted 21 September 2021 - 08:57 AM
Weter, on 21 September 2021 - 08:48 AM, said:
What will be after selecting English language at options?
You use pt-br localization normally?
with the command line " <configuration>
<runtime>
<loadFromRemoteSources enabled="true"/>
</runtime>
</configuration>" the menu opens normally, whether in English or Portuguese, it just doesn't load the routes. Now without this command line, it gives an assembly error, and when you click on menu, alas the failure in a menu .dll!