473,804 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to add an existing file to a project

Hi,

I have converted a workspace(A.dsw ) from VC++ 6.0 to VC++ 7.1(A.sln).
The solution A.sln has three projects in it B,C,D.

My software configuration management is done in Rational clear case.

Below is the hierarchy in my clearcase explorer.

|
|----jkl
|
|----abc
|---------abc_source
|---source files
|---header files
|---------abc_proj(*.vcpr oj,A.sln,*.vcpr oj.vspscc,..)
When I tried to add an existing source file to one of the projects I
got this following message box.

Some of the files you are adding to your project are located outside
the project's binding root.
These files cannot be source controlled unless they are moved.

In the soultion explorer in my IDE ,when I tried to add one of the
files from the folder abc_source\sour ce files to any of the projects
source files folder in the solution, I got the above message.

When I pressed OK nothing happened and the file did not get added to
the project.
Could anyone please help me in this regard.

Thanks&Regards,
Rohini Chandra

Jun 21 '06 #1
1 1952
<ro************ @gmail.com> wrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
Hi,

I have converted a workspace(A.dsw ) from VC++ 6.0 to VC++ 7.1(A.sln).
The solution A.sln has three projects in it B,C,D.

My software configuration management is done in Rational clear case.

Below is the hierarchy in my clearcase explorer.

|
|----jkl
|
|----abc
|---------abc_source
|---source files
|---header files
|---------abc_proj(*.vcpr oj,A.sln,*.vcpr oj.vspscc,..)
When I tried to add an existing source file to one of the projects I
got this following message box.

Some of the files you are adding to your project are located outside
the project's binding root.
These files cannot be source controlled unless they are moved.

In the soultion explorer in my IDE ,when I tried to add one of the
files from the folder abc_source\sour ce files to any of the projects
source files folder in the solution, I got the above message.

When I pressed OK nothing happened and the file did not get added to
the project.
Could anyone please help me in this regard.


While I can't promise you a solution, I can tell you what the message means,
and what you might try to resolve it.

The "binding root" for the project and solution is /abc/abc_proj, while the
source files are in /abc/abc_source - that former not being a prefix of the
latter.

What you need to do is bind the solution at a higher level in the source
control hierarchy, so the binding root of the project and solution are both
/abc.

In theory, all you should need to do is unbind the project from
source-control, and then re-bind the solution to the /abc level in the
source control repository. I say in theory because my experience has been
that in practice, it's often frustrating/difficult/impossible to get VS to
set the binding root the way you intended.

-cd
Jun 21 '06 #2

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

Similar topics

0
250
by: sreedhar | last post by:
Hi, i'm trying to open an existing ASP.NET project solution inside my VS.NET and i'm getting the following error. Any help would be greatly appreciated Unable to create web project 'http://localhost/DotNetNuke'.The file path 'C:\Inetpub\wwwroot\DotNetNuke\DotNetNuke' does not correspond to the URL 'http://localhost/dotNetNuke'.The two need to map to the same server location HTTP Error 404:Object Not Found Thanks in advance sreedhar
3
4116
by: David N | last post by:
I got a solution that contains about 30 projects, three of which cannot be open. When I open the project, I always receive the error message "Unable to get the project file from the Web Server" My machine is running Windows 2003. My colleagues are using the same hardware and software as I do, but I am the only one running into this problem. I searched the Internet and see that quite a lot of people having the same problem in the...
3
2260
by: alan_coffman2004 | last post by:
Opening an ASP.NET VS2002 project in VS2003, am getting this error: "Unable to open Web project 'MyProject'. The file path 'c:\inetpub\wwwroot\MyProject' does not correspond to the URL 'http://Localhost:/MyProject'. The two need to map to the same server location. HTTP Error 404: Not Found." I have tried fixing this using both of these KB articles and usenet advises, still problem not solved:
1
1288
by: Carl | last post by:
This is really starting to do my head in, and I could really do with some advice/help. I'm using visual sourcesafe and attempting to open an existing project within Visual Studio. After identifying the project and telling VS to open it I get an error saying "unable to get project from the Web server". After looking around the web, the only suggestion I can find is to delete
0
5654
by: jsausten | last post by:
I am having this ridiculously frustrating problem, migrating an existing web app to VS.2005. Initially I was able to successfully convert my VS 2002 app, by opening the Localhost site using the new 'Local IIS' option (File -> Add Existing Web Site ->. Local IIS -> Select the Localhost site) and everything was OK. However, when I shut down and reboot, I was unable to open the same project and got the following error: "Unable to open...
6
3641
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a list of all of my webs, however if I attempt to open a site under and web other than localhost I receive the message: "Unable to open the Web 'http://localhost/anywebappname'. The Web 'http://localhost/anywebappname' does not exist" Obviously...
7
613
by: Jed | last post by:
I am trying to open web project in VS 2003 using the File Share method. VS is running on XP Pro (Host) and I am accessing the root web of an XP Pro install on Virtual PC (Server) running on the same machine. I have the loopback adapter running on the Host. The Host is sharing it's Internet connectivity with the loopback adapter and the Server is using the loopback it for Internet connectivity. All the networking stuff is working fine.
4
3291
by: airwot4 | last post by:
Hi all, I'm sure this is simple to answer but I have built a project exited VB Express. When I go back into VB Express and open the project no files appear (but I can open them manually) and when I open my form designer it comes in code, I am unable to access the design view as the shift- F7 function is not there in the view menu.
11
5397
by: benoitc | last post by:
I've been having a problem debugging an ASP.NET 1.1 application on an existing Windows XP/Visual Studio 2003 workstation that I've inherited from somebody else. The application builds fine, but when I try to debug, it gives me the message: Error When Trying to Run Project: Unable to Start Debugging on the Web Server. Debugging failed because integrated Windows authentication is not enabled. Now, the obvious solution for this of course...
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10604
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
10354
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...
0
10101
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...
0
9177
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
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
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3837
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3005
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.