error after changing creditcardpaymentform

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Chris Hadden
Commander (CMDR)
Commander (CMDR)
Posts: 182
Joined: Tue Jan 27, 2009 2:29 pm

error after changing creditcardpaymentform

Post by Chris Hadden » Wed Oct 28, 2009 12:16 pm

Yesterday I modified the wwwroot/checkout/paymentforms/CreditCardPaymentForm.ascx file. I wanted to get rid of the American Express, and the Discover images and remarks shown on that page as we do not accept them. It seemed to work at that moment but now when you try to go to https://www.cameojewelrysupply.com/Chec ... fault.aspx I am getting the following error. I went and reinstalled the original file but I am still getting this error. Can anyone tell me what it is? Thanks


[[ConLib:OnePageCheckout]] d:\Domains\cameojewelrysupply.com\wwwroot\ConLib\OnePageCheckout.ascx.cs(1162): error CS0433: The type 'ASP.CreditCardPaymentForm' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\afbc1441\b57df724\App_Web_rjuo4abm.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\afbc1441\b57df724\App_Web_egwp09z3.dll'

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

Re: error after changing creditcardpaymentform

Post by mazhar » Thu Oct 29, 2009 5:05 am

If you are using Visual Studio then righ click on your solution and trigger clean solution command.

Chris Hadden
Commander (CMDR)
Commander (CMDR)
Posts: 182
Joined: Tue Jan 27, 2009 2:29 pm

Re: error after changing creditcardpaymentform

Post by Chris Hadden » Thu Oct 29, 2009 7:49 am

No I am not using visual studio. I talked to me web host they reset the application pool but that did not solve it. They think I should republish the entire site or pay them to reinstall from a backup. I am stuck now because I have no idea what the issue is. I am tinkering around with the site but I do not really know what I am doing. I am afraid I might cause the same error again. The way I have edited pages on the site is I have opened the site using ftp in "frontpage" I copy the page I want to edit to a local site on my computer. Open the file with frontpage, edit the code then I recopy that back to my remote site, replacing that file...Is there any problem with that? I seem to recall years ago that you were supposed to only edit .asp pages in a text editor or you could corrupt them. I have not been doing that with the .ascx files. I don't know what to do at this point other then reinstall the site. I appreciate any help on this.

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

Re: error after changing creditcardpaymentform

Post by mazhar » Thu Oct 29, 2009 8:33 am

Did you created any duplicate of actual file? in this case multiple control files will be referencing same code behind that may cause this problem. If this is the case then you can remove the extra backup files and try again. One more quick solution could be to refresh or empty your website data under c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\afbc1441. In order to perform this delete operation you may have to stop your website to avoid access issues.
Read more about the error from MSDN
http://msdn.microsoft.com/en-us/library ... S.80).aspx

Chris Hadden
Commander (CMDR)
Commander (CMDR)
Posts: 182
Joined: Tue Jan 27, 2009 2:29 pm

Re: error after changing creditcardpaymentform

Post by Chris Hadden » Thu Oct 29, 2009 8:48 am

Well I left an original copy of the file in the folder so the one I changed was.

CreditCardPaymentForm.ascx

then the original was renamed

CreditCardPaymentFormoriginal.ascx

and left in the same folder.

I did delete the altered file and put the original back to it's old name and that has not solved the issue.

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

Re: error after changing creditcardpaymentform

Post by mazhar » Thu Oct 29, 2009 9:02 am

That was the root cause. Now I think you should ask your host to perform temporary files clearance solution. Be careful in future when creating backups do not create backups in same folder some times this confuses ASP.NET compiler resulting errors.

Chris Hadden
Commander (CMDR)
Commander (CMDR)
Posts: 182
Joined: Tue Jan 27, 2009 2:29 pm

Re: error after changing creditcardpaymentform

Post by Chris Hadden » Thu Oct 29, 2009 9:43 am

Thanks so much for the help that resolved the issue. In regards to my earlier inquiry :

"I seem to recall years ago that you were supposed to only edit .asp pages in a text editor or you could corrupt them."

Is there any truth to that or is it OK to continue editing in "frontpage"

Thanks again

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

Re: error after changing creditcardpaymentform

Post by jmestep » Thu Oct 29, 2009 3:07 pm

I think there is a setting in Front Page where you can tell it not to change code, but I don't remember what it was. You shouldn't have any problems editing the .ascx files, but you might with the .cs files.
I tried to use MicrosoftExpressionWeb for ftp editing of a remote site and it threw in a bunch of   wherever there was white space, so I had to quit using it.
You would be better using the free Microsoft Visual Web Developer Express to edit- there is still a lot of support for easy coding of styles and has a tool box that you can drag .net controls from.
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: error after changing creditcardpaymentform

Post by mazhar » Fri Oct 30, 2009 4:45 am

I second Judy's idea of using Microsoft Visual Web Developer Express.

Post Reply