Technical support This forum is closed.
Version 1.x > Technical support > Shopping Cart Question View modes: 
User avatar
Certified Marketer 13
Certified Marketer 13
nr673602 - 9/8/2006 9:22:55 PM
   
Shopping Cart Question
After every modification made to shopping cart/ThankYou.aspx.cs code I am receiving the following error:

System.InvalidCastException was unhandled by user code
Message="Unable to cast object of type 'ASP.shoppingcart_commercereviewitem_ascx' to type 'WebProject.CommerceReviewItem'."

Upon restarting Visual Studio, running, and then clicking on my product which links the user to the shopping cart module I receive this error:

System.IO.FileNotFoundException was unhandled by user code
Message="Could not load file or assembly 'App_Web_y4fxieau, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."

Upon once again restarting Visual Studio, running, and then clicking on my product which links the user to the shopping cart module, everything works as expected. Please note that I am not making any changes between these restarts.

This is the second project in which I have had the same problem with the shopping cart. Everything ends up working, but it is a great annoyance to constantly be restarting the entire project, twice, every time I change code on the page.

The only other changes I have made to anything in the shopping cart module were to comment out the email code, and I have added one column to the COM_Customer Table.

Any assistance would be appreciated.

User avatar
Guest
admin - 9/11/2006 8:50:37 AM
   
Re: Shopping Cart Question
Hello,

Thank you for your message.

Could you please send us the modified code of the ThankYou.aspx page to support@kentico.com?

Regarding the other issue: unfortunately, we're not sure what exactly causes this issue. It seems to be related to the temporary development files created by VS 2005.

Best Regards,