-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Description
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()
Metadata
Metadata
Assignees
Labels
No labels