Error connecting to undo manager of souce file

文章提供了几种解决Visual Studio 2008中在调试WebApplication时,频繁弹出关于designer文件错误提示的问题的方法,包括从项目中排除文件、重新编译、再加入文件等步骤,以及重启IDE、清理缓存等解决方案。

在调试Web Application时,经常弹出如下的提示

clip_image002

我使用的版本是Visual Studio 2008,机器是XP SP2 这个问题只针对aspx生成的designer文件,其他文件不会产生这个提示。 对Web Site类型的项目也没有影响,因为Web Site没有自动生成的designer文件 在网上找了一下,发现这个问题还比较常见,自VS2003以来,这个问题就一直存在。 MS didn't fix this issue for years

 

ASP.NET 高级编程》的作者在他的博客中有个解决办法,地址是http://www.hanselman.com/blog/ErrorConnectingToUndoManagerOfSourceFileQuotwhateverDesignerquot.aspx This error is more than a little irritating, especially considering this is Visual Studio 2005 SP1. I'm getting this, now, for one file, every time I run my application.

Microsoft Visual Studio

The way I "fixed" it was to exclude the file from the Web Application Project, recompile, then re-include, the recompiles. Seems to me that the error handler that threw this message box should spend more time fixing the problem automatically and less time informing me of a problem I can do little about. Maybe that's just me

 

作者提出的办法是,从当前的Web项目中排除这个文件,重新编译,重新把它加入到项目中,再编译。

MSDN论坛中,也有相应的解决办法 MSDN论坛的讨论地址是 http://social.msdn.microsoft.com/forums/en-US/csharpide/thread/79e84cfe-3d4b-43c7-8d86-723208e4a64c/

A simpler two-step fix is to:

1) Right-click the designer file and select delete

2) Right-click the aspx file and select Convert to Web Application

I get this frequently too, and I think it stems from some sequence of editing the aspx file while the app is running in debug

右击这个designer 文件,删除。右击aspx文件,选择转换为Web应用程序,重新生成designer 文件

还有一个老兄提供的办法,把aspx文件从项目中移除,然后再加进来

 

I too was having this issue. I was using VS 2005 with the web project add-in. I found that if I excluded the offending aspx file from the project, then added it back in, the error disappeared

 

有朋友提到的,重启新动IDE的方法。quitting the IDE and restarting it is enough to fix.

如果移除aspx文件后再加入也不能解决这个问题,错误提示依然存在。需要注意操作顺序, 先移除,然后编译项目,如果编译成功,再把移除的文件加入。

如果移除后,不能编译怎么办呢?这个问题比较少见。一般aspx对应的后置代码类不是用new运算符号来直接调用,除非你把代码直接写在aspx文件中,移除后会因为找不到相关的代码而无法编译。

又一个办法

1. Shut down Visual Studio

2. Reset IIS or kill the asp.net worker process - whichever you prefer

3. Go to :/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files (in WinXP) and delete those files. If you can't delete the files, kill whichever process is using them (I use SysInternals Process Explorer for that job)

4. Restart your project and then rebuild

关闭VS IDE,重启IIS和杀死asp.net 工作进程(aspnet_wp.exe或w3_wp.exe), 删除与当前项目相关的临时文件,重新编译 如果还不行,尝试删除IE缓存的 clearing IE cache (Internet Options > Delete Files)

有这么多办法,估计可以解决遇到的大部分情况,记录下来供大家参考。

一、基础信息 数据集名称:Bottle Fin实例分割数据集 图片数量: 训练集:4418张图片 验证集:1104张图片 总计:5522张图片 分类类别: - 类别0: 数字0 - 类别1: 数字1 - 类别2: 数字2 - 类别3: 数字3 - 类别4: 数字4 - 类别5: 数字5 - 类别6: Bottle Fin 标注格式:YOLO格式,包含多边形坐标,适用于实例分割任务。 数据格式:图片格式常见如JPEG或PNG,具体未指定。 二、适用场景 实例分割AI模型开发:数据集支持实例分割任务,帮助构建能够精确识别和分割图像中多个对象的AI模型,适用于对象检测和分割应用。 工业自动化与质量控制:可能应用于制造、物流或零售领域,用于自动化检测和分类物体,提升生产效率。 计算机视觉研究:支持实例分割算法的学术研究,促进目标检测和分割技术的创新。 教育与实践培训:可用于高校或培训机构的计算机视觉课程,作为实例分割任务的实践资源,帮助学生理解多类别分割。 三、数据集优势 多类别设计:包含7个不同类别,涵盖数字和Bottle Fin对象,增强模型对多样对象的识别和分割能力。 高质量标注:标注采用YOLO格式的多边形坐标,确保分割边界的精确性,提升模型训练效果。 数据规模适中:拥有超过5500张图片,提供充足的样本用于模型训练和验证,支持稳健的AI开发。 即插即用兼容性:标注格式直接兼容主流深度学习框架(如YOLO),便于快速集成到各种实例分割项目中。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值