Martin Tausch
Martin Tausch

Reputation: 744

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?

Upvotes: 1

Views: 73

Answers (1)

Martin Tausch
Martin Tausch

Reputation: 744

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 :)

Upvotes: 1

Related Questions