Coder Social home page Coder Social logo

Comments (4)

dnauck avatar dnauck commented on June 30, 2024

Could you please post a complete stack trace of that exception?

from portable.licensing.

NoahStahl avatar NoahStahl commented on June 30, 2024

Sure:

System.FormatException: String was not recognized as a valid DateTime because the day of week was incorrect.

Stack trace:

at System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style)
at System.DateTime.ParseExact(String s, String format, IFormatProvider provider, DateTimeStyles style)
at Portable.Licensing.License.get_Expiration()
at Portable.Licensing.Validation.LicenseValidationExtensions.b__1(License license)
at Portable.Licensing.Validation.ValidationChainBuilder.d__1.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

from portable.licensing.

sjdirect avatar sjdirect commented on June 30, 2024

I'm having the same issue...

See related github issue here

<Expiration>Fri, 31 Dec 9999 23:59:59 GMT</Expiration>

This date blows up on just some of my customer's machines. I have not been able to repro on any environment. Below is a screenshot that one of them sent me.

c9129384-a70f-11e5-9b0e-774c8adc56ee
.

from portable.licensing.

sjdirect avatar sjdirect commented on June 30, 2024

Looks like when you have a license with a expiration date of DateTime.MaxValue which is (Fri, 31 Dec 9999 23:59:59 GMT), some version of visual studio/.net fail. I was unable to replicate this on vs 2012, 2013, 2015 but other user's of my project were.

My solution was to generate a permanent license that expires in a 100 years instead of using DateTime.MaxValue.

from portable.licensing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.