473,385 Members | 1,373 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,385 software developers and data experts.

transferring an asp.net project from one pc to another


I'm trying to copy an asp.net project onto another computer in order to
work on it from there as well. Whatever way I set up the directory in IIS
the project cannot be run on the new computer (I posted a similar post
yesterday but this one should be a bit clearer as to the steps I took..)
When I copied the project directory into the wwwroot, and
then went into IIS, it showed the directory in 'Default Web Site' as a
'folder'.

I then created a virtual directory with the same name as the folder and
then the name appeared TWICE (once for virtual directory and once for
the folder)

I even tried removing the folder from wwwroot and created the virtual
directory again.

Once I copied the folder back into wwwroot, IIS still showed it
appearing twice.

That seems to have been the problem that I couldn't find a solution to
(it wouldn't run the project because of this)
When I created a new project in VS, it only showed the virtual directory
in IIS despite the folder being in wwwroot. Weird.

Any ideas why this might be happening?

Thanks.

--

fiddlewidawiddum
Dec 14 '06 #1
9 1659
Hasn't this question already been answered for you ?

You need to distinguish between copying a website and copying a project.
You don't copy a website and treat it as if it was a project.

As far as projects are concerned, just copying the source files, found at :
Drive:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites

....and copying the solution files, found at :
Drive:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\xxx

....will suffice to copy a project, as long as the paths in the solution files are the same,
and as long as the virtual directory exists in the second computer.

If the virtual directory does not exist in the second computer, create it.

If the physical path is not the same ( drive and directory tree ),
then edit the solution file so it points to the right directory,
and make sure the virtual directory specified in the solution file exists.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Stimp" <re*@spumco.comwrote in message news:sl****************@murphy.redbrick.dcu.ie...
>
I'm trying to copy an asp.net project onto another computer in order to
work on it from there as well. Whatever way I set up the directory in IIS
the project cannot be run on the new computer (I posted a similar post
yesterday but this one should be a bit clearer as to the steps I took..)
When I copied the project directory into the wwwroot, and
then went into IIS, it showed the directory in 'Default Web Site' as a
'folder'.

I then created a virtual directory with the same name as the folder and
then the name appeared TWICE (once for virtual directory and once for
the folder)

I even tried removing the folder from wwwroot and created the virtual
directory again.

Once I copied the folder back into wwwroot, IIS still showed it
appearing twice.

That seems to have been the problem that I couldn't find a solution to
(it wouldn't run the project because of this)
When I created a new project in VS, it only showed the virtual directory
in IIS despite the folder being in wwwroot. Weird.

Any ideas why this might be happening?

Thanks.

--

fiddlewidawiddum

Dec 14 '06 #2
On Wed, 13 Dec 2006 Juan T. Llibre <no***********@nowhere.comwrote:
Hasn't this question already been answered for you ?
nope :)
You need to distinguish between copying a website and copying a project.
You don't copy a website and treat it as if it was a project.

As far as projects are concerned, just copying the source files, found at :
Drive:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites

...and copying the solution files, found at :
Drive:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\xxx

...will suffice to copy a project, as long as the paths in the solution files are the same,
and as long as the virtual directory exists in the second computer.
right, I'm doing this in VS 2003 btw , I should have mentioned that.
If the virtual directory does not exist in the second computer, create it.

If the physical path is not the same ( drive and directory tree ),
then edit the solution file so it points to the right directory,
and make sure the virtual directory specified in the solution file exists.
right, so it doesn't matter if I create the virtual directory first and
then copy the project directory to wwwroot (as opposed to copying the
project before creating the virtual directory)?

Also.. on a side note.. why does everyone in this newsgroup top-post. Is
it now acceptable netiquette? :)

Thanks!
Peter

>
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Stimp" <re*@spumco.comwrote in message news:sl****************@murphy.redbrick.dcu.ie...
>>
I'm trying to copy an asp.net project onto another computer in order to
work on it from there as well. Whatever way I set up the directory in IIS
the project cannot be run on the new computer (I posted a similar post
yesterday but this one should be a bit clearer as to the steps I took..)
>When I copied the project directory into the wwwroot, and
then went into IIS, it showed the directory in 'Default Web Site' as a
'folder'.

I then created a virtual directory with the same name as the folder and
then the name appeared TWICE (once for virtual directory and once for
the folder)

I even tried removing the folder from wwwroot and created the virtual
directory again.

Once I copied the folder back into wwwroot, IIS still showed it
appearing twice.

That seems to have been the problem that I couldn't find a solution to
(it wouldn't run the project because of this)
When I created a new project in VS, it only showed the virtual directory
in IIS despite the folder being in wwwroot. Weird.

Any ideas why this might be happening?

Thanks.

--

fiddlewidawiddum


--

fiddlewidawiddum
Dec 14 '06 #3
re:
right, I'm doing this in VS 2003 btw , I should have mentioned that.
The only difference is that the file to edit is:

Projectname.csproj.webinfo
or
Projectname.vbproj.webinfo

And the content which you edit is :

<Web URLPath = "http://localhost/Directory.If.It.Exists/Projectname.csproj" />
or
<Web URLPath = "http://localhost/Directory.If.It.Exists/Projectname.vbproj" />

Once you have created the IIS application, and pointed the
physical directory to the virtual directory, double-clicking
the Solution file will open the project in VS 2003 - no problem.

re:
right, so it doesn't matter if I create the virtual directory first and
then copy the project directory to wwwroot (as opposed to copying the
project before creating the virtual directory)?
Right, it doesn't matter, as long as the path in the webinfo
file is correct before you open the project with VS 2003.

re:
Also.. on a side note.. why does everyone in this newsgroup top-post. Is
it now acceptable netiquette? :)
I never knew that top-posting was unacceptable netiquette.
It's the poster's choice whether to top or bottom post.

:)

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Stimp" <re*@spumco.comwrote in message news:sl****************@murphy.redbrick.dcu.ie...
On Wed, 13 Dec 2006 Juan T. Llibre <no***********@nowhere.comwrote:
>Hasn't this question already been answered for you ?

nope :)
>You need to distinguish between copying a website and copying a project.
You don't copy a website and treat it as if it was a project.

As far as projects are concerned, just copying the source files, found at :
Drive:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites

...and copying the solution files, found at :
Drive:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\xxx

...will suffice to copy a project, as long as the paths in the solution files are the same,
and as long as the virtual directory exists in the second computer.

right, I'm doing this in VS 2003 btw , I should have mentioned that.
>If the virtual directory does not exist in the second computer, create it.

If the physical path is not the same ( drive and directory tree ),
then edit the solution file so it points to the right directory,
and make sure the virtual directory specified in the solution file exists.

right, so it doesn't matter if I create the virtual directory first and
then copy the project directory to wwwroot (as opposed to copying the
project before creating the virtual directory)?

Also.. on a side note.. why does everyone in this newsgroup top-post. Is
it now acceptable netiquette? :)

Thanks!
Peter

>>
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Stimp" <re*@spumco.comwrote in message news:sl****************@murphy.redbrick.dcu.ie...
>>>
I'm trying to copy an asp.net project onto another computer in order to
work on it from there as well. Whatever way I set up the directory in IIS
the project cannot be run on the new computer (I posted a similar post
yesterday but this one should be a bit clearer as to the steps I took..)
>>When I copied the project directory into the wwwroot, and
then went into IIS, it showed the directory in 'Default Web Site' as a
'folder'.

I then created a virtual directory with the same name as the folder and
then the name appeared TWICE (once for virtual directory and once for
the folder)

I even tried removing the folder from wwwroot and created the virtual
directory again.

Once I copied the folder back into wwwroot, IIS still showed it
appearing twice.

