Sunday, March 18, 2007

The project location is not trusted

Somedays back I download the AjaxControlToolKit zip file that had some sample implementations. But, when I tried to open the solution and I got an error saying "The project location is not trusted"

On googling, I found the probable reason is that - if you open client project on a Universal Naming Convention path - shared path.

[Btw, what is Universal Naming Convention path?? - In a network, the Universal Naming Convention (UNC) is a way to identify a shared file in a computer without having to specify (or know) the storage device it is on. In Windows operating systems, Novell NetWare, and possibly other operating systems, the UNC can be used instead of the local naming system (such as the DOS naming system in Windows). In Windows operating systems, the UNC name format is: \\servername\sharename\path\filename]

In my case, it was deceptive suggestion. There wasn't any UNC path referred and in the dialog box that VS.net shows error, show "C:\projects\..." path as non-trusted location.

Actual reason for this error was that I downloaded this Zip file, which I extracted to my project location, was from Internet and was NOT trusted by Windows and hence I had to "unblock" zip file. This you can do by "right-click" the zip file and go to properties and you would see "Unblock" button at the bottom on the dialog.

If you get this error because it actually refers to the UNC path, solution is http://msdn2.microsoft.com/en-us/library/bs2bkwxc(VS.80).aspx

0 comments: