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

  • SEARCH
  • Home
  • 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 7708457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:37:00+00:00 2026-06-01T00:37:00+00:00

When running one of my Visual Studio web performance tests, I noticed intermittent exceptions

  • 0

When running one of my Visual Studio web performance tests, I noticed intermittent exceptions when trying to decode viewstate:

Message: Invalid length for a Base-64 char array.

Call Stack: at System.Convert.FromBase64String(String s) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) at System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) at System.Web.UI.HiddenFieldPageStatePersister.Load()

This only happens on one test at a single spot. Doing some research I noticed that the viewstate sent by the client and the viewstate received by the server differed only in that all plus (+) characters became spaces ( ).

What is causing this?

  • 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-06-01T00:37:02+00:00Added an answer on June 1, 2026 at 12:37 am

    ASP.NET expects that the _VIEWSTATE hidden form field is URL-encoded before it reaches the server. When ASP.NET receives a request, it URL-decodes the _VIEWSTATE parameter, which is known to turn pluses into spaces.

    Setting the URL Encode property to true on the _VIEWSTATE hidden form field in the webtest caused the bug to go away.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently running Visual Studio 2008 Standard Edition and one of the items they
I am running a Visual Studio Load Test using an Agent on one of
I am having an asp.net 2.0 web application running from Visual studio 2005. The
I am running a .NET 4.0 web application locally using the Visual Studio Development
We have a ASP.Net web application running in Visual Studio 2010 that is targeting
I'm trying to move a MySQL database from a Linux machine to one running
Possible Duplicate: Use Visual Studio web.config transform for debugging I have an asp.net application
When I use Build->Publish Web Site in Visual Studio 2008, most of the time
I'm using Visual Studio 2008 trying to debug a C# project. I had some
In IIS 6, I am trying to deploy a Web Site project from Visual

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.