title: Moved a Sitecore 6 site to production but got a Media.UploadWatcher Exception?
body: <p>Has anyone seen an exception relating to the Media.UploadWatcher?  I don't have the error handy, but the exception was causing all pages to not load, even the admin section.  In order to fix it, I reset the application pool and the site came back up right away.</p>
  
  <p>I know that the client was uploading some large files through the content editor, but I wouldn't think that alone would cause problems.  I have upped the <code>MaxExecutionTime</code> to allow for those uploads, but again, I don't think that would be the problem.  Is there something I forgot to do while moving the code to production or is there a setting that might be off?  All I did was copy the code to production, and change the directory references in the web.config to point to the new locations (like the license file).</p>
  
  <p>There error hasn't come up again, but I'm scared it will come up at an inopportune time.  Any ideas?</p>
  
  <p>Thanks in advance! </p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>The exception just occurred again on the live site and I had to recycle the app pool.  Anyone know what could be causing this?  Here is the exception from the event log:</p>
  
  <blockquote>
    <p>Event code: 3005<br>
    Event message: An unhandled exception has occurred.<br>
    Event time: 1/4/2010 9:56:50 AM<br>
    Event time (UTC): 1/4/2010 3:56:50 PM<br>
    Event ID: 7fbcc8d807204614904572753b4beb2e<br>
    Event sequence: 23<br>
    Event occurrence: 22<br>
    Event detail code: 0  </p>
    
    <p>Application information:<br>
        Application domain: /LM/w3svc/1422107501/root-1-129070941106290901<br>
        Trust level: Full<br>
        Application Virtual Path: /<br>
        Application Path: C:\HostingSpaces\mysite\mysite.com\wwwroot\<br>
        Machine name: 180716WEB1  </p>
    
    <p>Process information:<br>
        Process ID: 310020<br>
        Process name: w3wp.exe<br>
        Account name: 180716WEB1\myuser_web  </p>
    
    <p>Exception information:<br>
        Exception type: TypeInitializationException<br>
        Exception message: The type initializer for 'Sitecore.Resources.Media.UploadWatcher' threw an exception.  </p>
    
    <p>Request information:<br>
        Request URL: <a href="http://www.mysite.com/Default.aspx" rel="nofollow noreferrer">http://www.mysite.com/Default.aspx</a><br>
        Request path: /Default.aspx<br>
        User host address: 75.147.19.21<br>
        User:<br>
        Is authenticated: False<br>
        Authentication Type:<br>
        Thread account name: 180716WEB1\myuser_web  </p>
    
    <p>Thread information:<br>
        Thread ID: 7<br>
        Thread account name: 180716WEB1\myuser_web<br>
        Is impersonating: False<br>
        Stack trace:  </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>
  </blockquote>