James Deery
unread,Jan 9, 2012, 1:55:47 PM1/9/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OpenRasta
I'm trying to write some integration tests for my project using the
HttpListenerHost. Requests using GET are working fine, but I'm getting
a NotImplementedException when I POST data:
at OpenRasta.IO.HistoryStream.get_Length() in OpenRasta\IO
\HistoryStream.cs:line 61
at OpenRasta.IO.WrapperStream.get_Length() in OpenRasta\IO
\WrapperStream.cs:line 40
at OpenRasta.IO.LengthTrackingStream.get_Length() in OpenRasta\IO
\LengthTrackingStream.cs:line 33
at System.Xml.XmlReader.CalcBufferSize(Stream input)
at System.Xml.XmlTextReaderImpl.InitStreamInput(Uri baseUri, String
baseUriStr, Stream stream, Byte[] bytes, Int32 byteCount, Encoding
encoding)
at System.Xml.XmlTextReaderImpl.InitStreamInput(Stream stream,
Encoding encoding)
at System.Xml.XmlTextReaderImpl..ctor(String url, Stream input,
XmlNameTable nt)
at System.Xml.XmlTextReaderImpl..ctor(Stream input)
at System.Xml.XmlTextReader..ctor(Stream input)
at System.Xml.Serialization.XmlSerializer.Deserialize(Stream
stream)
at OpenRasta.Codecs.XmlSerializerCodec.ReadFrom(IHttpEntity
request, IType destinationType, String parameterName) in OpenRasta
\Codecs\application\xml\XmlSerializerCodec.cs:line 26
at
OpenRasta.OperationModel.Hydrators.RequestEntityReaderHydrator.TryReadPayloadAsObject(IHttpEntity
requestEntity, IMediaTypeReader reader, IOperation operation) in
OpenRasta\OperationModel\Hydrators\RequestEntityReaderHydrator.cs:line
101
This all works fine when the code is hosted on IIS.
What can I do to make sure that the codec can read from the POST
request stream without getting an exception?