我在生成的临时文件中收到 "Invalid length for a Base-64 char array or string" 错误?
I'm getting an "Invalid length for a Base-64 char array or string" error in generated temp file?
如标题所示,当我在 运行 时间从 Visual Studio 本地 运行 项目时遇到此错误。它构建得很好。
Invalid length for a Base-64 char array or string.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.FormatException: Invalid length for a
Base-64 char array or string.
与 other scenarios I've read about with marked solutions(这里有 4 个链接)不同,我的错误源文件来自生成的临时文件。
Source Error:
[No relevant source lines]
Source File: c:\Users\tessa\AppData\Local\Temp\Temporary ASP.NET
Files\vsedc00ec\dbb0fa2f\App_Web_default.master.a29f75f4.tl5zweer.0.cs
Line: 0
所以我检查了那个源文件。我很困惑它怎么可能是第 0 行,但在第一行,它指的是 Umbraco 母版页(出于隐私考虑,已删除)。
#pragma checksum "C:\Team Projects\xxxxxx-tfs2012\xxxxxxxxx\xxxxxxxxx Responsive Boilerplate\Main\xxxxxxxxx Responsive Boilerplate-xx\xxxxxxxxx Responsive Boilerplate\umbraco\masterpages\default.master" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "079A4F7CAEE49CF6EE4209E18039C993A74D1D19"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
我不知道为什么 Umbraco 会导致这个错误,如果是的话?我看到很多关于 "ViewState" 的讨论,但我真的不知道那是什么。我只是 front-end 这个项目,back-end 开发人员太忙了,没时间研究这个。
如果您需要更多信息来帮助我解决此错误,请告诉我。谢谢!
原来这是我机器本地的问题。我的合作开发人员确认,事实上,当他们从服务器中提取代码时,他们可以编译并 运行 代码而不会出现错误。我不确定究竟发生了什么、如何发生或为什么发生,但我最终调试了 101 样式,将其关闭并重新打开。
当它重新启动时,我收到一个关于信任关系破裂的漂亮错误。我打电话给我们 IT 部门的一个人,他通过从我们的域中删除我的机器并将其重新添加来解决这个问题。
当我终于回来时,我 运行 代码和错误都消失了。
我不确定这两个问题是如何相关的,如果它们曾经相关的话。但是那个过程中的某些东西修复了它。谢谢大家!
如标题所示,当我在 运行 时间从 Visual Studio 本地 运行 项目时遇到此错误。它构建得很好。
Invalid length for a Base-64 char array or string.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Invalid length for a Base-64 char array or string.
与 other scenarios I've read about with marked solutions(这里有 4 个链接)不同,我的错误源文件来自生成的临时文件。
Source Error:
[No relevant source lines]
Source File: c:\Users\tessa\AppData\Local\Temp\Temporary ASP.NET Files\vsedc00ec\dbb0fa2f\App_Web_default.master.a29f75f4.tl5zweer.0.cs Line: 0
所以我检查了那个源文件。我很困惑它怎么可能是第 0 行,但在第一行,它指的是 Umbraco 母版页(出于隐私考虑,已删除)。
#pragma checksum "C:\Team Projects\xxxxxx-tfs2012\xxxxxxxxx\xxxxxxxxx Responsive Boilerplate\Main\xxxxxxxxx Responsive Boilerplate-xx\xxxxxxxxx Responsive Boilerplate\umbraco\masterpages\default.master" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "079A4F7CAEE49CF6EE4209E18039C993A74D1D19"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
我不知道为什么 Umbraco 会导致这个错误,如果是的话?我看到很多关于 "ViewState" 的讨论,但我真的不知道那是什么。我只是 front-end 这个项目,back-end 开发人员太忙了,没时间研究这个。
如果您需要更多信息来帮助我解决此错误,请告诉我。谢谢!
原来这是我机器本地的问题。我的合作开发人员确认,事实上,当他们从服务器中提取代码时,他们可以编译并 运行 代码而不会出现错误。我不确定究竟发生了什么、如何发生或为什么发生,但我最终调试了 101 样式,将其关闭并重新打开。
当它重新启动时,我收到一个关于信任关系破裂的漂亮错误。我打电话给我们 IT 部门的一个人,他通过从我们的域中删除我的机器并将其重新添加来解决这个问题。
当我终于回来时,我 运行 代码和错误都消失了。
我不确定这两个问题是如何相关的,如果它们曾经相关的话。但是那个过程中的某些东西修复了它。谢谢大家!