473,327 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

ASP.Net projects not loading in VS.Net after SP2 for XP installed

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
Nov 19 '05 #1
10 1763
Hi Conan,

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 19 '05 #2
Hi Conan,

Welcome to ASPNET newsgroup.
As for the problem you mentioned, I did see some other community members
posting the same issue in the group. Some one even encountering the problem
on WIN2003 machine( though I didn't correctly repro the problem they
mentioned ).

I think the problem you're suffering is somewhat related to the solution
file or the ASP.NET project file's location setting. As you mentioend that
you're using VSS, is it possible that after you close and reopen your
solution, the solution or project file is retrieved from the VSS database
and override your modification? Would you please perform the following
steps:

1. temporarly isolate your solution and the ASP.NET projects from VSS so
that your modification won't be revert back to the original when we do
some modification on it. (Like you've tried before that removing and adding
the asp.net projects again)

2. Generally the "The project location is not fully trusted" error occured
when project files are located in a UNCShared. If your files are all on
local disk, I think we may have a check in the Solution file and asp.net
project's webinfo file( these files contains the url location of your
projects). If you're using Visual C#, the webinfo file's extension will be
csproj.webinfo , if using VisualBasic.net , it'll be vbproj.webinfo. Please
open the webinfo file of your asp.net projects, you'll found something like

<VisualStudioUNCWeb>
<Web URLPath = "http://localhost/DotNetNuke/DotNetNuke.vbproj" />
</VisualStudioUNCWeb>

in the .webinfo file. Also, the same URL will exist in the Solution file.
If you find the URL is pointed to the original site's remote url , you can
try changing them to your local url(the according localhost/... path) to
see whether it helps.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Nov 19 '05 #3
Hi Steven,

Thanks for responding to my query. There's good news and bad news from my
side.

The good news is that I have managed to load my projects successfully now.
The bad news is that I still don't understand what the problem was or where
it lay, which is a bit of a shame.

For the record, and in case it helps anyone else out there, here's what I've
done.

I started, as you've suggested with step one and went to unbind all my
projects from VSS. This wasn't initially possible as, whenever I clicked on
the "Change Source Control..." menu item, after few seconds I received an
error dialog containing the text "Unspecified Error". I decided to remove
the project that is failing to load properly from the solution (I had added
this temporarily after opening the solution via "Add Existing Project..." as
described in my previous post).

Once the problematic project was gone I could unbind all other projects in
the "Change Source Control..." window. When I re-added the problem project,
I couldn't unbind it as it caused the "Unspecified Error" again. As I was
unable to complete step one from your post, I resorted to blowing away the
whole solution directory structure and starting afresh (something of a last
resort, considering how long it takes to get all the projects from a remote
VSS repository & reconfigure them).

I created a new blank solution and set about doing an "Add project from
source control" for each project. All projects loaded in fine as expected
except the problem project. Adding this one caused a dialog stating that
adding the project had failed and that closing and re-opening the solution
would fix the problem. Doing that didn't fix it, so I went to "Add existing
project..." and navigated to the problem project's csproj file. This threw
up several errors in succession about missing files but they must have been
subsequently created as the solution now works fine and all projects open
correctly when I open the solution.

I can only assume that the problem was caused by something set in the
solution file as that's really all I think that's changed. If the problem
reoccurs or I find out what was at the bottom of it all, I'll post my
findings.

Thank you for your time and help.
Conan

Nov 19 '05 #4
Thanks for your response Conan,

Seems you completely create a new blank solution and move those projects
into it and it can worked though that cost a lot of effort. Have you
checked the
<VisualStudioUNCWeb>
<Web URLPath = "http://localhost/DotNetNuke/DotNetNuke.vbproj" />
</VisualStudioUNCWeb>

