Hello,
I have created a Web service with the following web method;
<WebMethod()> _
Public Function HelloWorld(ByVa l myMemoryStream As
System.IO.Memor yStream) As String
Return "Hello World"
End Function
I have also created a Web application with the following subroutine;
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
Dim mySample As New localhost.Sampl e
Response.Write( mySample.HelloW orld(Response.O utputStream))
End Sub
Line 2 of the Page_Load sub generates the error; Value of type
'System.IO.Stre am' cannot be converted to
'Sample_Debug.l ocalhost.Memory Stream'.
What should I do to fix this?
Thanks,
Jason.
I have created a Web service with the following web method;
<WebMethod()> _
Public Function HelloWorld(ByVa l myMemoryStream As
System.IO.Memor yStream) As String
Return "Hello World"
End Function
I have also created a Web application with the following subroutine;
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
Dim mySample As New localhost.Sampl e
Response.Write( mySample.HelloW orld(Response.O utputStream))
End Sub
Line 2 of the Page_Load sub generates the error; Value of type
'System.IO.Stre am' cannot be converted to
'Sample_Debug.l ocalhost.Memory Stream'.
What should I do to fix this?
Thanks,
Jason.
Comment