Huge Warning! - Not Really!

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Harley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 39
Joined: Mon Jun 23, 2008 9:18 am

Huge Warning! - Not Really!

Post by Harley » Thu Aug 07, 2008 12:07 pm

A heads up to all developers, if you create any custom pages, and try to cut and paste them into another directory, you will lose them. When I say lose them, all the code disappeared in the code behind file. I just did this and to say I am not happy is putting it mildly. I just lost 3 days of code I had worked out here. I know I should have made a backup, but that does not excuse the application for doing this. You should be able to cut and paste and move pages to any directory in the application. I would like to know why this happened? I have never had this happen in my 10 yrs of development. I know this is not a visual studio thing either. Can someone from able commerce address this and explain?
Steve Portock
Lead Developer
Web 2 Market, Inc.
http://www.web2market.com

Mailto: sportock@web2market.com

p. 480-220-4121
f. 877-245-5553

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Huge Warning!

Post by Mike718NY » Thu Aug 07, 2008 12:36 pm

I have copied and pasted many files
from the /ConLib
to the /ConLib/Custom/ and have not experienced this.

What directories are copying/pasting from?

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Huge Warning!

Post by jmestep » Thu Aug 07, 2008 12:39 pm

I've done bunches for several sites and haven't had a problem. I have done it on my dev box, haven't used Visual Studio with a direct connection to a live site, haven't tried to copy and paste via ftp either.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Huge Warning!

Post by mazhar » Thu Aug 07, 2008 1:02 pm

A heads up to all developers, if you create any custom pages, and try to cut and paste them into another directory, you will lose them. When I say lose them, all the code disappeared in the code behind file. I just did this and to say I am not happy is putting it mildly. I just lost 3 days of code I had worked out here. I know I should have made a backup, but that does not excuse the application for doing this. You should be able to cut and paste and move pages to any directory in the application. I would like to know why this happened? I have never had this happen in my 10 yrs of development. I know this is not a visual studio thing either. Can someone from able commerce address this and explain?
Please explain in details so that we can try and check the whole procedure.

Harley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 39
Joined: Mon Jun 23, 2008 9:18 am

Re: Huge Warning!

Post by Harley » Thu Aug 07, 2008 1:27 pm

Here is what i did.

1. Created a new page, in the main dir, done via the way the able docs say to do this, with scriptlet support, I just copied the default page and modified it via the admin for it.

2. Created a user control to handle the custom code stuff.

3. Went in to the able admin, and changed out the center content to my user control.

Tested the page, had it all working.

Went to move it to the admin dir, cut the page and code behind file out, pasted it into the admin dir.

Compiled and ran the site to test it.

When the page came up, it was the default page, and all my stuff was gone.

Now as i look, luckily the user control is still in tact, so I should be able to fix this, but I should have not lost anything here just moving it.
Steve Portock
Lead Developer
Web 2 Market, Inc.
http://www.web2market.com

Mailto: sportock@web2market.com

p. 480-220-4121
f. 877-245-5553

Harley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 39
Joined: Mon Jun 23, 2008 9:18 am

Re: Huge Warning!

Post by Harley » Thu Aug 07, 2008 1:37 pm

Now it works, go figure. I opened up the page, changed out the center content to my control, saved it, shut the app down and recompiled it, now its fine. There is still something up with the cut and paste save thing though, but its ok now.
Steve Portock
Lead Developer
Web 2 Market, Inc.
http://www.web2market.com

Mailto: sportock@web2market.com

p. 480-220-4121
f. 877-245-5553

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Huge Warning!

Post by AbleMods » Fri Aug 08, 2008 12:14 am

I know this is not a visual studio thing either. Can someone from able commerce address this and explain?
Out of curiosity, if you cut-and-pasted something in Visual Studio or the operating system why was this an "Able Commerce" thing?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Harley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 39
Joined: Mon Jun 23, 2008 9:18 am

Re: Huge Warning!

Post by Harley » Fri Aug 08, 2008 12:33 am

What I meant by this is that visual studio did not do this, the application has something going on in the background, but I don't know enough about it to say what it is. After I get what I have to get done, done, I am going to test this out again to make sure it was not a fluke. I have been coding dot net since it got released, but I have had to throw all that out to code around how this is architected. This is not a bash on this, I understand some things had to be done a certain way to allow this to work as it does. I just have to get used to how things are done, all part of the learning curve.
Steve Portock
Lead Developer
Web 2 Market, Inc.
http://www.web2market.com

Mailto: sportock@web2market.com

p. 480-220-4121
f. 877-245-5553

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Huge Warning!

Post by AbleMods » Fri Aug 08, 2008 7:31 am

Harley wrote:I just have to get used to how things are done, all part of the learning curve.
Certainly understandable. Everything has a learning curve associated with it.

However, alarming the entire online community with a "warning to all developers" was both premature and inappropriate. When you encounter something that you don't understand, post it in the form of a question or contact Able Tech Support. Their knowledge and ours is remarkably extensive and we are all happy to share it.

This product has been in public release for almost 12 months. Many of us have been actively developing software changes and modules in AC7 long before your "warning to all developers". We're happy to help anyone who joins this community. But those who join this community must also take responsibility for providing reasonable and rational information regardless of any previous programming experience.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Harley
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 39
Joined: Mon Jun 23, 2008 9:18 am

Re: Huge Warning! - Not Really!

Post by Harley » Mon Aug 11, 2008 11:47 am

You may be right on that, sorry, but i still think that the pages changing like that was not cool. I will temper my postings next time and be more careful. I do appreciate the help nonetheless, and the warning as well.
Steve Portock
Lead Developer
Web 2 Market, Inc.
http://www.web2market.com

Mailto: sportock@web2market.com

p. 480-220-4121
f. 877-245-5553

Post Reply