• 1401/02/21

اررور refrence برای نصب Entity Framework در DataLayer :

با سلام 
در ویدیو ی 18 ،وقتی که  Entity Framework را نصب میکنم با این ارور مواجه می شوم

PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\git

C:\Users\Parsian\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta5\bin\dnx.exe "C:\Users\Parsian\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta5\bin\lib\Microsoft.Framework.PackageManager\Microsoft.Framework.PackageManager.dll" restore "E:\Uni\Project\C#\Code\Asp.Net MVC\MyCms\DataLayer" -f "C:\Program Files (x86)\Microsoft Web Tools\DNU"

Microsoft .NET Development Utility CLR-x86-1.0.0-beta5-12103

Restoring packages for E:\Uni\Project\C#\Code\Asp.Net MVC\MyCms\DataLayer\project.json

 GET https://www.nuget.org/api/v2/

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Collections'

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Linq'

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Threading'

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Runtime'

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.CSharp'

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='EntityFramework'

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.Extensions.DependencyInjection'

Warning: FindPackagesById: System.Collections

 An error occurred while sending the request.

Warning: FindPackagesById: Microsoft.CSharp

 An error occurred while sending the request.

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.CSharp'

Warning: FindPackagesById: Microsoft.Extensions.DependencyInjection

 An error occurred while sending the request.

Warning: FindPackagesById: EntityFramework

 An error occurred while sending the request.

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Collections'

Warning: FindPackagesById: System.Linq

 An error occurred while sending the request.

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.Extensions.DependencyInjection'

Warning: FindPackagesById: System.Runtime

 An error occurred while sending the request.

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='EntityFramework'

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Runtime'

Warning: FindPackagesById: System.Threading

 An error occurred while sending the request.

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Linq'

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Threading'

Warning: FindPackagesById: System.Runtime

 An error occurred while sending the request.

Warning: FindPackagesById: System.Threading

 An error occurred while sending the request.

Warning: FindPackagesById: System.Linq

 An error occurred while sending the request.

Warning: FindPackagesById: Microsoft.CSharp

 An error occurred while sending the request.

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Runtime'

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Threading'

Warning: FindPackagesById: Microsoft.Extensions.DependencyInjection

 An error occurred while sending the request.

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Linq'

Warning: FindPackagesById: System.Collections

 An error occurred while sending the request.

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.CSharp'

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='System.Collections'

Warning: FindPackagesById: EntityFramework

 An error occurred while sending the request.

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft.Extensions.DependencyInjection'

 GET https://www.nuget.org/api/v2/FindPackagesById()?id='EntityFramework'

Error: FindPackagesById: System.Runtime

 An error occurred while sending the request.

Error: FindPackagesById: EntityFramework

 An error occurred while sending the request.

Error: FindPackagesById: System.Collections

 An error occurred while sending the request.

Error: FindPackagesById: System.Linq

 An error occurred while sending the request.

Error: FindPackagesById: Microsoft.Extensions.DependencyInjection

 An error occurred while sending the request.

----------

Error: FindPackagesById: System.Threading

 An error occurred while sending the request.

Error: FindPackagesById: Microsoft.CSharp

 An error occurred while sending the request.

System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Authentication failed because the remote party has closed the transport stream.

  at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)

  at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)

  at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)

  --- End of inner exception stack trace ---

  at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

  at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)

  --- End of inner exception stack trace ---

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  at Microsoft.Framework.PackageManager.Restore.NuGet.HttpSource.<GetAsync>d__8.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)

  at Microsoft.Framework.PackageManager.Restore.NuGet.NuGetv2Feed.<FindPackagesByIdAsyncCore>d__21.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  at Microsoft.Framework.PackageManager.RemoteWalkProvider.<FindLibrary>d__6.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibrary>d__9.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)

  at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryByVersion>d__8.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)

  at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryMatch>d__6.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  at Microsoft.Framework.PackageManager.RestoreOperations.<FindLibraryEntry>d__5.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__2.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)

  at Microsoft.Framework.PackageManager.RestoreOperations.<CreateGraphNode>d__2.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  at Microsoft.Framework.PackageManager.RestoreCommand.<CreateGraphNode>d__78.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)

  at Microsoft.Framework.PackageManager.RestoreCommand.<RestoreForProject>d__77.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  at Microsoft.Framework.PackageManager.RestoreCommand.<>c__DisplayClass76_0.<<Execute>b__1>d.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

  at Microsoft.Framework.PackageManager.RestoreCommand.<Execute>d__76.MoveNext()

----------

Restore failed

An error occurred while sending the request.

 

و جلوی  refrences یک اخطار (errors) ظاهر می شود.




همچنین بعد از اینکه با این خطا مواجه میشوم...نمیتوانم System.DataComponent.DataAnnotations  را using  کنم

آیا راه حلی برای این مشکل دارید؟

  • 1401/02/21
  • ساعت 18:17

  • 1401/02/21
  • ساعت 18:43

سلام دوست من وقتتون بخیر 

اینترنتتونو بررسی کنید و از فیلترشکن استفاده کنید ببینید مشکلتون رفع میشه یا نه


logo-enamadlogo-samandehi