Hi,
I am having a problem with .Net / Visual Studio that I can't find the cause
of. I have searched newsgroups and the web and find people with similar but
different (I think) problems. Here's the issue and some of what I've found
out - I really hope it's familiar to someone and there's an answer!
I have a solution with about a dozen projects, including 2 asp.net web
applications and 1 asp.net web service project. Having migrated to a new
development machine I can get all projects added into the solution except for
the 2 asp.net web application projects. The error I receive is (the somewhat
notorious, it seems) "The project location is not fully trusted by the .NET
runtime. This is usually because it is either a network share or mapped to a
network share not on the local machine. If the output path is under the
project location, your code will not execute as fully trusted and you may
receive unexpected security exceptions."
Initially, as I had copied the whole solution from my old pc, it seemed that
SP2's Zone Identifiers were causing the problem. I tried running
ZoneStripper
(http://www.jameskovacs.com/blog/Perm...8-5f9efe2a79c7) but that didn't help.
In case that utility didn't work for me, I deleted one of the asp.net web
app project folders and pulled it out of VSS using the VS.Net "Add Project
From Source Control..." menu. This went through the usual steps of creating
the project folder and getting some initial project files but then threw up
the above error, followed by the dialog "Unable to read the project file
'MyApp.csproj'. The system cannot find the path specified".
So, still no joy.
Next, seeing that some of the project files had been successfully pulled out
of VSS by VS.Net, I tried to "Add Existing Project..." to the solution. In
the file dialog that appears, I navigated to and select the MyApp.csproj
file. Lo and behold the project gets added, all the source gets pulled from
VSS and all's well for a while.
Unfortunately, after closing the solution, next time I open the solution
(which now contains the MyApp asp.net project) I get the same errors as
before. In order to work on the project, I have to remove the project from
the solution and repeat the "Add Existing Project..." process again.
Other factors that might be relevant are:
* My whole solution is on the local disk (C:)
* I'm using WinXP SP2, VS.Net 2002 & .Net 1.0 SP3
* I don't see any button on the Explorer Properties page for a project file
about "Unblocking" the file or any source code files
All other postings I've seen appear to relate to either people putting their
project files on a network share or people whose files came from another
computer; neither seems to be the case here.
Anyway, thank you for wading though all that! If anyone can shed any light
on what's going on and why I'm seeing these errors, I will be most grateful.
Conan