You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.
if i remove the following from Startup.cs everything works fine
app.UseStaticFiles();
but if i add it, i get the following error if i am browsing to any page, like "http://localhost/home" but serving static files works fine.
An unhandled exception occurred while processing the request.
ArgumentOutOfRangeException: The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset
System.DateTimeOffset.ValidateDate(DateTime dateTime, TimeSpan offset)
Stack Query Cookies Headers Environment
ArgumentOutOfRangeException: The UTC time represented when the offset is applied must be between year 0 and 10,000. Parameter name: offset
System.DateTimeOffset.ValidateDate(DateTime dateTime, TimeSpan offset)
System.DateTimeOffset..ctor(DateTime dateTime)
Microsoft.AspNet.StaticFiles.StaticFileContext..ctor(HttpContext context, StaticFileOptions options, PathString matchUrl, ILogger logger)
Microsoft.AspNet.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
Microsoft.AspNet.Diagnostics.ErrorPageMiddleware.<Invoke>d__1.MoveNext()
From @devmondo on December 24, 2014 10:43
if i remove the following from Startup.cs everything works fine
but if i add it, i get the following error if i am browsing to any page, like "http://localhost/home" but serving static files works fine.
Copied from original issue: dotnet/aspnetcore#249
The text was updated successfully, but these errors were encountered: