Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

latest StaticFiles package causing error #23

Closed
Praburaj opened this issue Dec 24, 2014 · 1 comment
Closed

latest StaticFiles package causing error #23

Praburaj opened this issue Dec 24, 2014 · 1 comment

Comments

@Praburaj
Copy link
Contributor

From @devmondo on December 24, 2014 10:43

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()

Copied from original issue: dotnet/aspnetcore#249

@Praburaj
Copy link
Contributor Author

Moving this bug to static files repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants