Here is something I didn't know until recently:
I have attached a test solution to illustrate the case - AssemblyInTheFuture.zip
Here is the error in more user friendly format:
Specified argument was out of the range of valid values. 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.
System.ArgumentOutOfRangeException: Specified argument was out of the range
of valid values.
Parameter name: utcDate
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: utcDate]
System.Web.HttpCachePolicy.UtcSetLastModified(DateTime utcDate) +3261043
System.Web.HttpCachePolicy.SetLastModified(DateTime date) +47
System.Web.Handlers.ScriptResourceHandler.PrepareResponseCache(HttpResponse response, Assembly assembly) +194
System.Web.Handlers.ScriptResourceHandler.ProcessRequest(HttpContext context) +1154
System.Web.Handlers.ScriptResourceHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +4
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
A good thing to know is that the good old WebResource.axd does not depend on the time. You can try the following (in Default.aspx.cs):
protected void Page_Load(object sender, EventArgs e)
In a word always make sure that you don't deploy assemblies which are built in the future :) This may happen if you deploy your web site on a server in a different time zone.
And don't forget to restore your system date :)