Access to the path 'Autofac.Extensions.DependencyInjection.dll' is denied

65 views
Skip to first unread message

eduin....@ceiba.com.co

unread,
Oct 17, 2017, 2:44:46 PM10/17/17
to Autofac
I try to install the Autofac.Extensions.DependencyInjection nuggets package and it generates the Access error to the path 'Autofac.Extensions.DependencyInjection.dll' is denied.
--

------------------------------
Este mensaje, incluido su adjunto, es confidencial y puede ser
privilegiado. Si usted no es su destinatario, por favor notifique al
emisor, luego destruya la comunicación y todas las copias. Usted no debe
copiar, distribuir y/o revelar esta comunicación parcial o totalmente sin
autorización del emisor.
This message, including attachments, is confidential and may be privileged.
If you are not an intended recipient, please notify the sender then delete
and destroy the original message and all copies. You should not copy,
forward and/or disclose this message, in whole or in part, without
permission of the sender.

Travis Illig

unread,
Oct 18, 2017, 12:33:26 PM10/18/17
to Autofac
This sounds a lot like one of two things:
  1. You're using a version control system like TFS or Perforce where you have accidentally checked in Autofac.Extensions.DependencyInjection.dll and you haven't explicitly selected to check it out for changes before installing an update. TFS, for example, defaults to locking all files to be read-only unless you explicitly check the file out or switch your "workspace" to be local.
  2. You've run VS as an administrator at one point so files or paths have been created as an administrator but you're now running VS as a standard user so you don't actually have rights to do the NuGet restore.
In either case, there's really nothing we can do from an Autofac perspective. You may be seeing the issue whilst installing the package, but the problem is with NuGet, Visual Studio, and your local machine.

Sorry I can't be of more help.
Reply all
Reply to author
Forward
0 new messages