Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

startup question

Status
Not open for further replies.

xbillhamlin

Programmer
Feb 19, 2003
5
US
I have Visual Studio .NET installed on my XP Pro at work.

I have the .NET framework installed on a Windows 2000 web server. I also installed service pack 2 on that.

I create an asp.net project and point it to the w2k machine. It fails saying it can't access the web server using a share and would I like to try front page extensions. I say yes, and it is able to create the project.

I hit ctrl-F5 to "run" the empty page. I get an error saying it can't find System.Web.HttpNotFoundHandler. I read somewhere that this is a known problem so I eliminate that from the web.comfig file.

I rerun and now I get

========================
Method not found: Void System.EventHandler..ctor(System.Object, UIntPtr).
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, UIntPtr).

Source Error:


Line 41: private static System.Collections.ArrayList __fileDependencies;
Line 42:
Line 43: public WebForm1_aspx() {
Line 44: System.Collections.ArrayList dependencies;
Line 45: if ((ASP.WebForm1_aspx.__intialized == false)) {


Source File: C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\wa9\311daf1c\159314e7\xiu6ppe5.0.cs Line: 43

Stack Trace:


[MissingMethodException: Method not found: Void System.EventHandler..ctor(System.Object, UIntPtr).]
wa9.WebForm1..ctor() +0
ASP.WebForm1_aspx..ctor() in C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files\wa9\311daf1c\159314e7\xiu6ppe5.0.cs:43

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +0
System.Activator.CreateInstance(Type type, Boolean nonPublic) +65
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +271
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +107
System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +175

[HttpException (0x80004005): Failed to create page of type 'ASP.WebForm1_aspx'.]
System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +349
System.Web.UI.PageParser.GetCompiledPageInstance(String virtualPath, String inputFile, HttpContext context) +43
System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +14
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +174
System.Web.MapHandlerExecutionStep.Execute() +78
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288

========================

what am I doing wrong?

Thanks,
Bill
 
Bill I ran into this myself. This is obviously not the correct solution but try making yourself an admin on the w2k server and see if that works for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top