473,396 Members | 2,036 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,396 software developers and data experts.

If the project-path will be changed

I have the following problem:

I have a solution in path C:\AAA\CustomerA
Now I have a second project:
Then I copy everyThing to C:\AAA\CustomerB

Bit inside the new project everything is looking to C:\AAA\CustomerA

It is not possible to input relative pathes !!

What is the solution for this problem ??

Peter
SMS-Eumuco
Jul 21 '05 #1
5 1197
It's likely you have absolute physical paths in your app :
- see Server.MapPath to translate the virtual path to the physical path
- the special ~ character is handled server side and allows to address the
application root (rather than the website root)

This way if you have an app in :
c:\root\subweb\page.aspx
c:\locationA\page.aspx
c:\locationB\page.aspx

Using Server.Path("~/page.aspx") will always return the above physical
path...

Patrice

--

"Peter Stojkovic" <Pe*************@gmx.net> a écrit dans le message de
news:%2****************@TK2MSFTNGP14.phx.gbl...
I have the following problem:

I have a solution in path C:\AAA\CustomerA
Now I have a second project:
Then I copy everyThing to C:\AAA\CustomerB

Bit inside the new project everything is looking to C:\AAA\CustomerA

It is not possible to input relative pathes !!

What is the solution for this problem ??

Peter
SMS-Eumuco

Jul 21 '05 #2
I have problems with
REFERENCE-PATHES
in File for example only AlarmClass.vbproj.user within Visual-Studio.NET

And we have a lot of projects within one solution

So I dont know, how to change it automatically ?

Peter


"Patrice" <no****@nowhere.com> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
It's likely you have absolute physical paths in your app :
- see Server.MapPath to translate the virtual path to the physical path
- the special ~ character is handled server side and allows to address the
application root (rather than the website root)

This way if you have an app in :
c:\root\subweb\page.aspx
c:\locationA\page.aspx
c:\locationB\page.aspx

Using Server.Path("~/page.aspx") will always return the above physical
path...

Patrice

--

"Peter Stojkovic" <Pe*************@gmx.net> a écrit dans le message de
news:%2****************@TK2MSFTNGP14.phx.gbl...
I have the following problem:

I have a solution in path C:\AAA\CustomerA
Now I have a second project:
Then I copy everyThing to C:\AAA\CustomerB

Bit inside the new project everything is looking to C:\AAA\CustomerA

It is not possible to input relative pathes !!

What is the solution for this problem ??

Peter
SMS-Eumuco


Jul 21 '05 #3
project files are human readable. For some problems, it is simple to just
edit the project files and the solution file.

I'm not sure that I understand what your problem is. I've only had to edit
the project file on very rare occasion. However, it is easy to do.

--- Nick

"Peter Stojkovic" <Pe*************@gmx.net> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
I have problems with
REFERENCE-PATHES
in File for example only AlarmClass.vbproj.user within Visual-Studio.NET

And we have a lot of projects within one solution

So I dont know, how to change it automatically ?

Peter


"Patrice" <no****@nowhere.com> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
It's likely you have absolute physical paths in your app :
- see Server.MapPath to translate the virtual path to the physical path
- the special ~ character is handled server side and allows to address the application root (rather than the website root)

This way if you have an app in :
c:\root\subweb\page.aspx
c:\locationA\page.aspx
c:\locationB\page.aspx

Using Server.Path("~/page.aspx") will always return the above physical
path...

Patrice

--

"Peter Stojkovic" <Pe*************@gmx.net> a écrit dans le message de
news:%2****************@TK2MSFTNGP14.phx.gbl...
I have the following problem:

I have a solution in path C:\AAA\CustomerA
Now I have a second project:
Then I copy everyThing to C:\AAA\CustomerB

Bit inside the new project everything is looking to C:\AAA\CustomerA

It is not possible to input relative pathes !!

What is the solution for this problem ??

Peter
SMS-Eumuco



Jul 21 '05 #4
I have problems with
REFERENCE-PATHES
in File for example only AlarmClass.vbproj.user within Visual-Studio.NET

And we have a lot of projects within one solution

So I dont know, how to change it automatically ?

Peter


