用Visual C#编写ASP.NET Web应用程序 遇到的低级问题!
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()
我试着建了几个同样的项目都如此,如何解决,希望各位高指教。