rscustom / rocksmith-custom-song-toolkit

Custom song toolkit for Rocksmith and Rocksmith 2014
http://www.rscustom.net/
343 stars 80 forks source link

Startup error for loadFromRemoteSources #335

Closed Andrea2202 closed 5 years ago

Andrea2202 commented 5 years ago

When trying to start RocksmithToolkit GUI, I run into the following issue:

"An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information."

The solution is to add

<configuration>
    <runtime>
       <loadFromRemoteSources enabled="true"/>
   </runtime>
</configuration>

into app.config

Can you add it to fix the bug?

Thanks

cozy1 commented 5 years ago

@Andrea2202 Thanks for the report and the fix. Will add it to the next rev. Sometimes your AV can cause this error. Is RocksmithToolkitGui.exe whitelisted in your AV? Could you check and see if that makes a difference?

Andrea2202 commented 5 years ago

@cozy1 I tried now with AV disabled but the same error appears. I think the error is due to the new security policies of the .NET framework version inserted in the new windows 10 october update.

DarwinLebowski commented 5 years ago

so I'm kinda new here but i just whitelisted it and it still won't open.

but in the meantime I'm willing to change the app.config file, if anyone can explain how/point me in the right direction it would be greatly appreciated.

Andrea2202 commented 5 years ago

@DarwinLebowski Unfortunately, the file is internal to the repo. You must to modify the sources and recompile the whole application using Visual Studio. Currently the easiest way is to wait for the new release, hoping it will be done soon.

cozy1 commented 5 years ago

@Andrea2202 @DarwinLebowski Latest toolkit build has the suggested app.config file. Please test and confirm the fix. Are you on Windows 10? Are you receiving MS updates?

cozy1 commented 5 years ago

@Andrea2202 @DarwinLebowski Critical ThirdPartyApps were missing from the build. Let me know if latest build is working again for you.

Andrea2202 commented 5 years ago

@cozy1 Thanks for your update! Now works perfectly! Thanks a lot!