diff --git a/build/dependencies.props b/build/dependencies.props
index 58bd358063..ef30a5f7b0 100644
--- a/build/dependencies.props
+++ b/build/dependencies.props
@@ -3,7 +3,7 @@
1.2.0-*
4.3.0
1.1.0
- 9.0.1
+ 1.0.1
4.6.36-alpha
1.6.1
1.0.0-*
diff --git a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/TempDataSerializer.cs b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/TempDataSerializer.cs
index 78cb43a100..65230e958e 100644
--- a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/TempDataSerializer.cs
+++ b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/TempDataSerializer.cs
@@ -48,9 +48,9 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Internal
Dictionary tempDataDictionary = null;
using (var memoryStream = new MemoryStream(value))
- using (var writer = new BsonReader(memoryStream))
+ using (var reader = new BsonDataReader(memoryStream))
{
- tempDataDictionary = _jsonSerializer.Deserialize>(writer);
+ tempDataDictionary = _jsonSerializer.Deserialize>(reader);
if (tempDataDictionary == null)
{
return new Dictionary(StringComparer.OrdinalIgnoreCase);
@@ -145,7 +145,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Internal
using (var memoryStream = new MemoryStream())
{
- using (var writer = new BsonWriter(memoryStream))
+ using (var writer = new BsonDataWriter(memoryStream))
{
_jsonSerializer.Serialize(writer, values);
return memoryStream.ToArray();
diff --git a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Microsoft.AspNetCore.Mvc.ViewFeatures.csproj b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Microsoft.AspNetCore.Mvc.ViewFeatures.csproj
index 794e8e0ace..b83457cce7 100644
--- a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Microsoft.AspNetCore.Mvc.ViewFeatures.csproj
+++ b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Microsoft.AspNetCore.Mvc.ViewFeatures.csproj
@@ -30,7 +30,7 @@ Microsoft.AspNetCore.Mvc.ViewComponent
-
+