Jump to content

Help with solving error


Recommended Posts

Made a sample script today using VS 2022 and net 6.0.

 

When loading the script in game, it gave me the message 'Error in script [script name]'

Here is the ScriptHookDotNet.log

 

2023-08-26 16:26:05 - Initializing ScriptHookDotNet v1.7.1.7 BETA (on GTA IV version 1.0.7.0 with C++ Hook version 0.5.1)
2023-08-26 16:26:20 - Direct3D device created!

2023-08-26 16:26:20 - SEARCHING FOR SCRIPTS...
2023-08-26 16:26:20 - Loading scripts in Assembly 'scripts\JulioNIB.Scripts.net.dll' ...
2023-08-26 16:26:20 -  ...found script 'JulioNIBScriptsMenu'!
2023-08-26 16:26:20 - Loading scripts in Assembly 'scripts\Script_base.net.dll' ...
2023-08-26 16:26:20 -  ...found script 'Script_base.net.myBasicScript'!
2023-08-26 16:26:20 - DONE! 2 valid scripts found!

2023-08-26 16:26:20 - STARTING SCRIPTS...
2023-08-26 16:26:20 - INFO: Phone number checks are not available!
2023-08-26 16:26:20 - Error in constructor of script 'Script_base.net.myBasicScript':
                      System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
                      File name: 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
                         at GTA.ScriptThread.LoadScriptNow()
                      
                      WRN: Assembly binding logging is turned OFF.
                      To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
                      Note: There is some performance penalty associated with assembly bind failure logging.
                      To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
                      
2023-08-26 16:26:20 -  ...successfully started script 'JulioNIBScriptsMenu'!
2023-08-26 16:26:58 - Direct3D device lost!
2023-08-26 16:26:58 - SCRIPTS TERMINATED!

 

 

I am unsure of what the error message means. My current assumption is that the net version is wrong. Please do help me out.

Thank you.
 

 

Link to comment
https://gtaforums.com/topic/992475-help-with-solving-error/
Share on other sites

  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.