"Patrice" <no****@nowhere.com> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
It's likely you have absolute physical paths in your app :
- see Server.MapPath to translate the virtual path to the physical path
- the special ~ character is handled server side and allows to address the
application root (rather than the website root)

This way if you have an app in :
c:\root\subweb\page.aspx
c:\locationA\page.aspx
c:\locationB\page.aspx

Using Server.Path("~/page.aspx") will always return the above physical
path...

Patrice

--

"Peter Stojkovic" <Pe*************@gmx.net> a écrit dans le message de
news:%2****************@TK2MSFTNGP14.phx.gbl...
I have the following problem:

I have a solution in path C:\AAA\CustomerA
Now I have a second project:
Then I copy everyThing to C:\AAA\CustomerB

Bit inside the new project everything is looking to C:\AAA\CustomerA

It is not possible to input relative pathes !!

What is the solution for this problem ??

Peter
SMS-Eumuco


Nov 22 '05 #5
project files are human readable. For some problems, it is simple to just
edit the project files and the solution file.

I'm not sure that I understand what your problem is. I've only had to edit
the project file on very rare occasion. However, it is easy to do.

--- Nick

"Peter Stojkovic" <Pe*************@gmx.net> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
I have problems with
REFERENCE-PATHES
in File for example only AlarmClass.vbproj.user within Visual-Studio.NET

And we have a lot of projects within one solution

So I dont know, how to change it automatically ?

Peter


"Patrice" <no****@nowhere.com> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
It's likely you have absolute physical paths in your app :
- see Server.MapPath to translate the virtual path to the physical path
- the special ~ character is handled server side and allows to address the application root (rather than the website root)

This way if you have an app in :
c:\root\subweb\page.aspx
c:\locationA\page.aspx
c:\locationB\page.aspx

Using Server.Path("~/page.aspx") will always return the above physical
path...

Patrice

--

"Peter Stojkovic" <Pe*************@gmx.net> a écrit dans le message de
news:%2****************@TK2MSFTNGP14.phx.gbl...
I have the following problem:

I have a solution in path C:\AAA\CustomerA
Now I have a second project:
Then I copy everyThing to C:\AAA\CustomerB

Bit inside the new project everything is looking to C:\AAA\CustomerA

It is not possible to input relative pathes !!

What is the solution for this problem ??

Peter
SMS-Eumuco



Nov 22 '05 #6

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

Similar topics

1
by: David Gagné | last post by:
Hello, My C# solution is composed of 2 projects, a class library project and a Windows application project. The window in one project calls the DLL in the other. That's ok. Now, to better test...
0
by: Patty O'Dors | last post by:
Hi I am experiencing the following issue when building an ATL component that is tested with c#: The ATL project builds first, then the C# project, as the ATL DLL is a dependency of the C#...
2
by: Vish | last post by:
Hi all, I have a VS.NET (2005 BETA2) solution that has five winforms projects. Here are the details. Project-A (Main, startup project), references Project-B (class lib project) Project-B (Class...
2
by: Rudy Ray Moore | last post by:
How can I modify the project build order of a multi-project workspace under "Visual Studio .net 2003 7.1 c++"? I tried to modify the .sln by hand to influence the build order, but it didn't seem...
4
by: Brian B. | last post by:
Hi, I have an ASP.NET project written in VB.NET on a server. I have made a few changes to some files using notepad while remotely connected to the server. How can I compile the project on the...
11
by: Dave | last post by:
I copied the project files from an ASP.NET project on one computer and want to create the project on another computer, There is no connection between the two computers so I simply copied the...
9
by: Anubhav Jain | last post by:
Hi, I am having few .net source files(.cs or .vb) and I want to dynamically generate the corresponding .net project file(.csproj or .vbproj) for them without using visual studio.So that I could...
0
by: Tom | last post by:
I am converting a small VB.NET 2003 application over to VS 2005. I ran it thru the 'upgrade' wizard which prompty upgraded it without any real issues (except some warnings). However, I did notice...
29
by: Tony Girgenti | last post by:
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. How do I...
2
by: =?Utf-8?B?V29ua28gdGhlIFNhbmU=?= | last post by:
Hello, I have an existing (WPF) Class Library project that I'd like to add a WPF Custom Control to. However, when I try to Add New Item, that isn't one of the available options. Perhaps this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
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,...
0
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...

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.