Jump to content
alt:V Multiplayer Forum
zola0311

CSharpResource_SetMain

Recommended Posts

Hi Guys!

 

I have a problem and i can't solve it.

I get this error message when i launch the server:

 

[19:51:43] alt:V Server, build #811, branch stable
[19:51:43] Starting Truckers Life on 127.0.0.1:7788
[19:51:43] coreclr-module: version found: 2.1.12
[19:51:43] coreclr-module: version found: 2.1.7
[19:51:43] coreclr-module: version found: 3.0.0
[19:51:43] coreclr-module: greatest version: 3.0.0
[19:51:43] Loading resource chat
[19:51:43] Loaded resource chat
[19:51:43] Loading resource Trucking
[19:51:43] < ==== UNHANDLED EXCEPTION ==== > 

 Received an unhandled exception from : System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

 ---> System.EntryPointNotFoundException: Unable to find an entry point named 'CSharpResource_SetMain' in DLL 'csharp-module'.

   at AltV.Net.Native.AltNative.Resource.CSharpResource_SetMain(IntPtr resourcePointer, MainDelegate mainDelegate, StopDelegate stopDelegate, TickDelegate tickDelegate, ServerEventDelegate serverEventDelegate, CheckpointDelegate checkpointDelegate, ClientEventDelegate clientEventDelegate, PlayerDamageDelegate playerDamageDelegate, PlayerConnectDelegate playerConnectDelegate, PlayerDeathDelegate playerDeathDelegate, PlayerDisconnectDelegate playerDisconnectDelegate, PlayerRemoveDelegate playerRemoveDelegate, VehicleRemoveDelegate vehicleRemoveDelegate, PlayerChangeVehicleSeatDelegate playerChangeVehicleSeatDelegate, PlayerEnterVehicleDelegate playerEnterVehicleDelegate, PlayerLeaveVehicleDelegate playerLeaveVehicleDelegate, CreatePlayerDelegate createPlayerDelegate, RemovePlayerDelegate removePlayerDelegate, CreateVehicleDelegate createVehicleDelegate, RemoveVehicleDelegate removeVehicleDelegate, CreateBlipDelegate createBlipDelegate, RemoveBlipDelegate removeBlipDelegate, CreateCheckpointDelegate createCheckpointDelegate, RemoveCheckpointDelegate removeCheckpointDelegate, CreateVoiceChannelDelegate createVoiceChannelDelegate, RemoveVoiceChannelDelegate removeVoiceChannelDelegate, ConsoleCommandDelegate consoleCommandDelegate, MetaDataChange metaDataChange, MetaDataChange syncedMetaDataChange, CreateColShapeDelegate createColShapeDelegate, RemoveColShapeDelegate removeColShapeDelegate, ColShapeDelegate colShapeDelegate)

   at AltV.Net.ResourceBuilder.SetDelegates(IntPtr resourcePointer, MainDelegate start)

   at AltV.Net.ModuleWrapper.MainWithAssembly(IntPtr serverPointer, IntPtr resourcePointer, AssemblyLoadContext assemblyLoadContext)

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at AltV.Net.Host.Host.ExecuteResource(IntPtr arg, Int32 argLength)

and my resource.cfg file:

 

type: "csharp",
main: "Trucking.dll"

 

Share this post


Link to post
Share on other sites

Your nuget package is outdated. Make sure you copied the newest dependency dlls to your resource folder.

  • Like 1

Share this post


Link to post
Share on other sites

Also set host to 0.0.0.0 as it was before instead of changing it to 127.0.0.1 when you want to connect. Host != ip

Share this post


Link to post
Share on other sites
12 hours ago, Heron said:

Your nuget package is outdated. Make sure you copied the newest dependency dlls to your resource folder.

Thanks for help. Problem solved.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...