Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Specified cast is not valid

    Scheduled Pinned Locked Moved Support
    proget
    4 Posts 2 Posters 12 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Description

      I am getting an error every minute of "Specified cast is not valid". I also get this error commonly when trying to execute certain tasks such as re-index a feed

      Categories:

      DropPathMonitorRunner
      FeedReplicationRunner

      Stack trace:

      System.InvalidCastException: Specified cast is not valid.
      at System.Data.SqlClient.SqlBuffer.get_DateTime()
      at System.Data.SqlClient.SqlDataReader.GetDateTime(Int32 i)
      at lambda_method(Closure , DbDataReader )
      at Inedo.Data.StrongDataReader.<ReadAllAsync>d__51.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Inedo.Data.DatabaseContext.<ExecuteTableAsync>d__351.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at Inedo.ProGet.Service.DropPathMonitorRunner.<RunAsync>d__2.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at Inedo.TaskRunner.<RunInternalAsync>d__44.MoveNext()

      Product: ProGet
      Version: 5.2.4

      1 Reply Last reply Reply Quote 0
      • jjonesJ Offline
        jjones inedo-engineer
        last edited by

        Hi Jared,

        I currently do not have enough information to try and reproduce this.. Has this just recently started? Will this occur when re-indexing every feed or a specific one. Do you have feed replication configured on feeds?

        Thanks,
        Jason

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          I just noticed it after upgrading from 5.1.22 to 5.2.5. I only have one NuGet feed. I don't have feed replication configured, we don't need it.

          However, I think I may have fixed it. I just enabled feed replication, saved it, then disabled again, and now I can re-index with no errors.

          1 Reply Last reply Reply Quote 0
          • jjonesJ Offline
            jjones inedo-engineer
            last edited by

            Hi Jared,

            I am glad it is fixed. I will make a note of how you were able to get it resolved! If you notice anything else, let us know.

            Thanks,
            Jason

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation