zGamerz Posted April 18, 2014 Share Posted April 18, 2014 (edited) using Scripthook.net, I got an interesting error: System.IO.FileNotFoundException: Could not load file or assembly interestingly, the next name given is the name of the module which triggered the error. how could it not be found but execute code? I tried changing the permissions and such but it still crashed with this error. how can I aliviate this problem and find it in future scripts? (note this doesn't happen with every script,only a few) Edited April 18, 2014 by zGamerz Link to comment Share on other sites More sharing options...
LordOfTheBongs Posted April 18, 2014 Share Posted April 18, 2014 because the assembly is trying to reference a file, paste the full error, it should tell u the path of the missing file it's not saying the assembly itself is missing lol Link to comment Share on other sites More sharing options...
zGamerz Posted April 18, 2014 Author Share Posted April 18, 2014 because the assembly is trying to reference a file, paste the full error, it should tell u the path of the missing file it's not saying the assembly itself is missing lol ah ok. I thought it was weird because the only name it gave for what was missing was the same as the one it gave for where the request came from. 2014-04-18 15:37:53 - Initializing ScriptHookDotNet v1.7.1.7 BETA (on GTA IV version 1.0.4.0 with C++ Hook version 0.4.0) 2014-04-18 15:39:15 - Direct3D device created! 2014-04-18 15:39:16 - SEARCHING FOR SCRIPTS... 2014-04-18 15:39:16 - Loading scripts in Assembly 'scripts\IronMan.net' ... 2014-04-18 15:39:17 - Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'IronMan.net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'IronMan.net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.Load(String assemblyString) at System.UnitySerializationHolder.GetRealObject(StreamingContext context) at GTA.RemoteScriptDomain.RequestAction(ScriptAction action) at GTA.NetHook.GameReloaded() at StartupThreadC.RunTick(StartupThreadC* ) 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]. 2014-04-18 15:39:17 - CRASH! Link to comment Share on other sites More sharing options...
julionib Posted April 18, 2014 Share Posted April 18, 2014 weird, ironman loads some png images and some sounds, also can use NAudio.dll taht must be at gtaiv.exe folder, if on of those files are missing a script error may happen or part of HUD dont will appear, but then the name of the missing file would be in the log error Link to comment Share on other sites More sharing options...
zGamerz Posted April 18, 2014 Author Share Posted April 18, 2014 copied everything to the apt folders, including DLLS; there is a folder in the scripts folder that contains a bunch of PNG images, which are probably the ones mentioned. Link to comment Share on other sites More sharing options...
LordOfTheBongs Posted April 18, 2014 Share Posted April 18, 2014 if the file is a dll reference to his .net scripts then put in the same folder as the scripthook.dll (gtaiv root directory) that is your problem Link to comment Share on other sites More sharing options...
zGamerz Posted April 18, 2014 Author Share Posted April 18, 2014 if the file is a dll reference to his .net scripts then put in the same folder as the scripthook.dll (gtaiv root directory) that is your problem moving the .net.dll/ .net file to the root directory did not aleiviate the issue. keeping a version only in the root directory and none in the script folder allowed the game to be playable, but the module does not get loaded Link to comment Share on other sites More sharing options...
LordOfTheBongs Posted April 18, 2014 Share Posted April 18, 2014 (edited) if the file is a dll reference to his .net scripts then put in the same folder as the scripthook.dll (gtaiv root directory) that is your problem moving the .net.dll/ .net file to the root directory did not aleiviate the issue. keeping a version only in the root directory and none in the script folder allowed the game to be playable, but the module does not get loaded .net.dll and .net files are assemblies meant to be loaded by the scripthookdotnet so they go in the scripts folder... everything else that has .dll ONLY goes in the root directory Edited April 18, 2014 by LordOfTheBongs Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now