我需要帮助确定我的Visual Studio设置(Visual Studio 2013 Express for Desktop。)
。每次我尝试在C#(下面)中运行此Hello World代码时,我都会收到“错误1”由于内部故障,构建意外停止。 System.Text.EncoderFallbackException:无法将索引372处的Unicode字符\ uDB08转换为指定的代码页“(请参阅下面的完整错误消息)。
我尝试卸载并重新安装Visual Studio而没有成功。我真的很感激别人的帮助。谢谢。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World");
Console.ReadLine();
}
}
}
....错误消息从这里开始.....
错误1由于内部故障,构建意外停止。
System.Text.EncoderFallbackException:无法将索引372处的Unicode字符\ uDB08转换为指定的代码页。
在System.Text.EncoderExceptionFallbackBuffer.Fallback(Char charUnknown,Int32 index)
在System.Text.EncoderFallbackBuffer.InternalFallback(Char ch,Char *& chars)
在System.Text.UTF8Encoding.GetByteCount(Char * chars,Int32 count,EncoderNLS baseEncoder)
at System.Text.UTF8Encoding.GetByteCount(String chars)
在System.IO.BinaryWriter.Write(String value)
在Microsoft.Build.BackEnd.NodePacketTranslator.NodePacketWriteTranslator.TranslateDictionary(Dictionary 2& dictionary, IEqualityComparer
1 comparer)
在Microsoft.Build.Execution.BuildParameters.Microsoft.Build.BackEnd.INodePacketTranslatable.Translate(INodePacketTranslator翻译)
在Microsoft.Build.BackEnd.NodePacketTranslator.NodePacketWriteTranslator.Translate [T](T& value,NodePacketValueFactory 1 factory)
at Microsoft.Build.BackEnd.NodeConfiguration.Translate(INodePacketTranslator translator)
at Microsoft.Build.BackEnd.NodeProviderOutOfProcBase.NodeContext.SendData(INodePacket packet)
at Microsoft.Build.BackEnd.NodeProviderOutOfProc.CreateNode(Int32 nodeId, INodePacketFactory factory, NodeConfiguration configuration)
at Microsoft.Build.BackEnd.NodeManager.AttemptCreateNode(INodeProvider nodeProvider, NodeConfiguration nodeConfiguration)
at Microsoft.Build.BackEnd.NodeManager.CreateNode(NodeConfiguration configuration, NodeAffinity nodeAffinity)
at Microsoft.Build.Execution.BuildManager.PerformSchedulingActions(IEnumerable
1个回复)
在Microsoft.Build.Execution.BuildManager.HandleNewRequest(Int32节点,BuildRequestBlocker阻止程序)
在Microsoft.Build.Execution.BuildManager.IssueRequestToScheduler(BuildSubmission submission,Boolean allowMainThreadBuild,BuildRequestBlocker blocker)C:\ Users \ btejumola \ Documents \ MVACS_Code \ Lesson03 \ HelloWorld \ HelloWorld \ HelloWorld.csproj HelloWorld