Troubleshooting:Old Dlls
From OpenSimulator
(Difference between revisions)
Brentseidel (Talk | contribs) (Added link to mailing list) |
(→The Solution) |
||
Line 17: | Line 17: | ||
==The Solution== | ==The Solution== | ||
Usually, any of these remedies should fix the problem: | Usually, any of these remedies should fix the problem: | ||
− | * Remove all OpenSim.*.dll (only files that starts with "OpenSim." and ends in ".dll", like "OpenSim.Framework.dll") recursively from your installation directory | + | * Do a 'nant clean' if you're using Nant then rebuild and run. |
− | + | * Remove all OpenSim.*.dll (only files that starts with "OpenSim." and ends in ".dll", like "OpenSim.Framework.dll") recursively from your installation directory. This is what "nant clean" does above. Finally, rebuild and run. | |
− | * Do a clean checkout, build that from scratch, then copy over all data files (*.db | + | * Do a clean checkout, build that from scratch, then copy over all data files (*.db, *.ini) from your old installation, rebuild and run. |
If all else fails, join #opensim on freenode, or send an email to the [https://lists.berlios.de/mailman/listinfo/opensim-users opensim-users] mailing list. | If all else fails, join #opensim on freenode, or send an email to the [https://lists.berlios.de/mailman/listinfo/opensim-users opensim-users] mailing list. |
Revision as of 14:29, 12 April 2011
The Error
When you build from source, then update the source, rebuild and try to run, you get strange runtime exceptions, usually along the lines of
APPLICATION EXCEPTION DETECTED: System.UnhandledExceptionEventArgs Exception: System.MissingMethodException
The Problem
When you build the source, it's 'compiled' into runnable files called 'dlls' or Dynamic Link Libraries. These have the extension .dll and are added to your local installation, and are not governed by source control. When we change where these dlls are created, the 'old' ones, from previous builds, will still be there. This will cause the program to try and load these old dlls, with unexpected results.
The Solution
Usually, any of these remedies should fix the problem:
- Do a 'nant clean' if you're using Nant then rebuild and run.
- Remove all OpenSim.*.dll (only files that starts with "OpenSim." and ends in ".dll", like "OpenSim.Framework.dll") recursively from your installation directory. This is what "nant clean" does above. Finally, rebuild and run.
- Do a clean checkout, build that from scratch, then copy over all data files (*.db, *.ini) from your old installation, rebuild and run.
If all else fails, join #opensim on freenode, or send an email to the opensim-users mailing list.