Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 19th, 2013, 12:57 PM
Registered User
 
Join Date: Nov 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Deploying Site - School of Hard Knocks

Hi guys. New guy here. I just finished the book (wonderful book by the way) and finished all the 'Try It Outs'. Last chapter, Deploying Your Web Site', you create a folder called 'Release' on your C: drive, rebuild the web site, go to 'Copy Web Site', and copy all the folders and files from the Source Web Site, to the Remote Web Site (which is the newly created Release folder on the C: drive). Did all that. It's all good. Then before moving any further I changed my mind, thinking I want to improve a few things before further deployment. I want to add a few more Photo albums with pictures. So I did that. Added five more Photo Albums with new pictures in each. Done. It's all good. Now to re-deploy. I rebuilt the web site. I thought the thing to do then would be delete the Release folder from my C: drive containing the copied files from the first time before I changed my mind, recreate a new empty Release folder over again, and recopy all the newly rebuilt files from the Source to the newly created 'Release' folder again like before. Ugh, wrong. Didn't work. All the source files are gone now. When I deleted the first 'Release' folder, all the source files were deleted too. What happened and can I get them back? Every folder in the web site (in the 'Site' directory) is empty. All files are gone. Do I have to start all over and rebuild the whole Planet Wrox web site from scratch again?
 
Old November 19th, 2013, 02:52 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I there,

I am not sure I understand what the problem is. Release should contain just a copy of the site, so your files should still be in the Source folder, no? Can you elaborate on what you're doing and what went wrong?

>> When I deleted the first 'Release' folder, all the source files were deleted too.

Are you saying C:\BegASPNET\Source got emptied when you deleted C:\BegASPNET\Release? That would absolutely make no sense to me.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old November 19th, 2013, 04:22 PM
Registered User
 
Join Date: Nov 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had gone into Internet Explorer and deleted the Release folder with everything in it. I would have thought it would have left the source files intact, so I could recreate a new Release folder and copy the newly modified web site to it. It did not work. Deleting the Release folder from Internet Explorer (Windows 8) removed not only the Release folder and it's contents. All the source files were removed as well. It makes no sense to me either. They were gone. I have found them all in the Recycle Bin and have restored them all. I must have done something inadvertently, deleting more files that I meant to, but I don't know what it was. I'm hoping I am back in business. Thanks for the very quick reply Imar. With regards. Tom
 
Old November 19th, 2013, 04:29 PM
Registered User
 
Join Date: Nov 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Further explanation, in a nutshell: For some reason, manually deleting C:\BegASPNET\Release thru Internet Explorer removed all the files in C:\BegASPNET\Site as well. Strange as heck. Oh well. I have no explanation for why. Have a good day. with regards
Tom
 
Old November 19th, 2013, 04:51 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
manually deleting C:\BegASPNET\Release thru Internet Explorer removed all the files in C:\BegASPNET\Site as well.
Are you sure? That sounds really weird, and would be a major bug in Windows.

Glad you found the files again. Good time for backup software or for online TFS for source control ;-)

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i generate random numbers with mysql for students 2 register on a school site www.freegist.com Beginning PHP 0 April 16th, 2012 06:02 AM
Deploying Site hozdaman BOOK: Beginning ASP.NET Web Pages with WebMatrix 4 February 16th, 2012 02:06 AM
Help with deploying site. hozdaman BOOK: Beginning ASP.NET 4 : in C# and VB 2 October 20th, 2011 11:09 AM
Deploying the Site SoloEng BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 8 September 9th, 2007 09:39 PM
Deploying the site MoeShall BOOK: ASP.NET Website Programming Problem-Design-Solution 3 April 20th, 2005 07:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.