diff --git a/OpenSim/Grid/AssetInventoryServer/Plugins/ReferenceFrontendPlugin.cs b/OpenSim/Grid/AssetInventoryServer/Plugins/ReferenceFrontendPlugin.cs
index ffeca1a9f1..f22dc67868 100644
--- a/OpenSim/Grid/AssetInventoryServer/Plugins/ReferenceFrontendPlugin.cs
+++ b/OpenSim/Grid/AssetInventoryServer/Plugins/ReferenceFrontendPlugin.cs
@@ -305,7 +305,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins
{
try
{
- OSD osdata = OSDParser.DeserializeJson(httpRequest.InputStream);
+ OSD osdata = OSDParser.DeserializeJson(new StreamReader(httpRequest.InputStream).ReadToEnd());
if (osdata.Type == OSDType.Map)
{
diff --git a/prebuild.xml b/prebuild.xml
index 1e704c04cc..f5f410f3ec 100644
--- a/prebuild.xml
+++ b/prebuild.xml
@@ -768,7 +768,7 @@
-
+
@@ -804,7 +804,7 @@
-
+
@@ -834,7 +834,7 @@
-
+
@@ -867,7 +867,7 @@
-
+