The System.Management error is gone now!
It is complaining about an assembly called I18N, i tried to look for it but i couldn’t find what it is.
Exception loading assembly I18N: System.IO.FileNotFoundException: Unable to find the specified file.
It is also having trouble loading System.Web.Extensions, i tried copying it to the root folder but i couldn’t load it.
Exception loading assembly System.Web.Extensions: System.IO.FileNotFoundException: Unable to find the specified file.
Not sure if it is relevant, but it also said something about MonoPosixHelper:
Error invoking callback for event onResourceStart: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: MonoPosixHelper at....
The full console output below:
Loaded ef.net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null into ScriptDomain_1374205524
Instantiated instance of script ef.Class1.
Started resource ef
Exception loading assembly I18N: System.IO.FileNotFoundException: Unable to find the specified file.
Server stack trace:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR (System.Int32 errorCode) [0x0000a] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at (wrapper cominterop) CitizenFX.Core.IScriptHost:OpenHostFile (string)
at (wrapper cominterop-invoke) CitizenFX.Core.IScriptHost:OpenHostFile (string)
at CitizenFX.Core.MonoScriptRuntime+WrapScriptHost.OpenHostFile (System.String fileName) [0x00000] in <b3642c6ba1504116b31d83a71003b504>:0
at (wrapper remoting-invoke-with-check) CitizenFX.Core.MonoScriptRuntime+WrapScriptHost:OpenHostFile (string)
at (wrapper xdomain-dispatch) CitizenFX.Core.MonoScriptRuntime+WrapScriptHost:OpenHostFile (object,byte[]&,byte[]&,string)
Exception rethrown at [0]:
at (wrapper xdomain-invoke) CitizenFX.Core.MonoScriptRuntime+WrapScriptHost:OpenHostFile (string)
at CitizenFX.Core.InternalManager.LoadAssembly (System.String name) [0x00010] in <b3642c6ba1504116b31d83a71003b504>:0
Exception loading assembly I18N: System.IO.FileNotFoundException: Unable to find the specified file.
Server stack trace:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR (System.Int32 errorCode) [0x0000a] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at (wrapper cominterop) CitizenFX.Core.IScriptHost:OpenHostFile (string)
at (wrapper cominterop-invoke) CitizenFX.Core.IScriptHost:OpenHostFile (string)
at CitizenFX.Core.MonoScriptRuntime+WrapScriptHost.OpenHostFile (System.String fileName) [0x00000] in <b3642c6ba1504116b31d83a71003b504>:0
at (wrapper remoting-invoke-with-check) CitizenFX.Core.MonoScriptRuntime+WrapScriptHost:OpenHostFile (string)
at (wrapper xdomain-dispatch) CitizenFX.Core.MonoScriptRuntime+WrapScriptHost:OpenHostFile (object,byte[]&,byte[]&,string)
Exception rethrown at [0]:
at (wrapper xdomain-invoke) CitizenFX.Core.MonoScriptRuntime+WrapScriptHost:OpenHostFile (string)
at CitizenFX.Core.InternalManager.LoadAssembly (System.String name) [0x00010] in <b3642c6ba1504116b31d83a71003b504>:0
Exception loading assembly System.Web.Extensions: System.IO.FileNotFoundException: Unable to find the specified file.
Server stack trace:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR (System.Int32 errorCode) [0x0000a] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at (wrapper cominterop) CitizenFX.Core.IScriptHost:OpenHostFile (string)
at (wrapper cominterop-invoke) CitizenFX.Core.IScriptHost:OpenHostFile (string)
at CitizenFX.Core.MonoScriptRuntime+WrapScriptHost.OpenHostFile (System.String fileName) [0x00000] in <b3642c6ba1504116b31d83a71003b504>:0
at (wrapper remoting-invoke-with-check) CitizenFX.Core.MonoScriptRuntime+WrapScriptHost:OpenHostFile (string)
at (wrapper xdomain-dispatch) CitizenFX.Core.MonoScriptRuntime+WrapScriptHost:OpenHostFile (object,byte[]&,byte[]&,string)
Exception rethrown at [0]:
at (wrapper xdomain-invoke) CitizenFX.Core.MonoScriptRuntime+WrapScriptHost:OpenHostFile (string)
at CitizenFX.Core.InternalManager.LoadAssembly (System.String name) [0x00010] in <b3642c6ba1504116b31d83a71003b504>:0
Error invoking callback for event onResourceStart: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: MonoPosixHelper
at (wrapper managed-to-native) System.IO.Compression.DeflateStreamNative:CreateZStream (System.IO.Compression.CompressionMode,bool,System.IO.Compression.DeflateStreamNative/UnmanagedReadOrWrite,intptr)
at System.IO.Compression.DeflateStreamNative.Create (System.IO.Stream compressedStream, System.IO.Compression.CompressionMode mode, System.Boolean gzip) [0x0004a] in <7d13762c3f3046279fc4d30c52f6f595>:0
at System.IO.Compression.DeflateStream..ctor (System.IO.Stream compressedStream, System.IO.Compression.CompressionMode mode, System.Boolean leaveOpen, System.Boolean gzip) [0x0002d] in <7d13762c3f3046279fc4d30c52f6f595>:0
at System.IO.Compression.DeflateStream..ctor (System.IO.Stream stream, System.IO.Compression.CompressionMode mode, System.Boolean leaveOpen, System.Int32 windowsBits) [0x00000] in <7d13762c3f3046279fc4d30c52f6f595>:0
at (wrapper remoting-invoke-with-check) System.IO.Compression.DeflateStream:.ctor (System.IO.Stream,System.IO.Compression.CompressionMode,bool,int)
at System.IO.Compression.GZipStream..ctor (System.IO.Stream stream, System.IO.Compression.CompressionMode mode, System.Boolean leaveOpen) [0x00006] in <7d13762c3f3046279fc4d30c52f6f595>:0
at System.IO.Compression.GZipStream..ctor (System.IO.Stream stream, System.IO.Compression.CompressionMode mode) [0x00000] in <7d13762c3f3046279fc4d30c52f6f595>:0
at (wrapper remoting-invoke-with-check) System.IO.Compression.GZipStream:.ctor (System.IO.Stream,System.IO.Compression.CompressionMode)
at System.Data.Entity.Migrations.Edm.ModelCompressor.Compress (System.Xml.Linq.XDocument model) [0x00006] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Migrations.History.HistoryRepository.CreateInsertOperation (System.String migrationId, System.Xml.Linq.XDocument model) [0x00040] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Migrations.DbMigrator.ExecuteOperations (System.String migrationId, System.Xml.Linq.XDocument targetModel, System.Collections.Generic.IEnumerable`1[T] operations, System.Collections.Generic.IEnumerable`1[T] systemOperations, System.Boolean downgrading, System.Boolean auto) [0x00129] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Migrations.DbMigrator.AutoMigrate (System.String migrationId, System.Xml.Linq.XDocument sourceModel, System.Xml.Linq.XDocument targetModel, System.Boolean downgrading) [0x00150] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Migrations.Infrastructure.MigratorBase.AutoMigrate (System.String migrationId, System.Xml.Linq.XDocument sourceModel, System.Xml.Linq.XDocument targetModel, System.Boolean downgrading) [0x0000c] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Migrations.DbMigrator.Upgrade (System.Collections.Generic.IEnumerable`1[T] pendingMigrations, System.String targetMigrationId, System.String lastMigrationId) [0x000d3] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Migrations.Infrastructure.MigratorBase.Upgrade (System.Collections.Generic.IEnumerable`1[T] pendingMigrations, System.String targetMigrationId, System.String lastMigrationId) [0x00000] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Migrations.DbMigrator.UpdateInternal (System.String targetMigration) [0x0011f] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Migrations.DbMigrator+<>c__DisplayClassc.<Update>b__b () [0x00000] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists (System.Action mustSucceedToKeepDatabase) [0x0006a] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Migrations.Infrastructure.MigratorBase.EnsureDatabaseExists (System.Action mustSucceedToKeepDatabase) [0x00000] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Migrations.DbMigrator.Update (System.String targetMigration) [0x00014] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Migrations.Infrastructure.MigratorBase.Update () [0x00000] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.MigrateDatabaseToLatestVersion`2[TContext,TMigrationsConfiguration].InitializeDatabase (TContext context) [0x00018] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Internal.InternalContext+<>c__DisplayClasse`1[TContext].<CreateInitializationAction>b__d () [0x00011] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Internal.InternalContext.PerformInitializationAction (System.Action action) [0x00016] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization () [0x00098] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Internal.LazyInternalContext.<InitializeDatabase>b__4 (System.Data.Entity.Internal.InternalContext c) [0x00000] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Internal.RetryAction`1[TInput].PerformAction (TInput input) [0x00038] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction (System.Action`1[T] action) [0x00057] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabase () [0x00000] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Internal.InternalContext.Initialize () [0x00006] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType (System.Type entityType) [0x00000] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Internal.Linq.InternalSet`1[TEntity].Initialize () [0x0000f] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Internal.Linq.InternalSet`1[TEntity].get_InternalContext () [0x00000] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Internal.Linq.InternalSet`1[TEntity].ActOnSet (System.Action action, System.Data.Entity.EntityState newState, System.Object entity, System.String methodName) [0x0002a] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.Internal.Linq.InternalSet`1[TEntity].Add (System.Object entity) [0x00014] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at System.Data.Entity.DbSet`1[TEntity].Add (TEntity entity) [0x00017] in <7efe20822ace47bd8b0086bcc0c47d0d>:0
at ef.Class1.OnResourceStart (System.Object obj) [0x00026] in <cdeae6bdfb4f4da193ad0020149dda0d>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at CitizenFX.Core.EventHandlerEntry+<Invoke>d__5.MoveNext () [0x00133] in <b3642c6ba1504116b31d83a71003b504>:0
Resolved live-internal.fivem.net:30110 to 151.80.44.223:30110
Sending heartbeat to live-internal.fivem.net:30110
Started resource fivem-map-hipster
Started map fivem-map-hipster
I also re-tried the code in another project just to make sure it works and it worked.
Thank you all for the support, i appreciate it a lot.