title: Method not found: 'Void System.Web.UI.ScriptResourceDefinition
body: <p>I've built a fairly simple website in using Visual Studio 2012 using .net 4.5 version.</p>
  
  <p>When I uploaded the website to my server I get the following error:</p>
  
  <p>Method not found: 'Void System.Web.UI.ScriptResourceDefinition.set_LoadSuccessExpression(System.String)'.</p>
  
  <p>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. </p>
  
  <p>Exception Details: System.MissingMethodException: Method not found: 'Void System.Web.UI.ScriptResourceDefinition.set_LoadSuccessExpression(System.String)'.</p>
  
  <p>[MissingMethodException: Method not found: 'Void System.Web.UI.ScriptResourceDefinition.set_LoadSuccessExpression(System.String)'.]
     Microsoft.ScriptManager.WebFormsv45.PreApplicationStartCode.Start() +0</p>
  
  <p>[InvalidOperationException: The pre-application start initialization method Start on type Microsoft.ScriptManager.WebFormsv45.PreApplicationStartCode threw an exception with the following error message: Method not found: 'Void System.Web.UI.ScriptResourceDefinition.set_LoadSuccessExpression(System.String)'..]
     System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +423
     System.Web.Compilation.BuildManager.CallPreStartInitMethods() +306
     System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677</p>
  
  <p>[HttpException (0x80004005): The pre-application start initialization method Start on type Microsoft.ScriptManager.WebFormsv45.PreApplicationStartCode threw an exception with the following error message: Method not found: 'Void System.Web.UI.ScriptResourceDefinition.set_LoadSuccessExpression(System.String)'..]
     System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9090876
     System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
     System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256</p>
  
  <p>(the hosting company provides the following: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272)</p>
  
  <p>I am aware of this question/answer:
  <a href="http://forums.asp.net/t/1823969.aspx/1" rel="nofollow noreferrer">http://forums.asp.net/t/1823969.aspx/1</a> But I find it wasn't very helpful since it doesn't provide any details about where I would correct the references (I am not sure where/what csproj is).</p>
  
  <p>Also I am aware of the similar question posted here with no answers:</p>
  
  <p><a href="https://stackoverflow.com/questions/16038404/method-not-found-void-system-web-ui-scriptresourcedefinition-set-loadsuccessex">Method not found: &#39;Void System.Web.UI.ScriptResourceDefinition.set_LoadSuccessExpression(System.String)&#39;</a></p>
  
  <p>Any tips and suggestions how to fix this issue are appreciated.</p>
  
  <p>Thank you!</p>