setting in the web project's " .csproj.webinfo" file or the corresponding
url of the webprojects in your solution file? (We can open them through
notepad to check the content as plain text , they're xml). If the url path
in those file are not the correct path according to your local IIS's server
address(http://localhost/....), please try changing them to the correct
local address and try again to see whether this can help(without recreate
new solution and add/remove the webproject timely).

Anyway, I still think this is a problem caused by project files in VSS
enabled enviornment since VS.NET2003 has put too much location related info
in the project file which will cause problems in source control scenario.
I've also seen such problems before. Anyway, please feel free to post here
if you have any new findings.

Thanks & Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #5
Hi Steven,

Yes, I forgot to mention that. I did check the urls in the webinfo and
solution files and they all were set correctly to the same url.

Conan
Nov 19 '05 #6
OK, Thanks again for your followup.

En, that's really not what I've expected. Anyway, please feel free to post
here if you figure out or encoutering the problem again later. Also, for
such problem, I recommend that you create a demo solution which contains a
webproject and add them into VSS and do some tests, that can help use get a
clearer view of such problem.

Wish you good luck!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #7
FWIW we had this problem where we got the "unable to read the project file"
when we tried to add a web service to a solution. The web service was able to
load into other projects with no problem. We could see the project and it
worked just fine but something was wrong with the Solution configuration that
would not load it. The problem began because the person had the project
incorrectly named in the solution so they removed it from their computer and
downloaded it again from Source Safe.

There is some bug where the Solution has a hidden configuration for web
services or web projects that is not totally cleaned up when you try to
remove it.

Our solution, which isn't really acceptable, was to totally create a new
solution and re-add the projects.

"Conan" wrote:
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

Nov 19 '05 #8
FWIW we had this problem where we got the "unable to read the project file"
when we tried to add a web service to a solution. The web service was able to
load into other projects with no problem. We could see the project and it
worked just fine but something was wrong with the Solution configuration that
would not load it. The problem began because the person had the project
incorrectly named in the solution so they removed it from their computer and
downloaded it again from Source Safe.

There is some bug where the Solution has a hidden configuration for web
services or web projects that is not totally cleaned up when you try to
remove it.

Our solution, which isn't really acceptable, was to totally create a new
solution and re-add the projects.

"Conan" wrote:
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

Nov 19 '05 #9
I also got this error when moving a solution to another computer. I
have no idea whatsoever what caused the error, but removing the .suo
file did the trick for me.
Nov 19 '05 #10
Hi,

We had the same problem.
This error was due to changing the name of the project (.csproj).

The content of the file .csproj.vspscc (Visual Studio Source Control Project
Metadata File) in the sourcesafe project has a wrong filename to .csproj.

Extract the file .csproj.vspscc and correct the filename of the .csproj and
the error disappear.

Here is a sample of the .csproj.vspscc file
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "COMPULSORY"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = "http://localhost/Project/Web.csproj"
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}
Correcting the value for "ORIGINAL_PROJECT_FILE_PATH" resolve our problem.

Bye!

"Conan" wrote:
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

Nov 19 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Umashankar | last post by:
Dear Gurus, I am using listview control in a asp page to populate some database results.In some machines (which is having only OS and no other softwares installed) this control is not loading....
2
by: Dave | last post by:
Hi, can someone tell me if it's possible and if yes what the script is and where to put it in order to: have the browser check upon loading page X to see if the user's computer has Flash player...
0
by: Eric van Wijk | last post by:
Hi All, After installing SP1 for Windows 2003, I'm running into the 'Error loading type library/DLL' exception when using CDO through System.Web.Mail: ...
0
by: Eric Caron | last post by:
Hi everyone, I installed the .NET Framework 2.0 beta 2 on a dev server to test some new things in Web Developper Expres, but now when I try to remotely debug my 1.1 projects, I get the error...
11
by: Sean Campbell | last post by:
Hello everyone! I just finished writing a small app in VB 2005. I paid very close attention to using only Framework 1.1 commands since my client has not yet installed the Framework 2.0 across...
5
by: greenflame | last post by:
hello all, I have installed apache and php following the instructions on this link which was very helpful: http://www.tanguay.at/installPhp5.php5 problem: OS: Windows XP
3
by: Alfonso Moreno | last post by:
After I update a third party library (but I am not sure if that is the reason for the slow loading of projects), and when I open an ASP.NET project, then it could be seen in the status bar at the...
2
by: Tim Haughton | last post by:
Each time I create or open many projects I get a security warning from VS2008 Team Ed: "Security Warning for {Project Name}" The dialog gives me the option of loading the solution for browsing...
2
by: Jeff Dege | last post by:
I'm working with a group that's been doing C++ coding for quite a long time, now, and in that environment we've pretty much worked out development practices that serve us well. We've been doing...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.