I'm managing 10 developer computers and I want to assign to each computer a Network Drive (Let's say X: drive) so the developer can map the TFS workspace to that drive.
When the user tries to open any visual studio solution form drive X: (which's a network drive) visual studio warns the user for opening from Network solution.
I tried to give Full Trust to the network drive with 3 different ways with no luck:
1- Using CasPol (Drive)
%WINDIR%\Microsoft.NET\Framework\v2.0.50727\CasPol.exe -pp off -m -ag 1.2 -url file://X:\* FullTrust
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\CasPol.exe -pp off -m -ag 1.2 -url file://X:\* FullTrust
%WINDIR%\Microsoft.NET\Framework64\v2.0.50727\CasPol.exe -pp off -m -ag 1.2 -url file://X:\* FullTrust
%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\CasPol.exe -pp off -m -ag 1.2 -url file://X:\* FullTrust
2- Using CasPol (UNC)
%WINDIR%\Microsoft.NET\Framework\v2.0.50727\CasPol.exe -pp off -m -ag 1.2 -url file://\\UNC\* FullTrust
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\CasPol.exe -pp off -m -ag 1.2 -url file://\\UNC\* FullTrust
%WINDIR%\Microsoft.NET\Framework64\v2.0.50727\CasPol.exe -pp off -m -ag 1.2 -url file://\\UNC\* FullTrust
%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\CasPol.exe -pp off -m -ag 1.2 -url file://\\UNC\* FullTrust
3- Network (Intranet Zone)
From Internet Options -> Security -> Local Intranet -> Sites -> Advanced I added the drive
Visual Studio keeps warn the users regarding untrusted zone.
Please advice.
Thanks
Best Answer
I had the same issue when compiling projects from a network drive which contained T4 templates.
I had to add the unc path to the trusted sites. Internet Options -> Security -> Trusted sites -> Sites.
Add
file://MyRemoteUncPath
and make sure you uncheckRequire service verification
just below.