NuGet - LinqPad 5 uses official nuget even though disabled

Hi,
I hope someone can help. I have my own NuGet repository, and this is enabled (using Linqpad NuGet Manager => Settings). The "NuGet3 official package source" is disabled.

When I attempt to download a package (from my own repo), I get the following exception:


Error downloading 'package name here' - Unable to load the service index for source https://api.nuget.org/v3/index.json.



https://api.nuget.org/v3/index.json - this is the source for the official NuGet repo, not my repo.


Anyone know how to get round this?

Many thanks.

Chris

Comments

  • NB: Using LINQPad 4, I don't have this problem.
  • Same Problem here. The Firewall is blocking the communication to https://api.nuget.org/v3/index.json but we are not able to disable the default package in the GUI.

    I have disabled the default NuGet Package Source, but version 5 is still trying to geht packages details from the disabled default source. Thus resulting in an error being unable to download NuGet Packes from our local source.

    With version 4 we don't have this issue, it appears only in version 5.
  • I've just tried using Windows Firewall to block IP address 117.18.232.200 (api.nuget.org) and can still download from other sources.

    Are you certain you've unchecked the default source?
  • Yes, we are not able to delete the default source, but it is unchecked.
    Works in version 4, but not in 5.

    Sadly this makes version 5 unusable for us.
  • We can search the Linqpad NuGet Managers packages, but as soon as we hit the button "Add To Query" the following error apperars:

    Error downloading 'packageName' - Unable to load the service index for source https://api.nuget.org/v3/index.json

    We are using ProGet Version 3.8.6 (Build 2) for our local repository.
  • I've tried installing Fiddler, and downloading a NuGet package from a custom MyGet source. I can't find any HTTP traffic to api.nuget.org in the log.

    Can you try doing the same?
  • I just did, i can see that the request from version 4 to 5 is different, as soon as you hit the "Add To Query" Button in the Nuget Browser.

    Version 4:
    GET /nuget/STORM/Packages(Id='Newtonsoft.Json',Version='9.0.1') HTTP/1.1
    done:

    Version 5:
    GET /nuget/STORM/FindPackagesById()?id='Newtonsoft.Json' HTTP/1.1
    CONNECT api.nuget.org:443 HTTP/1.1

    This is a Tunnel to request


    Raw:
    CONNECT api.nuget.org:443 HTTP/1.1
    Host: api.nuget.org
    Proxy-Connection: Keep-Alive

    A SSLv3-compatible ClientHello handshake was found. Fiddler extracted the parameters below.

    Version: 3.1 (TLS/1.0)
    Random: 59 1E 9B DB 54 F8 79 B3 44 C0 13 18 79 5C 57 24 C7 D0 D7 8E B4 3E 9A F5 49 A3 04 BD 49 6A 38 22
    "Time": 02.10.2086 07:49:13
    SessionID: 0D 0C 00 00 05 4E E2 FF FA BC 77 94 C7 FD EE CC 07 52 C9 B6 E5 79 B3 71 70 32 88 28 62 13 D8 14
    Extensions:
    server_name api.nuget.org
    elliptic_curves secp521r1 [0x19], secp256r1 [0x17], secp384r1 [0x18]
    ec_point_formats uncompressed [0x0]
    extended_master_secret empty
    renegotiation_info 00
    Ciphers:
    [C014] TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA
    [C013] TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA
    [C00A] TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
    [C009] TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
    [0035] TLS_RSA_AES_256_SHA
    [002F] TLS_RSA_AES_128_SHA
    [0038] TLS_DHE_DSS_WITH_AES_256_SHA
    [0032] TLS_DHE_DSS_WITH_AES_128_SHA
    [000A] SSL_RSA_WITH_3DES_EDE_SHA
    [0013] SSL_DHE_DSS_WITH_3DES_EDE_SHA
    [0005] SSL_RSA_WITH_RC4_128_SHA
    [0004] SSL_RSA_WITH_RC4_128_MD5

    Compression:
    [00] NO_COMPRESSION




  • Does Fiddler also show contact with the ProGet server?
  • Hello Joe, version 5.22.02 - still same issue. Production server without internet can't use local nuget packages. Same error as above - linqpad 5 trying to reach default NuGet url. Version 4 is working properly.
  • edited August 8
    I've followed the instructions here to create my own local NuGet feed:
    https://docs.microsoft.com/en-us/nuget/hosting-packages/nuget-server

    and configured it in LINQPad as follows:
    image
    https://www.dropbox.com/s/mcuxkucvgya5rbp/NuGetCustomFeed.png?dl=0

    This works, even when disconnected from the Internet. Have you configured it in a similar way?
  • Thank you for fast answer! What I wanted is to add NuGet feed by specifying local folder with nuget packages at production server (working only for 4th version). I used to add new packages to this folder by copy-paste. Mentioned above approach is not the most convenient for a jump server without devs infrastructure, connection to devs Nuget feed or internet, but with a lot of security rules.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!