0

我收到一个Invalid length for a Base-64 char array错误,但这不是我的代码,我没有看到任何对此函数的显式引用。我知道这可能是 ViewState 的问题或 Request.QueryString 的“+”解码问题,但是还有什么东西被隐式转换为 Base 64 的吗?

编辑:我刚刚收到一堆代码和一条指向某些页面的异常消息,所以我正在寻找任何可能可疑的相关内容 - 但我不知道那些看起来像什么。也没有调试权限,所以我只需要扫描并猜测。

4

1 回答 1

1

You need to use the debugger to find out exactly which line is causing the error. You can find this out by having the debugger break whenever an exception is thrown in your code. Do the following within Visual Studio (I am showing Visual Studio 2012):

  1. Click the Debug menu.
  2. Choose Exceptions...

You will now see the following:

enter image description here

As the picture shows, make sure the Thrown checkbox is checked for Common Language Runtime Exceptions.

Click OK and the next time you run your code, the debugger should halt at the line that is causing the Invalid length for a Base-64 char array error.

于 2013-07-08T14:25:25.047 回答