That seems to have been the problem that I couldn't find a solution to
(it wouldn't run the project because of this)
When I created a new project in VS, it only showed the virtual directory
in IIS despite the folder being in wwwroot. Weird.

Any ideas why this might be happening?

Thanks.

--

fiddlewidawiddum



--

fiddlewidawiddum

Dec 14 '06 #4
On Thu, 14 Dec 2006 Juan T. Llibre <no***********@nowhere.comwrote:
>right, so it doesn't matter if I create the virtual directory first and
then copy the project directory to wwwroot (as opposed to copying the
project before creating the virtual directory)?

Right, it doesn't matter, as long as the path in the webinfo
file is correct before you open the project with VS 2003.
great thanks!
>Also.. on a side note.. why does everyone in this newsgroup top-post. Is
it now acceptable netiquette? :)

I never knew that top-posting was unacceptable netiquette.
It's the poster's choice whether to top or bottom post.
yeah it's generally regarded as easier to read if you bottom-post (i.e.
you read the answer after reading the question, without having to scroll
down to find the original question)

http://www.caliburn.nl/topposting.html

Thanks again!

--

fiddlewidawiddum
Dec 14 '06 #5
re:
yeah it's generally regarded as easier to read if you bottom-post (i.e.
you read the answer after reading the question, without having to scroll
down to find the original question)
I find it a bit of a bother to have to skip through a whole post
before getting to the part which most interests me: the answer.

When reading replies, I generally already know the question.

;-)


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Stimp" <re*@spumco.comwrote in message news:sl****************@murphy.redbrick.dcu.ie...
On Thu, 14 Dec 2006 Juan T. Llibre <no***********@nowhere.comwrote:
>>right, so it doesn't matter if I create the virtual directory first and
then copy the project directory to wwwroot (as opposed to copying the
project before creating the virtual directory)?

Right, it doesn't matter, as long as the path in the webinfo
file is correct before you open the project with VS 2003.

great thanks!
>>Also.. on a side note.. why does everyone in this newsgroup top-post. Is
it now acceptable netiquette? :)

I never knew that top-posting was unacceptable netiquette.
It's the poster's choice whether to top or bottom post.

yeah it's generally regarded as easier to read if you bottom-post (i.e.
you read the answer after reading the question, without having to scroll
down to find the original question)

http://www.caliburn.nl/topposting.html

Thanks again!

--

fiddlewidawiddum

Dec 14 '06 #6
On Thu, 14 Dec 2006 Juan T. Llibre <no***********@nowhere.comwrote:
re:
>yeah it's generally regarded as easier to read if you bottom-post (i.e.
you read the answer after reading the question, without having to scroll
down to find the original question)

I find it a bit of a bother to have to skip through a whole post
before getting to the part which most interests me: the answer.

When reading replies, I generally already know the question.
ah but you replied to me in a bottom post format ;)

You generally cut out the lines of text that are not relevant to the
answer thus making the post shorter

Take 2 or 3 seconds extra to do, but makes the replies a lot clearer
imho
--

fiddlewidawiddum
Dec 14 '06 #7
re:
ah but you replied to me in a bottom post format ;)
No, I didn't.
I *quoted* the relevant part of the post and posted my reply below it, just like in this post.

The rest of the post is still quoted below, in case anybody wants some context.
That's "smart top posting" ( I always reply in that mode ).

;-)

Bottom posting is when you post your reply at the bottom of the complete post.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Stimp" <re*@spumco.comwrote in message news:sl****************@murphy.redbrick.dcu.ie...
On Thu, 14 Dec 2006 Juan T. Llibre <no***********@nowhere.comwrote:
>re:
>>yeah it's generally regarded as easier to read if you bottom-post (i.e.
you read the answer after reading the question, without having to scroll
down to find the original question)

I find it a bit of a bother to have to skip through a whole post
before getting to the part which most interests me: the answer.

When reading replies, I generally already know the question.

ah but you replied to me in a bottom post format ;)

