总是会出现此错误,这是什么?我将如何解决此问题? [英] always this error comes on monitör what is this?how ı solve this problem?

查看:60
本文介绍了总是会出现此错误,这是什么?我将如何解决此问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



1错误

为什么我看到这个网页?





类名?"不是该语言的有效标识符.




该错误的实例(1)

1.显示呼叫堆栈

在Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.CodeTypeDeclarationFromCodeClass(CodeClass vsClass)
在Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.OnNamespacePopulateTypes(Object sender,EventArgs e)
在System.CodeDom.CodeNamespace.get_Types()
在Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.Parse(TextReader codeStream)
在Microsoft.VisualStudio.Design.Serialization.CodeDom.MergedCodeDomParser.System.CodeDom.Compiler.ICodeParser.Parse(TextReader流)
在System.CodeDom.Compiler.CodeDomProvider.Parse(TextReader codeStream)
在Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_CompileUnit()
在Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
在System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost主机)中

帮助解决此错误

找不到与此错误相关的帮助主题.检查Windows窗体设计时错误列表


有关此错误的论坛帖子

在MSDN论坛中搜索与此错误相关的帖子

To prevent possible data loss before loading the designer, the following errors must be resolved:



1 Error

Why am I seeing this page?





The class name ''?'' is not a valid identifier for this language.




Instances of this error (1)

1. Show Call Stack

at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.CodeTypeDeclarationFromCodeClass(CodeClass vsClass)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.OnNamespacePopulateTypes(Object sender, EventArgs e)
at System.CodeDom.CodeNamespace.get_Types()
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.Parse(TextReader codeStream)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.MergedCodeDomParser.System.CodeDom.Compiler.ICodeParser.Parse(TextReader stream)
at System.CodeDom.Compiler.CodeDomProvider.Parse(TextReader codeStream)
at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_CompileUnit()
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)

Help with this error

Could not find an associated help topic for this error. Check Windows Forms Design-Time error list


Forum posts about this error

Search the MSDN Forums for posts related to this error

推荐答案

看来,唯一的解决方案是创建一个新项目并将所有代码移至新项目.专案.

但是,在执行此操作之前,请尝试此操作.

0)在Visual Studio菜单中,单击Build | Clean solution.

1)关闭Visual Studio

2)手动删除解决方案中所有项目的obj和bin文件夹.

3)在主项目文件夹中,删除SUO文件

4)重新启动Visual Studio,加载您的解决方案,然后查看问题是否仍然存在

5)如果这不能解决问题,则您将必须按照我在此消息顶部所述的那样启动一个新项目.
It looks like the only solution to this is to create a new project and move all of your code to the new project.

Before you do that though, try this.

0) In the Visual Studio menu, click Build | Clean solution.

1) Shut down Visual Studio

2) Manually delete both the obj and bin folders for all projects in the solution.

3) In the main project folder, delete the SUO file

4) Restart Visual Studio, load your solution, and see if the problem still exists

5) If this didn''t solve the issue, you''re going to have to start a new project as I described at the top of this message.


这篇关于总是会出现此错误,这是什么?我将如何解决此问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