diff --git a/OpenSim/Data/SQLite/SQLiteAssetData.cs b/OpenSim/Data/SQLite/SQLiteAssetData.cs
index 4dc456a18d..4daefef30a 100644
--- a/OpenSim/Data/SQLite/SQLiteAssetData.cs
+++ b/OpenSim/Data/SQLite/SQLiteAssetData.cs
@@ -81,8 +81,7 @@ namespace OpenSim.Data.SQLite
/// connect string
override public void Initialise(string dbconnect)
{
- if (Util.IsWindows())
- Util.LoadArchSpecificWindowsDll("sqlite3.dll");
+ DllmapConfigHelper.RegisterAssembly(typeof(SQLiteAssetData).Assembly);
if (dbconnect.Length == 0)
{
diff --git a/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs b/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs
index 8fb955c799..8c7872ac87 100644
--- a/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs
+++ b/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs
@@ -65,8 +65,7 @@ namespace OpenSim.Data.SQLite
if (!m_initialized)
{
- if (Util.IsWindows())
- Util.LoadArchSpecificWindowsDll("sqlite3.dll");
+ DllmapConfigHelper.RegisterAssembly(typeof(SQLiteAuthenticationData).Assembly);
m_Connection = new SqliteConnection(connectionString);
m_Connection.Open();
diff --git a/OpenSim/Data/SQLite/SQLiteEstateData.cs b/OpenSim/Data/SQLite/SQLiteEstateData.cs
index 5932e9e8eb..e40ad9b7c1 100644
--- a/OpenSim/Data/SQLite/SQLiteEstateData.cs
+++ b/OpenSim/Data/SQLite/SQLiteEstateData.cs
@@ -69,8 +69,7 @@ namespace OpenSim.Data.SQLite
public void Initialise(string connectionString)
{
- if (Util.IsWindows())
- Util.LoadArchSpecificWindowsDll("sqlite3.dll");
+ DllmapConfigHelper.RegisterAssembly(typeof(SQLiteEstateStore).Assembly);
m_connectionString = connectionString;
diff --git a/OpenSim/Data/SQLite/SQLiteFramework.cs b/OpenSim/Data/SQLite/SQLiteFramework.cs
index 35b9a2fe31..bac590f9fb 100644
--- a/OpenSim/Data/SQLite/SQLiteFramework.cs
+++ b/OpenSim/Data/SQLite/SQLiteFramework.cs
@@ -48,8 +48,7 @@ namespace OpenSim.Data.SQLite
protected SQLiteFramework(string connectionString)
{
- if (Util.IsWindows())
- Util.LoadArchSpecificWindowsDll("sqlite3.dll");
+ DllmapConfigHelper.RegisterAssembly(typeof(SQLiteFramework).Assembly);
}
//////////////////////////////////////////////////////////////
diff --git a/OpenSim/Data/SQLite/SQLiteSimulationData.cs b/OpenSim/Data/SQLite/SQLiteSimulationData.cs
index 5f47eafd05..4f21cb4711 100644
--- a/OpenSim/Data/SQLite/SQLiteSimulationData.cs
+++ b/OpenSim/Data/SQLite/SQLiteSimulationData.cs
@@ -113,8 +113,7 @@ namespace OpenSim.Data.SQLite
{
try
{
- if (Util.IsWindows())
- Util.LoadArchSpecificWindowsDll("sqlite3.dll");
+ DllmapConfigHelper.RegisterAssembly(typeof(SQLiteSimulationData).Assembly);
m_connectionString = connectionString;
diff --git a/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs b/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs
index 41de1af437..95f3e7a141 100644
--- a/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs
+++ b/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs
@@ -69,8 +69,7 @@ namespace OpenSim.Data.SQLite
public void Initialise(string connectionString)
{
- if (Util.IsWindows())
- Util.LoadArchSpecificWindowsDll("sqlite3.dll");
+ DllmapConfigHelper.RegisterAssembly(typeof(SQLiteUserProfilesData).Assembly);
m_connectionString = connectionString;
diff --git a/OpenSim/Data/SQLite/SQLiteXInventoryData.cs b/OpenSim/Data/SQLite/SQLiteXInventoryData.cs
index 4ef1f30a8d..6747233cf5 100644
--- a/OpenSim/Data/SQLite/SQLiteXInventoryData.cs
+++ b/OpenSim/Data/SQLite/SQLiteXInventoryData.cs
@@ -52,8 +52,7 @@ namespace OpenSim.Data.SQLite
public SQLiteXInventoryData(string conn, string realm)
{
- if (Util.IsWindows())
- Util.LoadArchSpecificWindowsDll("sqlite3.dll");
+ DllmapConfigHelper.RegisterAssembly(typeof(SQLiteXInventoryData).Assembly);
m_Folders = new SqliteFolderHandler(
conn, "inventoryfolders", "XInventoryStore");
diff --git a/OpenSim/Region/OptionalModules/UserStatistics/WebStatsModule.cs b/OpenSim/Region/OptionalModules/UserStatistics/WebStatsModule.cs
index 6bf303ebd9..b7d8c37c30 100644
--- a/OpenSim/Region/OptionalModules/UserStatistics/WebStatsModule.cs
+++ b/OpenSim/Region/OptionalModules/UserStatistics/WebStatsModule.cs
@@ -91,8 +91,7 @@ namespace OpenSim.Region.UserStatistics
if (!enabled)
return;
- if (Util.IsWindows())
- Util.LoadArchSpecificWindowsDll("sqlite3.dll");
+ DllmapConfigHelper.RegisterAssembly(typeof(WebStatsModule).Assembly);
//IConfig startupConfig = config.Configs["Startup"];
diff --git a/bin/Mono.Data.Sqlite.dll.config b/bin/Mono.Data.Sqlite.dll.config
index e66d1b7406..0266cd56c8 100644
--- a/bin/Mono.Data.Sqlite.dll.config
+++ b/bin/Mono.Data.Sqlite.dll.config
@@ -1,5 +1,7 @@
-
-
-
+
+
+
+
+
diff --git a/bin/OpenSim.Region.OptionalModules.dll.config b/bin/OpenSim.Region.OptionalModules.dll.config
new file mode 100644
index 0000000000..0266cd56c8
--- /dev/null
+++ b/bin/OpenSim.Region.OptionalModules.dll.config
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+