面对设计器错误“为了防止在加载设计器之前可能丢失数据,必须解决以下错误:”

时间:2018-04-09 06:16:14

标签: c# designer appdata

我的项目解决方案包含所有类库项目。我已经为UI使用了很多用户控件。在尝试打开设计视图时,Visual Studio显示错误 “为了防止在加载设计器之前可能丢失数据,必须解决以下错误:”

错误描述:“找不到路径的一部分'C:\ Users \ HP \ AppData \ Local \ Microsoft \ VisualStudio \ 14.0 \ ProjectAssemblies \ 4zyymhdz01 \ EXTCONFIG \ EXConfig.xml'。”

Call Stack是

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
at System.Threading.CompressedStack.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
at System.Xml.XmlTextReaderImpl.OpenUrl()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at CallBacks.DataReader..ctor(String sFileName) in D:\SOURCE_CODE\Source\CallBacks\XmlDOMHelper.cs:line 24
at CallBacks.Hookfunction.GetImagePath() in D:\SOURCE_CODE\Source\CallBacks\Hookfunction.cs:line 302
at UserInterface.BaseFormClass..ctor() in D:\SOURCE_CODE\Source\UserInterface\BaseFormClass.cs:line 136 

0 个答案:

没有答案