1

我正在尝试通过 github 'Deploy to Azure' 将 webadmin 部署到 windows azure ...我收到以下错误:

加载资源失败:服务器响应状态为 500(内部服务器错误)。错误:“无法将索引 22 处的字节 [F3] 从指定代码页转换为 Unicode。”

System.Text.DecoderFallbackException: Unable to translate bytes [F3]
     at index 22 from specified code page to Unicode.
     at System.Text.DecoderExceptionFallbackBuffer.Throw(Byte[] bytesUnknown, Int32 index)
     at System.Text.DecoderExceptionFallbackBuffer.Fallback(Byte[] bytesUnknown, Int32 index)
     at System.Text.DecoderFallbackBuffer.InternalFallback(Byte[] bytes, Byte* pBytes, Char*& chars)
     at System.Text.UTF8Encoding.GetChars(Byte* bytes, Int32 byteCount, Char* chars, Int32 charCount, DecoderNLS baseDecoder)
     at System.Text.DecoderNLS.GetChars(Byte* bytes, Int32 byteCount, Char* chars, Int32 charCount, Boolean flush)
     at System.Text.DecoderNLS.GetChars(Byte[] bytes, Int32 byteIndex, Int32 byteCount, Char[] chars, Int32 charIndex, Boolean flush)
     at System.Text.DecoderNLS.GetChars(Byte[] bytes, Int32 byteIndex, Int32 byteCount, Char[] chars, Int32 charIndex)
     at System.IO.StreamReader.ReadBuffer(Char[] userBuffer, Int32 userOffset, Int32 desiredChars, Boolean& readToUserBuffer)
     at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count)
     at Newtonsoft.Json.JsonTextReader.ReadData(Boolean append, Int32 charsRequired)
     at Newtonsoft.Json.JsonTextReader.ParseValue()
     at Newtonsoft.Json.JsonTextReader.ReadInternal()
     at Newtonsoft.Json.JsonTextReader.Read()
     at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
     at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
     at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
     at System.Net.Http.Formatting.JsonMediaTypeFormatter.<>c__DisplayClass8.<ReadFromStreamAsync>b__6()
     at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
     at Slingshot.Controllers.ARMController.<GetTenantsArray>d__67.MoveNext() in c:\code\GitHub\slingshot\Slingshot.Api\Controllers\ARMController.cs:line 436 --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
     at Slingshot.Controllers.ARMController.<GetTemplate>d__4c.MoveNext() in c:\code\GitHub\slingshot\Slingshot.Api\Controllers\ARMController.cs:line 334

是否可以通过其他方式安装 webadmin?

提前致谢!

4

1 回答 1

2

这似乎是 Azure 中与 Azure Active Directory 名称中的 Unicode 字符相关的错误。通过将“ó”字符添加到我的目录名称中,我能够重现此错误。

我在他们的 GitHub 项目中发布了一个问题: https ://github.com/projectkudu/slingshot/issues/32

作为临时解决方法,请尝试从 Azure 管理门户中的目录名称中删除 Unicode 字符。请注意,这些更改可能需要一些时间。

可以手动部署 webadmin,但我们还没有相应的文档。

于 2015-03-03T15:12:20.373 回答