title: Getting an exception when site is pushed to production
body: <p>This is probably a shot in the dark but here goes nothing...</p>
  
  <p>I have a Sitecore 6 site that I am developing locallty.  When I pushed it to the production server, I now get an exception when trying to access the site.  I had done an upgrade of the Sitecore version, and added the Forms module, among some other minor edits.  So I moved everything to production, changed the connection strings, and changed the directory references in the web.config, but I still get this error.</p>
  
  <p><strong>My local machine still works fine, and even my staging server (hooked up via SVN and Cruise Control) works fine, but I can't fix this error on production.</strong></p>
  
  <p>At the bottom of the stack trace (below), it looks like it is trying to instantiate the search manager.  Maybe that has something to do with it?</p>
  
  <p>Or maybe I missed a setting when I moved everything?  What settings need to be changed when the environment changes?</p>
  
  <p><strong>Here is what I've tried so far:</strong></p>
  
  <ol>
  <li>Re-copied all of the files and databases.</li>
  <li>Gave full control permissions to the worker process, ASPNET, and Network Service users.</li>
  <li>Double checked the directory paths in the web.config that needed to be configured.</li>
  <li>Double checked the connection string in the connectionstring.config.</li>
  <li>Recycled the App Pool</li>
  <li>Stopped and started the site</li>
  <li>Cleared my local browser cache (as they instruct you to do in the upgrade docs)</li>
  </ol>
  
  <h2><strong>This is the exception that is being thrown when I try and access any page:</strong></h2>
  
  <p>Thread information:
      Thread ID: 1
      Thread account name: 180716WEB1\testcom_web
      Is impersonating: False
      Stack trace:    at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct&amp; sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
     at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
     at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
     at Sitecore.Reflection.ReflectionUtil.SetProperty(Object obj, PropertyInfo property, Object value)
     at Sitecore.Reflection.ReflectionUtil.SetProperty(Object obj, String name, Object value)
     at Sitecore.Configuration.Factory.AssignProperties(Object obj, Object[] properties)
     at Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper)
     at Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
     at Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert)
     at Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper)
     at Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
     at Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert)
     at Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper)
     at Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
     at Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert)
     at Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert)
     at Sitecore.Configuration.Factory.CreateObject(String configPath, Boolean assert)
     at Sitecore.Search.SearchManager..cctor()</p>
  
  <p>Custom event details:</p>
  
  <p>For more information, see Help and Support Center at <a href="http://go.microsoft.com/fwlink/events.asp" rel="nofollow noreferrer">http://go.microsoft.com/fwlink/events.asp</a>.</p>