这几天,竟遇见些奇葩问题,有的实在懒的写了,这个比较有意思,以前没见过,写个文章记录下:

Error Creating Control -"Object Reference Not Set To An Instance Of Object"

在winforms页面中,所有page的所有服务器控件的位置出现一行红字“Error Creating Control - Object reference not set to an instance of an object”,也无法进行控件拖放,只能在source中编辑代码。

这个结果不方便查看效果,很不正常。

再查找过程中,根据博客园有个人的链接,找到如下地址,

添加if(!this.DesignMode), 判断设计模式,但是感觉不是这个问题,贴出来,欣赏下思路

http://blogs.msdn.com/b/webdev/archive/2010/05/06/another-error-creating-control-in-the-design-view-with-object-reference-not-set-in-visual-studio-2010.aspx

后来发现,组里的同项目人员居然没有问题,一切正常,甚是纳闷,考虑到是否版本问题,framework? xhtml?vs?

仔细检查了以下,发现自己用的是VS2010版本,同事用的vs2010sp1,也就是说有可能是版本问题了,

在公司ftp里找到vs补丁,嘿呀 1.6G,够大。。。  装了老半天,装好之后重启就出现了控件,问题解决。

今天任务弄完之后,仔细想了一下,为何会引起这种情况,项目中,应用到了多个Register指令,同一个文件中自定义多个自定义服务器控件,所以判断可能是此引起的,但是不确定。。

看官,如果找到引发的原因,敬请告知,谢谢

本文仅为记录所用,不做他用。

NET:Error Creating Control -Object Reference Not Set To An Instance Of Object相关推荐

  1. Error Creating Control when creating a custom control

    如果你在创建ASP.NET的Server Control 是遇到报错: "Error Creating Control" when creating a custom contro ...

  2. 启动Nginx时报错:error while loading shared libraries: librdkafka.so.1: cannot open shared object file: No

    安装了Nginx之后,启动时报错: error while loading shared libraries: librdkafka.so.1: cannot open shared object f ...

  3. 报错:Error creating bean with name ‘serverEndpointExporter‘ defined in class path resource [group/oneo

    背景 启动springboot项目测试类时报错: Error creating bean with name 'serverEndpointExporter' defined in class pat ...

  4. 【解决思路】Spring Boot:Error creating bean with name ‘xxxDao‘

    [解决思路]Spring Boot:Error creating bean with name 'xxxDao' 问题重现 运行Spring Boot 项目是报错:Failed to load App ...

  5. Xap packaging failed , Object reference not set to an instance of an object.

    昨天上微薄 突然看到silverlight toolkit for windows phone更新了,灰常兴奋,立刻下载想看看有哪些改进,发现没有xap包,但是看到有源码在,心想直接编译生成以下不久得 ...

  6. [Bug]Object reference not set to an instance of an object.

    引言 今天在客户这儿,由一个问题导致,需求的变化,不得不修改代码,在记录日志中出现该问题. 原因 通过id查找相关信息,没有判断是否为null,集合是否有数据. Object reference no ...

  7. Visual Studio 2015打开ASP.NET MVC的View提示“Object reference not set to an instance of an object“错误的解决方案

    Visual Studio 2015打开ASP.NET MVC的View提示"Object reference not set to an instance of an object&quo ...

  8. C#更新对象值//删除时异常 Object reference not set to an instance of an object.

    更新实体时,查询结果后用qcmbatch.BatchId 的形式更改要更新的属性值(而不是new新实体[qcmbatch = new QcmBatch() ]x) if (InTag.final_de ...

  9. Spring注入bean报错:Error creating bean with name的网上找不到的解决方案

    今天在研究BaseService,在进行单元测试时,发现tomcat一直报错,错误代码如下: org.springframework.beans.factory.BeanCreationExcepti ...

最新文章

  1. s9.16作业,员工信息表
  2. 记真实自己,炫精彩人生---《爱记》app使用体验
  3. 多线程put后可能导致get死循环
  4. 微信8.0之后,又悄悄上线新功能:别人“抢不到”的红包!赶紧看看灰度到你了没?...
  5. Linux下安装Tomcat7
  6. 持续集成工具Jenkins看这篇就够啦!
  7. laravel 查询
  8. JAVA异常处理正常的逻辑_JAVA异常的思考与总结
  9. GitHub Copilot 现已登陆 Visual Studio!
  10. 百度贴吧排名计算方式
  11. 开发项目之考研计划_软件测试之项目测试计划模板
  12. shell中if条件字符串、数字比对,[[ ]]和[ ]区别
  13. 首次公开,用了三年的 pandas 速查表!
  14. Nginx 状态监控、缓存的两种机制(学习笔记十四)
  15. springboot_poi思路
  16. 如何避免循环中丑陋的break和continue
  17. 一些心理学需要知道的点。
  18. C# 实现支持markdown语法编辑器
  19. leedcode每日一题:860. 柠檬水找零
  20. Win10-1809 离线安装 .net framework 3.5

热门文章

  1. 为你的 Linux 桌面设置一张实时的地球照片
  2. c语言如何初始化程序,浅谈C语言的初始化
  3. CentOS6-yun install wget失败
  4. Python-Flask开发微电影网站(三)
  5. 夏天一直流汗,做近视矫正手术会有影响吗?
  6. python 例子 银行_Python3实现简单的银行账户登录系统实例
  7. IDEA注释模板设置【非常实用】
  8. 【项目】游戏开发期末大作业 之 基于Java的小游戏 “大鱼吃小鱼“ (代码素材齐全)
  9. 读书笔记008:《伤寒论》- 手太阳小肠经
  10. 新一代人工智能发展规划发布