473,770 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1791
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

<VisualStudioUN CWeb>
<Web URLPath = "http://localhost/DotNetNuke/DotNetNuke.vbpr oj" />
</VisualStudioUNC Web>

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 "Unspecifie d 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 "Unspecifie d 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
<VisualStudioUN CWeb>
<Web URLPath = "http://localhost/DotNetNuke/DotNetNuke.vbpr oj" />
</VisualStudioUNC Web>

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

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

Similar topics

1
2200
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. In machines in which visual basic is installed it is loading properly. Any suggestions will be appreciated. Thanks in Advance.
2
6709
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 installed. If answer is "no", then browser loads page Y instead of page X. Would such a check, if possible, be likely to be cross-browser/platform understood?
0
1830
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: ------------------------------------------- //try { // security assertion
0
1257
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 message "Unable to start debugging on the web server. Would you like to disable future attempts to debug ASP.NET pages for this project?". Checked the usual suspects, like URLScan and the Debugging Users group, but nothing has changed. Anyone know...
11
3241
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 their enterprise. When I tested my app on another system, my app tells me that I must install the 2.0 Framework for it to work even though 1.1 is installed. I thought .NET projects were backward compatible as long as the functions are compatible.
5
12929
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
1133
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 bottom the messages like "Creating control 'XXXX'") and it last for 1 minute or more, after that, another "Creating control 'XXX'" message is displayed, so I can be waiting for as long as 1 hour (or more) without finishing loading the project,...
2
1770
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 only, or loading it normally. In the "more information" dialog, it says... "An item referring to the file "" was found in the project file ... Since this file is located within a system directory, root directory, or network
2
1972
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 more and more, over the last few years, in C# and ASP.NET. Some web apps, some background services. In our C++ code base, we have a fair number of statically-linked libraries that contain code we share between projects. At this point, in our...
0
10259
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9906
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.