Copy project files from one machine to the next

  • Thread starter Thread starter ralf
  • Start date Start date
R

ralf

I have an ongoing problem copying my vb .NET web project from one
machine to the other. I have a laptop that I take to the customer site
for onsite changes. When I am back at the office, I use a development
machine, which is much faster. The problem I have is moving code in
between the two machines. My IIS server is running off of 2 different
ports, one is 80 and the other is 8080. If I try just copying the
project over from machine with port :8080 to machine with port :80, it
will not open and gives an error that shows the port from the old
machine, like C:\localhost:8080\.....
I have tried 'add existing project from web' selection, but with the
same error. What is the correct way of doing this??

The way I have been having to do this is creating a blank project and
adding existing items to it one at a time. This is a major pain and I
hope this is not the intended way of doing this!!
 
I can actually move the project between machines if I configure the
machine to run IIS on the same port. This is a terrible way to have to
do this, so someone please tell me what I am supposed to do instead of
ways to get around this problem.
Thanx in advance
 
I can actually move the project between machines if I configure the
machine to run IIS on the same port. This is a terrible way to have to
do this, so someone please tell me what I am supposed to do instead of
ways to get around this problem.

Check your solution file (sln) in notepad
The solution file is probably the cause of your problem as the path to the
webserver is located in this file

Don't copy the solution file might solve it?

- Peter
 
thx for the reply. I am not copying the solution file over, and it is
not in the directory anywhere. I am creating a new solution file, and
then I add existing web app.
 
OK, solved my problem, or at least a workaround. Doesn't seem like this
would be the way it was intended. But, anyway, here is what I had to
do. After copying the project under the wwwroot directory, I created a
new solution. I had to go into the project directory for the project to
import and modify the vbproj.webinfo file. It is coded in there the
port that it is supposed to be running off of. 80 is the default and if
its 80, just use C:\localhost\etc. If its something other than 80, had
to use C:\localhost:8080\etc, 8080 is your port your using. Then, after
modifying, just add existing web project to your solution and it will
open up.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top