Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

unable to load assembly?


zGamerz
 Share

Recommended Posts

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 by zGamerz
Link to comment
Share on other sites

LordOfTheBongs

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

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

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

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

LordOfTheBongs

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

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

LordOfTheBongs

 

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 by LordOfTheBongs
Link to comment
Share on other sites

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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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