 |
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
|
|
|
|
|

November 19th, 2013, 12:57 PM
|
|
Registered User
|
|
Join Date: Nov 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|
|

November 19th, 2013, 02:52 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

November 19th, 2013, 04:22 PM
|
|
Registered User
|
|
Join Date: Nov 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

November 19th, 2013, 04:29 PM
|
|
Registered User
|
|
Join Date: Nov 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

November 19th, 2013, 04:51 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
 |
|