VS 2010 Security Warning When Opening My Own Projects
Whenever I try to open my own projects in VS 2010 Express, I get the following message:
You should only open projects from a trustworthy source
I can click OK on the message and open the solution, but I would prefer to not get warned every time I open my solution.
The files were not downloaded from the Internet; they are sitting right on my department's network drive. There's nothing to unblock if I look at the Properties window for the project file.
Any tips for squashing this bug will be appreciated.
Solution 1:
There is some sort issue with the Visual Studio 2010. Check This for more details at Microsoft website Issue listingTrusting network shares in Visual Studio 2010 / .NET 4.0.
This will be triggered not only by originating from the internet (which would allow you to hit Unblock
) but also in some other cases, like I think, being on a network share, in the temp or downloads directory.
I don't know a way to switch that off wholesale, I"m afraid. You are supposed to be able to do it with Tools>Options>Projects and Solutions>Warn user when project location is not trusted
To avoid the message, you can either
(1) just agree to load; this should suppress the message for whenever you open the project as part of that solution as the same user on the same machine;
or
(2) go to windows explorer, right click on the project file, choose Properties, look at the bottom of the General tab, if there's an Unblock button click on that. You might need to do this for any .user file next to the project as well.
Solution 2:
There are 2 easy ways to do this:
How Do I Allow my Visual Studio .NET Projects to Run from a Network Location?
To grant permission to all your projects in your Visual Studio Projects folder located on the network, follow these 8 steps:
Open Microsoft .NET Framework 1.1 Configuration which you'll find under Administrative Tools in the Control Panel.
Expand Runtime Security Policy | Machine, | Code Groups | All_Code | LocalIntranet_Zone
In the right-hand pane, click Add a Child Code Group.
In the dialog that follows choose Create a new code group and fill in a Name like Visual Studio Projects.
Optionally, provide a Description for the Code Group. (You'll see the description when you click a Code Group in the left tree, helping you identify the various Code Groups you may have) .
In the Condition Type drop down, choose URL
For the URL field, type something like this:
file://YourServer/My Documents/Visual Studio Projects/*
Under Use existing permission set, choose FullTrust (that is, if you trust your own applications. If you don't, choose a different permission set or create a new one).