"The project location is not trusted." error when in XP Mode

Posted on 2009-12-30
Last Modified: 2013-11-26
When I open my Visual Studio 2008 project (a VB.NET desktop application), I get the following error message.  

The project location is not trusted.  
\\tsclient\E\  {remainder of project path withheld by me}
Running the application may result in security exceptions when it attempts to perform actions requiring full trust.

***  NOTE:  This error only occurs when I open the project within XP Mode on Windows 7.  ***

Following recommendations in articles I'd Googled, I tried adding a new code group with Full Trust under the Microsoft .NET 2.0 Configuration tool, but either I have done something wrong or this approach is not the answer.  

In the .NET 2.0 configuration tool, I added a new code group ("myCodeGroup") to All_Code, LocalIntranet_Zone, and I set the condition type = URL.

I then specified Full Trust for the following mapping


However this doesn't seem to eliminate the error message.  It seems that it has something to do with the fact that I am running under XP Mode

Question by:casatone
    LVL 18

    Accepted Solution

    No, it is because you are using UNC path for the project. Please read this article from MS

    LVL 11

    Expert Comment

    XP mode is its "own" VM... So you are running the Project in a VM basically... You need to configure the VM correctly.

    (You didnt say "Compatibility mode)

    Author Closing Comment

    Actually my solution was to move the project to my local drive on a PC not running XP Mode and so I bypassed the UNC issue altogether.

    I'm awarding you the points though because you got me thinking about whether or not it was a MUST situation to have the project be on a network location.  I would have preferred it to be on the network, but I've worked around that.

    Thanks much for your input.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now