2 Replies - 420 Views - Last Post: 08 August 2019 - 12:43 PM Rate Topic: -----

#1 aspfun   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 117
  • Joined: 16-January 13

Need real error message

Posted 08 August 2019 - 11:50 AM

I followed the link below to add error tracking. It works fine but did not indicate the line of code.

https://imar.spaanja...et-applications

Here is the error is caught but I still don't know which code to cause it.

---------------------------

Message
Invalid length for a Base-64 char array.

Source
mscorlib

Target site
Byte[] FromBase64String(System.String)

Stack trace
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()

ToString()
System.FormatException: Invalid length for a Base-64 char array.
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()

Is This A Good Question/Topic? 0
  • +

Replies To: Need real error message

#2 DarenR   User is offline

  • D.I.C Lover

Reputation: 624
  • View blog
  • Posts: 4,166
  • Joined: 12-January 10

Re: Need real error message

Posted 08 August 2019 - 12:43 PM

step though the program until it breaks
Was This Post Helpful? 0
  • +
  • -

#3 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15166
  • View blog
  • Posts: 60,698
  • Joined: 12-June 08

Re: Need real error message

Posted 08 August 2019 - 12:43 PM

Without seeing what you are doing it's hard to tell, but I figure you need to add in the exception object's other properties.. like source or target site.

https://docs.microso...etframework-4.8
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1