I've just opened up my extension project to compile and test against the latest release of Oxide for Rust released on Saturday and with my extension present the server no longer loads. If I take my extension away all works fine. I haven't modified anything at all in the last couple of weeks.
I can see in the Oxide logs that the extension is loaded, then the plugin is loaded, but at that point the whole thing stops and doesn't continue. There's no console output, no errors in logs, nothing.
Has anyone been here before? What's the next step? Has there been any breaking changes to Oxide that I've missed?
I've run out of ideas.
Solved Custom extension no longer loads (missing DLL)
Discussion in 'Rust Development' started by Squarefanatic, Jan 25, 2016.
-
Wulf Community Admin
Please upload your RustDedicated_Data/output_log.txt. Is this a custom extension you made? There hasn't really been any breaking changes made, so it's hard to tell without seeing your code.
-
Yes a custom extension. Please see attached output_log.txt. I can see an exception there at the end but can't make heads or tails of it. If you have any insight it'd be appreciated.
Attached Files:
-
-
make sure to rebuild your custom extension against the lastest rust version and all dependencies are present...
-
It's definitely being rebuilt. I've been sure to purge out the Debug and Release data and also to setup a fresh server with a fresh Oxide install but no luck at all. It's just stopping with the following exception in output_log.txt. I can't work out what the issue is. Nothing has changed from my end.
Code:ReflectionTypeLoadException: The classes in the module cannot be loaded. at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool) at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0 at Network.Serialize+<>c.<Initialize>b__1_0 (System.Reflection.Assembly x) [0x00000] in <filename unknown>:0 at System.Linq.Enumerable+<CreateSelectManyIterator>c__Iterator12`2[System.Reflection.Assembly,System.Type].MoveNext () [0x00000] in <filename unknown>:0 at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[System.Type].MoveNext () [0x00000] in <filename unknown>:0 at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[System.Type].MoveNext () [0x00000] in <filename unknown>:0 at Network.Serialize.Initialize () [0x00000] in <filename unknown>:0 at Bootstrap.NetworkInit () [0x00000] in <filename unknown>:0 at Bootstrap.Init_Tier0 () [0x00000] in <filename unknown>:0 at Bootstrap+<Start>c__Iterator7.MoveNext () [0x00000] in <filename unknown>:0
-
the error means that a type couldn't be loaded from an assembly...mostly from a missing dependency...without debugging it myself i can't really help you...try to iterate over the loaded assemblies, call GetTypes, catch the exception and check which ones fail...
-
Thanks for your help. Appreciate it.