简体   繁体   中英

Visual Studio cannot find referenced Assemblies after starting with Admin privileges

In my C# solution, I have references to some dlls which are accessed via network. If I run Visual Studio with Admin-privileges, the namespace of these dlls cannot be resolved any more.

This seems not to be a problem with rights. I can start my explorer as admin and have access to these files.

What could be wrong?

It turned out, as Ashutosh Singh suggested, that running VSTO as Administrator changes the account which is running VSTO, even if my logged in account is in the local admin group and other programms do not behave this way. Therefore my mapped drives were gone.

My quick and dirty solution: Open the File->Open->Project dialog und create the network mapping.

This wasn't too easy to figure out in my case, because my local admin account and my logged in domain account coincidentally had exactly the same name :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM