Varje gång jag skall kompilera min kod får jag fram följade fel meddelande.
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 37: // CODEGEN: This call is required by the ASP.NET Web Form Designer.
Line 38: //
Line 39: InitializeComponent();
Line 40: base.OnInit(e);
Line 41: }
koden fungerar om jag använder script-block, men inte när jag kör code-behinde.
