error after changing creditcardpaymentform
-
- Commander (CMDR)
- Posts: 182
- Joined: Tue Jan 27, 2009 2:29 pm
error after changing creditcardpaymentform
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'
[[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'
Re: error after changing creditcardpaymentform
If you are using Visual Studio then righ click on your solution and trigger clean solution command.
-
- Commander (CMDR)
- Posts: 182
- Joined: Tue Jan 27, 2009 2:29 pm
Re: error after changing creditcardpaymentform
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.
Re: error after changing creditcardpaymentform
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
Read more about the error from MSDN
http://msdn.microsoft.com/en-us/library ... S.80).aspx
-
- Commander (CMDR)
- Posts: 182
- Joined: Tue Jan 27, 2009 2:29 pm
Re: error after changing creditcardpaymentform
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.
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.
Re: error after changing creditcardpaymentform
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.
-
- Commander (CMDR)
- Posts: 182
- Joined: Tue Jan 27, 2009 2:29 pm
Re: error after changing creditcardpaymentform
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
"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
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: error after changing creditcardpaymentform
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.
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
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
Re: error after changing creditcardpaymentform
I second Judy's idea of using Microsoft Visual Web Developer Express.