Note that there are some explanatory texts on larger screens.

plurals
  1. POAccess denied running C# program using reference DLL from network share
    primarykey
    data
    text
    <p>I am developing two projects which are both managed by ClearCase, which means that for Windows, it looks like they are located on a network share.</p> <p>The first project is a DLL written using VS 2003 in managed C++ and is intended to provide a managed interface for some legacy DLLs written in VS2003 C++.</p> <p>The second project is written in C# (.NET 3.5, VS2008) and includes the DLL generated by the first project as a reference to make use of the legacy DLLs via the wrapper.</p> <p>Now when I try to start the C# project, I get the following error message:</p> <blockquote> <p><strong>FileLoadException was unhandled</strong></p> <p>Could not load file or assembly '(my managed c++ wrapper), Version=(version number), Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.</p> </blockquote> <p>Looking at the details, this is a System.Io.FileLoadException containing an inner System.UnauthorizedAccessException ("Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"</p> <p>Now when I copy the C# project to the local hard drive, everything works fine, even if the managed C++ project stays on the network drive.</p> <p>I've had permission problems with network drives before but these vanished when upgrading to .NET 3.5 SP1. I also tried changing the Permission Set for the All_Code code group to "Full Trust" for .Net Configuration 1.1. and 2.0, as suggested on the internet, but this did not help either. Btw, I also checked if the DLL is readonly, but it isn't.</p> <p>Thanks in advance for any help!</p> <p>Update: I also tried signing both assemblies with a Strong Name and giving these keys full trust but to no avail. There must be some other reason but I am out of ideas.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload