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!

    Unable to import packages from another Proget instance

    Scheduled Pinned Locked Moved Support
    11 Posts 3 Posters 43 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.
    • G Offline
      gbeckett
      last edited by gbeckett

      When following the guide on how to setup Importing from Other Feeds/Servers we get a (500) Server Error.

      We get this error after we click the button "Import packages" or "Download Package From Another Service" (the first when we do this with a Docker feed, the latter when we try to set it up for a Nuget feed).

      The error message we see is: Unable to cast object of type Inedo.Extensions.Credentials.UsernamePasswordCredentials' to type 'Inedo.ProGet.FeedImporters.FeedImportService'.

      Is this a known problem? Does anyone have a suggestion on how to fix it?
      We face the same problem with both version 2025.21 and 2025.22
      This is the complete stacktrace (redacted confidential information):

      An error occurred in the web application: Unable to cast object of type 'Inedo.Extensions.Credentials.UsernamePasswordCredentials' to type 'Inedo.ProGet.FeedImporters.FeedImportService'.
      
      URL: http://proget.***REDACTED***.services/feed/import/packages/importer?feedId=4
      Referrer: https://proget.***REDACTED***.services/feed/import/packages?feedId=4
      User: Admin
      User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
      IP Address: 10.13.201.75
      Stack trace:    at Inedo.ProGet.WebApplication.Pages.Feeds.ImportWithImporterPage.<>c.<CreateChildControlsAsync>b__19_13(Credentials c) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E641388\Src\src\ProGet\WebApplication\Pages\Feeds\ImportPackagesOfTheNewPage.cs:line 90
         at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
         at System.Linq.Enumerable.WhereEnumerableIterator`1.ToList()
         at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
         at Inedo.ProGet.WebApplication.Pages.Feeds.ImportWithImporterPage.<>c__DisplayClass19_0.<CreateChildControlsAsync>g__selectExistingSource|0() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E641388\Src\src\ProGet\WebApplication\Pages\Feeds\ImportPackagesOfTheNewPage.cs:line 88
         at Inedo.ProGet.WebApplication.Pages.Feeds.ImportWithImporterPage.CreateChildControlsAsync() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E641388\Src\src\ProGet\WebApplication\Pages\Feeds\ImportPackagesOfTheNewPage.cs:line 83
         at Inedo.ProGet.WebApplication.Pages.ProGetSimplePage.InitializeAsync() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E641388\Src\src\ProGet\WebApplication\Pages\ProGetSimplePage.cs:line 69
         at Inedo.Web.PageFree.SimplePageBase.ExecutePageLifeCycleAsync()
         at Inedo.Web.PageFree.SimplePageBase.ProcessRequestAsync(AhHttpContext context)
         at Inedo.Web.AhWebMiddleware.InvokeAsync(HttpContext context)
      
      ::Web Error on 03/03/2026 17:20:32::
      
      1 Reply Last reply Reply Quote 0
      • Dan_WoolfD Offline
        Dan_Woolf inedo-engineer
        last edited by

        Hi @gbeckett,

        Would you be able to provide us with a screenshot of the manage credentials page? https://proget.***REDACTED***.services/administration/credentials?showFeedImportServicesOnly=True

        I think I see what could cause this error, but it would help us to pinpoint the issue.

        Thanks,
        Dan

        G 1 Reply Last reply Reply Quote 0
        • G Offline
          gbeckett @Dan_Woolf
          last edited by

          @Dan_Woolf
          Here is a screenshot of that page:
          b3487b7c-c2a1-4241-bfb4-35bb71f29db6-image.png

          1 Reply Last reply Reply Quote 0
          • Dan_WoolfD Offline
            Dan_Woolf inedo-engineer
            last edited by

            Hi @gbeckett,

            Thanks for sending that screenshot. It is not what I expected to see, but I can see why that issue is happening now.

            I have created ticket PG-3234 to fix this issue. It will be released this Friday in ProGet 2025.23.

            Thanks,
            Dan

            G 1 Reply Last reply Reply Quote 1
            • G Offline
              gbeckett @Dan_Woolf
              last edited by

              @Dan_Woolf Thanks! I'll update you once we've installed the update

              1 Reply Last reply Reply Quote 0
              • G Offline
                gbeckett
                last edited by

                Unfortunately we still see the exact same behaviour:

                1c4012e2-1cd6-46e2-96aa-cb07de4ff239-image.png

                with the following stacktrace

                An error occurred in the web application: Unable to cast object of type 'Inedo.Extensions.Credentials.UsernamePasswordCredentials' to type 'Inedo.ProGet.FeedImporters.FeedImportService'.
                
                URL: http://proget.***REDACTED***.services/feed/import/packages/importer?feedId=3&step=SelectSource
                Referrer: https://proget.***REDACTED***.services/containers/registry?feedId=3
                User: Admin
                User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
                IP Address: 10.13.151.55
                Stack trace:    at Inedo.ProGet.WebApplication.Pages.Feeds.ImportWithImporterPage.<>c.<CreateChildControlsAsync>b__19_19(Credentials c) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E645311\Src\src\ProGet\WebApplication\Pages\Feeds\ImportPackagesOfTheNewPage.cs:line 141
                   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
                   at System.Linq.Enumerable.WhereEnumerableIterator`1.ToList()
                   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
                   at Inedo.ProGet.WebApplication.Pages.Feeds.ImportWithImporterPage.<>c__DisplayClass19_0.<CreateChildControlsAsync>g__selectImportSource|1() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E645311\Src\src\ProGet\WebApplication\Pages\Feeds\ImportPackagesOfTheNewPage.cs:line 139
                   at Inedo.ProGet.WebApplication.Pages.Feeds.ImportWithImporterPage.CreateChildControlsAsync() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E645311\Src\src\ProGet\WebApplication\Pages\Feeds\ImportPackagesOfTheNewPage.cs:line 81
                   at Inedo.ProGet.WebApplication.Pages.ProGetSimplePage.InitializeAsync() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E645311\Src\src\ProGet\WebApplication\Pages\ProGetSimplePage.cs:line 69
                   at Inedo.Web.PageFree.SimplePageBase.ExecutePageLifeCycleAsync()
                   at Inedo.Web.PageFree.SimplePageBase.ProcessRequestAsync(AhHttpContext context)
                   at Inedo.Web.AhWebMiddleware.InvokeAsync(HttpContext context)
                
                ::Web Error on 03/09/2026 09:02:03::
                
                1 Reply Last reply Reply Quote 0
                • rhessingerR Offline
                  rhessinger inedo-engineer
                  last edited by

                  Hi @gbeckett,

                  It looks like there was a merge issue and part of this fix was undone. I have created a new ticket, PG-3240 to fix it. If you would like, I can create a pre-release of ProGet 2025.24 with the fix that you can install now. If not, the fix will be released at the end of next week in ProGet 2025.24.

                  Thanks,
                  Rich

                  Products Engineer, Inedo

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    gbeckett
                    last edited by

                    Thank you @rhessinger

                    If you could provide us with a pre-release so we can test the fix that would be great.

                    1 Reply Last reply Reply Quote 0
                    • rhessingerR Offline
                      rhessinger inedo-engineer
                      last edited by

                      Hi @gbeckett,

                      I just pushed out a pre-release version of ProGet 2025.24-rc.3 and can be installed via InedoHub. Please see our our guide on installing pre-release verions for more information. Please let us know if you have nay problems.

                      Thanks,
                      Rich

                      Products Engineer, Inedo

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        gbeckett
                        last edited by

                        Hi @rhessinger,

                        Sorry for the belated reply, we are running the pre release now and this solved the issues we were facing!

                        1 Reply Last reply Reply Quote 0
                        • rhessingerR Offline
                          rhessinger inedo-engineer
                          last edited by

                          Hi @gbeckett,

                          Glad to hear it is working for you! Please let us know if you run into any other issues.

                          Thanks,
                          Rich

                          Products Engineer, Inedo

                          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