You generally cut out the lines of text that are not relevant to the
answer thus making the post shorter

Take 2 or 3 seconds extra to do, but makes the replies a lot clearer
imho
--

fiddlewidawiddum

Dec 14 '06 #8
On Thu, 14 Dec 2006 Juan T. Llibre <no***********@nowhere.comwrote:
re:
>ah but you replied to me in a bottom post format ;)

No, I didn't.
I *quoted* the relevant part of the post and posted my reply below it, just like in this post.

The rest of the post is still quoted below, in case anybody wants some context.
That's "smart top posting" ( I always reply in that mode ).

;-)

Bottom posting is when you post your reply at the bottom of the complete post.

did you follow the link I posted?

Bottom posting is always 'quoting' the previous post. As it should
always be done






;-)

--

fiddlewidawiddum
Dec 14 '06 #9
re:
Bottom posting is always 'quoting' the previous post.
Slightly inaccurate. See :

http://en.wikipedia.org/wiki/Bottom_posting

' The main options are "top-posting" — replying above the original message;
"bottom-posting" — replying below; or "interleaved posting". '

I always reply using "top-posting", i.e., *replying above the original message*.

Whether you quote or not is irrelevant to the style used.
You can quote and still use either style.

The article pretty much summarizes the issues on all sides of the argument,
plus the history behind them. It's an interesting read.

Again, I only have a preference.
I'd never attempt to convince anybody to use the style I favor instead of another one.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Stimp" <re*@spumco.comwrote in message news:sl****************@murphy.redbrick.dcu.ie...
On Thu, 14 Dec 2006 Juan T. Llibre <no***********@nowhere.comwrote:
>re:
>>ah but you replied to me in a bottom post format ;)

No, I didn't.
I *quoted* the relevant part of the post and posted my reply below it, just like in this post.

The rest of the post is still quoted below, in case anybody wants some context.
That's "smart top posting" ( I always reply in that mode ).

;-)

Bottom posting is when you post your reply at the bottom of the complete post.


did you follow the link I posted?

Bottom posting is always 'quoting' the previous post. As it should
always be done






;-)

--

fiddlewidawiddum

Dec 14 '06 #10

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

Similar topics

24
by: Joseph Geretz | last post by:
Up to this point, our application has been using Windows File Sharing to transfer files to and from our application document repository. This approach does not lend itself toward a secure...
1
by: vikram | last post by:
What is the best way of transferring values from one aspx page to another when user click a button, except response.redirect and server.transfer.
2
by: Rani | last post by:
hi guys I don't know if this is the right place for it but I created 2 pages in page one there is a text box in which the user enters his name, in page 2 there is a the same text box. I would...
2
by: ryan.d.rembaum | last post by:
Hello, I am trying to build a standardized login screen that several different web application could use. What I would like is for the login screen to detect where the user has come from. ...
15
by: http://www.visual-basic-data-mining.net/forum | last post by:
Does anyone have any idea how to transferring data from TextBox1 in form1 to textBox2 in form2..... That means after i fill in any data in textBox1 and click Next button... It will bring me to...
1
by: Murali | last post by:
Hi Everyone, I am writing a program to transfer a file from one linux pc to another linux pc. I am using linux-2.4.x and pppd-2.4.2 version . I have few queries: How to establish a PPP...
3
by: JayD | last post by:
(Not sure whether it is a general aspnet problem or a specific security problem, hence posting it in 2 groups). This will solve for us a number of problems. I have developed a website on my...
1
by: vikas chand | last post by:
I have this project in which I have to transfer a .JPG file size(4-8 KB) through serial port to another PC using Visual C++(preferred). You can also help is you have something in Turbo c also.
1
by: =?Utf-8?B?Z29sZGVucmF0ZQ==?= | last post by:
Hi everyone, I have a client who wants a solution for the following problem. I'm not sure that its possible but I'll ask anyway. The client has joined godaddy's reseller plan. They've provided...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.