Win2003的DotNet Framework损坏,不知道该怎么修复?
2004-04-25 10:27
330 查看
我使用的是Win2003 Standard Server + VS.Net 2003,最近发现在VS.Net中DataGrid无法使用,总是显示一个“创建控件时出错”的错误提示(见附图),开始怀疑是VS.Net 2003的问题,后来把VS.Net卸载后重装,问题依旧,试着使用SharpDeveloper,发现根本就无法创建Form,只要一创建就会提示一大堆如下所示的错误信息:
System.NullReferenceException: Object reference not set to an instance of an object.
at ICSharpCode.SharpDevelop.FormDesigner.FormKeyHandler.PreFilterMessage(Message& m)
at System.Windows.Forms.ThreadContext.System.Windows.Forms.UnsafeNativeMethods+IMsoComponent.FPreTranslateMessage(MSG& msg)
at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop
(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at ICSharpCode.SharpDevelop.SharpDevelopMain.ShowErrorBox(Object sender, ThreadExceptionEventArgs eargs)
at System.Windows.Forms.ThreadContext.OnThreadException(Exception t)
at System.Windows.Forms.Control.WndProcException(Exception e)
at System.Windows.Forms.ControlNativeWindow.OnThreadException(Exception e)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message& m)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.ParkingWindow.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
我怀疑是Framework损坏,但是运行dotnetfx.exe重新安装时提示“您尝试安装的产品已经随操作系统一起安装到计算机上,请使用Update安装最新的更新”
现在我该怎么办?除了重装系统还有什么办法吗
?
document.body.clientWidth-300) {this.height=(document.body.clientWidth-300)*this.height/this.width;this.width=document.body.clientWidth-300}" border=0>
System.NullReferenceException: Object reference not set to an instance of an object.
at ICSharpCode.SharpDevelop.FormDesigner.FormKeyHandler.PreFilterMessage(Message& m)
at System.Windows.Forms.ThreadContext.System.Windows.Forms.UnsafeNativeMethods+IMsoComponent.FPreTranslateMessage(MSG& msg)
at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop
(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at ICSharpCode.SharpDevelop.SharpDevelopMain.ShowErrorBox(Object sender, ThreadExceptionEventArgs eargs)
at System.Windows.Forms.ThreadContext.OnThreadException(Exception t)
at System.Windows.Forms.Control.WndProcException(Exception e)
at System.Windows.Forms.ControlNativeWindow.OnThreadException(Exception e)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message& m)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.ParkingWindow.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
我怀疑是Framework损坏,但是运行dotnetfx.exe重新安装时提示“您尝试安装的产品已经随操作系统一起安装到计算机上,请使用Update安装最新的更新”
现在我该怎么办?除了重装系统还有什么办法吗
?
document.body.clientWidth-300) {this.height=(document.body.clientWidth-300)*this.height/this.width;this.width=document.body.clientWidth-300}" border=0>
相关文章推荐
- 互操作之DotnetFramework跨平台解决方案
- 怎么修改.net framework版本
- 研究ASP.NET 2.0和DotNet Framework 2.0
- HDFS文件损坏是怎么回事?如何修复损坏的HDFS文件。
- dotNetFlexGrid必须的组件-Newtonsoft.Json.Net20.dll下载,同时修复WebApp的BUG
- SQL SERVER取出日期型怎么毫秒都丢失了,请教~~http://www.dotnetsky.net/netsave/ShowTopic-41286.html
- 【备忘★技术运维】不重启IIS修改dotnet framework版本
- 演练:我的第一个 WPF 桌面应用程序 https://docs.microsoft.com/zh-cn/dotnet/framework/wpf/getting-started/walkthrough-my-first-wpf-desktop-application
- DOTNET FRAMEWORK 4.0 x64 与 Oracle
- Monad B2 For Dotnet Framework 2.0 RC/RTM Released!
- win10怎么安装.net 3.5?win10离线安装.NET Framework 3.5教程
- 微软.NET设计上的一个错误(从.NET1.1--4.0),不知道以后.NET会不会修复这个错误
- 修复bug,增加BasePath参数 - dotnetFlexGrid 1.21beta更新 争取做ASP.NET中最好的Ajax开源表格控件
- IIS6(Win2003) 使用.net framework 4.0 后,默认文档失效解决方案。
- [Remoting]dotNet Framework升级后Remoting信道使用的安全问题
- Professional DotNetNuke 4: Open Source Web Application Framework for ASP.NET 2.0
- Printing a DataGridView on DotNet Framework
- Dot Net FrameWork 4.0 学习笔记(5)
- 如何改变Vs2010 中CLR编程中需要的dotNetFramework版本号:How to: Modify the Target Framework and Platform Toolset
- 真正开始学习,asp.net了,可是不知道怎么在新闻首页添加可以滚动的新闻条。