Everything works when I test my site using VS2005s built in web server. If I upload my site to the staging server and allow it to JIT compile everything works fine. If I try to pre-compile the website and upload it to the staging server I will get a System.NullReferenceException: Object reference not set to an instance of an object. error when I visit the page with the CuteEditor control.
I've got this reference at the top of the page:
<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
This is my declaration of the control in an EditItemTemplate in a gridview on the page:
<CE:Editor id="Editor1" runat="server" Text='<%# Bind("Body") %>' BreakElement="Br" Width="99%" />
Why does all of this work perfectly when using JIT compile but not when pre-compiling the site? Note, I have left the Client files out of the compile and add them manually to the deployment folder after the compile finishes.