Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30002: Type 'MemoryStream' is not defined.

Source Error:


Line 135:            command = New SqlCommand("Select Struct" + ImageSize + " from Structures where StructureID=" + Request.QueryString("StructureID"), connection)
Line 136:            If connection.State = ConnectionState.Closed Then connection.Open()
Line 137:            Dim stream As New MemoryStream()
Line 138:            Dim image() As Byte = command.ExecuteScalar()
Line 139:            stream.Write(image, 0, image.Length)

Source File: D:\HostingSpaces\admin\weedscience.org\RootSept22g\Documents\Documents.aspx.vb    Line: 137







Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4110.0