Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4582252
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T21:02:53+00:00 2026-05-21T21:02:53+00:00

I have come across a large issue that i am having that has suddenly

  • 0

I have come across a large issue that i am having that has suddenly come to light when i upgraded my Silverlight & Web Projects to versions 4 respectively.

Since doing this, all my WCF Services are Failing with the following Error message:

There was an error deserializing the object of type Anyboat.Admin.UserService.User. Unexpected end of file. Following elements are not closed: LastName, AuthenticateUserResult, AuthenticateUserResponse, Body, Envelope.

The StackTrace is:

   at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part, Boolean isRequest)
   at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, String action, MessageDescription messageDescription, Object[] parameters, Boolean isRequest)
   at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeBodyContents(Message message, Object[] parameters, Boolean isRequest)
   at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeReply(Message message, Object[] parameters)
   at System.ServiceModel.Dispatcher.ProxyOperationRuntime.AfterReply(ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
   at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
   at Anyboat.Admin.UserService.UserServiceClient.UserServiceClientChannel.EndAuthenticateUser(IAsyncResult result)
   at Anyboat.Admin.UserService.UserServiceClient.Anyboat.Admin.UserService.UserService.EndAuthenticateUser(IAsyncResult result)
   at Anyboat.Admin.UserService.UserServiceClient.OnEndAuthenticateUser(IAsyncResult result)
   at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)

I put a breakpoint in my SilverlightFaultBehaviour on the Response Message and this is the Envelope reponse i got back. Notice the Carriage return which is between *“\r\n”*

"<s:Envelope xmlns:a=\"http://www.w3.org/2005/08/addressing\" xmlns:s=\"http://www.w3.org/2003/05/soap-envelope\">\r\n  <s:Header>\r\n    <a:Action s:mustUnderstand=\"1\">urn:UserService/AuthenticateUserResponse</a:Action>\r\n    <a:RelatesTo>urn:uuid:07cc1361-c74c-4449-b423-e982d2ac8e05</a:RelatesTo>\r\n  </s:Header>\r\n  <s:Body>\r\n    <AuthenticateUserResponse>\r\n      <AuthenticateUserResult xmlns:d4p1=\"http://schemas.datacontract.org/2004/07/AnyBoat.Web.Classes.DataObjects\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n        <d4p1:Active>true</d4p1:Active>\r\n        <d4p1:EmailAddress>robbie@robbietapping.com.au</d4p1:EmailAddress>\r\n        <d4p1:FirstName>Robbie</d4p1:FirstName>\r\n        <d4p1:IsAdministrator i:nil=\"true\" />\r\n        <d4p1:LastName>Tapping</d4p1:LastName>\r\n        <d4p1:Password>xxxxxxxxx</d4p1:Password>\r\n        <d4p1:UserID>2</d4p1:UserID>\r\n        <d4p1:UserName>robbietapping</d4p1:UserName>\r\n      </AuthenticateUserResult>\r\n    </AuthenticateUserR
esponse>\r\n  </s:Body>\r\n</s:Envelope>"

Can anyone tell me if there is away around this at all, i upgraded my VS2010 to SP1 where this has started to show itself.

Any Information or answers would be greatfully appreciated.

Thanks

EDIT

The Code that the Error Occurs on is:

 public Anyboat.Admin.UserService.User EndAuthenticateUser(System.IAsyncResult result) {
                object[] _args = new object[0];
                Anyboat.Admin.UserService.User _result = ((Anyboat.Admin.UserService.User)(base.EndInvoke("AuthenticateUser", _args, result)));
                return _result;
            }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T21:02:54+00:00Added an answer on May 21, 2026 at 9:02 pm

    Which serialization type do you use at services side? I’m pretty sure that you use some custom serialization. “\r\n” problem is pretty common and it occurs when you’re trying to deserialize not well formed xml received from service.
    So I see two ways:

    1. The most preferable way. Check the serializer at service side. It’s obvious that service returns xml in wrong format.
    2. Add IClientMessageInspector to client and remove special symbols from response before deserialization.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have come across a Silverlight project that needed to make use of a
I have come across a little dilemma that has stumped me for the last
I have come across a lot of optimization tips which say that you should
I have come across several solutions here and across the web but none seem
I am beginning work on a large Visual Studio solution, and have come across
I have come across this issue a few times now, and each time I
I have come across a very odd problem in C that I have never
I have come across the following type of code many a times, and I
I have come across what must be a common problem. When I have an
I have come across a quirky feature in Visual Studio and I was interested

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.