用Visual C#编写ASP.NET Web应用程序 遇到的低级问题!

Cat2003 2003-07-06 05:21:19
1、打开VS.NET
2、点 文件-新建-项目
3、在项目类型选 Visual C#项目 在右边模板里面选 ASP.NET Web应用程序
4、所建项目名称为11,位置为默认,然后 确定
然后按F5运行,在IE里出现如下错误信息。

Server Error in '/11' Application.
--------------------------------------------------------------------------------

Method not found: Void System.EventHandler..ctor(System.Object, IntPtr).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.MissingMethodException: Method not found: Void System.EventHandler..ctor(System.Object, IntPtr).

Source Error:


Line 28: // CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。
Line 29: //
Line 30: InitializeComponent();
Line 31: base.OnInit(e);
Line 32: }


Source File: c:\inetpub\wwwroot\11\webform1.aspx.cs Line: 30

Stack Trace:


[MissingMethodException: Method not found: Void System.EventHandler..ctor(System.Object, IntPtr).]
_11.WebForm1.InitializeComponent() +0
_11.WebForm1.OnInit(EventArgs e) in c:\inetpub\wwwroot\11\webform1.aspx.cs:30
System.Web.UI.Control.InitRecursive(Control namingContainer)
System.Web.UI.Page.ProcessRequestMain()

我试着建了几个同样的项目都如此,如何解决,希望各位高指教。
...全文
16 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
LiSDN 2003-07-06
  • 打赏
  • 举报
回复
重装IIS,再注册吧
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -c

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