سلام ببخشید مشکل nuget دارم
پکیج هارو نصب نمیکنه هم با کنسول هم با خودش
ارور بی خود الکی میده واقعا نمیدونم چیه هیچ کس نمیدونه
من ویژوال استادیو 2012 2015 داشتم رو جفتشون همینجور بود
الان 2019 ریختم مطئمن بودم درست شده ولی بازم همینجور هست
An error occurred while sending the request.
Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 104.194.25.152:8580
Install-Package : Unable to load the service index for source https://www.nuget.org/api/v2/.
An error occurred while sending the request.
Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established
connection failed because connected host has failed to respond 104.194.25.152:8580
At line:1 char:1
+ Install-Package AudioSwitcher.AudioApi.CoreAudio -Version 4.0.0-alpha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
کلا nuget همیشه خرابه
ممنون میشم کمکم کنید
سلام
پسرم ارور الکی و بیخود نمیده!!! بنده خدا داره با خطوط قرمز رنگ بلند داد می زنه که مشکل کجاست!
شما وارد تنظیمات ناگت شو و رفرنس https://nuget.org/api/v2/ را بدون https کن یعنی آدرس را بصورت زیر در بیاور
http://nuget.org/api/v2
در واقع مشکل کار شما استفاده از پروتکل https است. چون نسخه ی شما معتبر نیست باید از http استفاد ه کنی
خیلی ممنونم اون کاری که گفتید رو انجام دادم ولی باز هم همون حالت هستش
برای من اول به این صورت بودش :
https://www.nuget.org/api/v2/
که شما گفتی s رو بردارم
برداشتم بازم همونجور بود
اومدم کمی بیشتر دقت کردم دیدم اونی که شما نوشتی www نداره
دفعه بعد اون رو هم حذف کردم بازهم همون حالت بود
دفعه بعدی گفتم شاید بدون www و با s درست باشه
متن ارور :
Install-Package : Unable to load the service index for source http://nuget.org/api/v2.
An error occurred while sending the request.
Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has
failed to respond 104.194.25.152:8580
At line:1 char:1
+ Install-Package AudioSwitcher.AudioApi.CoreAudio -Version 3.0.0.1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Time Elapsed: 00:01:04.3449642
و حتی زمانی که دستی میام از سایت nuget پکیجی رو دانلود میکنم و میام تویه ویژوال استادیو دستی وارد کنم
پکیج رو تو برنامه نشون میده ولی هنگام نصب این ارور رو نشون نمیده و نصب نمیشه
متن ارور:
Severity Code Description Project File Line Suppression State
Error Unable to load the service index for source https://nuget.org/api/v2.
An error occurred while sending the request.
Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 104.194.25.152:8580
و این هم که در هنگام جستجو nuget
متن ارور:
error occurred
لطفا اگر امکانش هست کمکم کنید خیلی ممنون
سلام مجدد
برو به این مسیر
System Properties" > Advanced > Environment Variables
این مقدار را در لیست پیدا کم:http_proxy
همه ی ایتم های این متغیر را انتخاب و بعد پاک کن
ببین درست میشه؟!
راستی با یه اینترنت دیگه امتحان کردی؟!؟!
سلام دوست عزیز
کار که گفتید رو به درستی انجام دادم و نتیجه داد واقعا خیلی ممنونم
با اینترنت دیگری هم تست نکردم فقط همونطور که گفتید تویه سیستم System Properties اون مقادیر رو حذف کردم و ویژوال استودیو رو بستم و دوباره باز کردم
نتیجه دادش
واقعا خیلی خیلی ممنون ایشالله که هرچی میخواید خدا بهتون بده
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)