• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Bryce
#1 Posted : Thursday, March 3, 2016 11:11:39 PM(UTC)
Bryce

Rank: Member

Joined: 3/3/2016(UTC)
Posts: 6

So I'm trying to set up a new store for a customer. When I choose the Bvc2013 Display Template and I click on a product from the homepage product grid it goes to the url but displays Error finding page. If I pick Bvc5 Display Template then it works. The problem is that I don't want the Bvc5 template... I like the Bvc2013 template better. Any ideas on what could be going on?
Aaron
#2 Posted : Friday, March 4, 2016 9:51:35 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,381
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Bryce,

This could happen for a variety of reasons so let's try to narrow it down. Edit the product in question and change the template to Bvc2013. Then, after saving your changes, click the "View in Store" button below where you selected the template. Did you receive the same error? If so, immediately check the Audit Log (Options >> Audit Log) in the admin.You should see an entry at or near the top that corresponds to the error that you just received (note that the time stamp is in UTC). Clicking the blue description text will open a window with details about the error. Please post that information here.

Edited by user Friday, March 4, 2016 9:52:18 AM(UTC)  | Reason: Not specified

Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
Steve95
#3 Posted : Friday, March 4, 2016 9:52:39 AM(UTC)
Steve95

Rank: Member

Joined: 4/29/2010(UTC)
Posts: 253

Thanks: 4 times
Was thanked: 11 time(s) in 10 post(s)
Is the template folder present in BVModoules>ProductTemplates>BVC2013

I have had a few instances where the folder has been created but not the product.aspx and product.aspx.vb files

Bryce
#4 Posted : Friday, March 4, 2016 9:58:33 AM(UTC)
Bryce

Rank: Member

Joined: 3/3/2016(UTC)
Posts: 6

This is the error that I was getting...
[A]AddToCartClickedEventHandler cannot be cast to [B]AddToCartClickedEventHandler. Type A originates from 'App_Web_oo21gx5x, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c5732fd4\4ead170d\App_Web_oo21gx5x.dll'. Type B originates from 'App_Web_lbht34yn, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c5732fd4\4ead170d\App_Web_lbht34yn.dll'.

I rebuilt the solution and am in the middle of doing a push up to the dev server now to see if this resolves it. Will let you know shortly.
Bryce
#5 Posted : Friday, March 4, 2016 10:03:09 AM(UTC)
Bryce

Rank: Member

Joined: 3/3/2016(UTC)
Posts: 6

After pushing the rebuilt files up to the dev server I still get the same error when trying to view the product.
Steve95
#6 Posted : Friday, March 4, 2016 11:05:33 AM(UTC)
Steve95

Rank: Member

Joined: 4/29/2010(UTC)
Posts: 253

Thanks: 4 times
Was thanked: 11 time(s) in 10 post(s)
Could be temporary file compile cache issue and nothing to do with BV.

Have to tried stopping IIS

Locate C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c5732fd4\

Delete the folder.

Revisit the website. So that BV recompiles
Bryce
#7 Posted : Friday, March 4, 2016 12:06:18 PM(UTC)
Bryce

Rank: Member

Joined: 3/3/2016(UTC)
Posts: 6

They restarted the apppool and deleted the folder but they are still seeing the error.
Aaron
#8 Posted : Friday, March 4, 2016 1:26:24 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,381
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Originally Posted by: Steve95 Go to Quoted Post
Is the template folder present in BVModoules>ProductTemplates>BVC2013

Yes. However, in BVC 2015 there is the ability to override templates from inside the theme folder (e.g. /BVModules/Themes/Foundation4 Responsive/Product Templates/Bvc2013/).

Originally Posted by: Steve95 Go to Quoted Post
I have had a few instances where the folder has been created but not the product.aspx and product.aspx.vb files

All of the out-of-the-box templates have the necessary files. So, either the files are missing and need to be copied from a fresh download of BV Commerce, or this is a folder/template that was incorrectly added.

Originally Posted by: Bryce Go to Quoted Post
I rebuilt the solution and am in the middle of doing a push up to the dev server now to see if this resolves it. Will let you know shortly.

You do not need to rebuild the solution unless you are modified files outside the website project. The website project is compiled automatically by the server the first time it runs.

Originally Posted by: Bryce Go to Quoted Post
This is the error that I was getting...
[A]AddToCartClickedEventHandler cannot be cast to [B]AddToCartClickedEventHandler. Type A originates from 'App_Web_oo21gx5x, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c5732fd4\4ead170d\App_Web_oo21gx5x.dll'. Type B originates from 'App_Web_lbht34yn, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c5732fd4\4ead170d\App_Web_lbht34yn.dll'.

Has this template ever worked properly? Have you tried to run the site on a local machine or development server? Lastly, are you able to compile the website project without any errors?

Originally Posted by: Steve95 Go to Quoted Post
Could be temporary file compile cache issue and nothing to do with BV.

I agree; it does sound like a temporary file compile issue. However, I would think that everything you tried should have fixed it. If you're running BVC 2015 try setting the optimizeCompilations attribute to "false" in the <compilation> node of your Web.config file. If that fixes it you can then switch it back.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
Bryce
#9 Posted : Friday, March 4, 2016 1:32:55 PM(UTC)
Bryce

Rank: Member

Joined: 3/3/2016(UTC)
Posts: 6

The site compiles locally just fine and can run it locally w/o issue. I am going to make a little inconsequential change to the SingleProduct file on the server to see if it triggers a rebuild and fixes the issue.
Bryce
#10 Posted : Friday, March 4, 2016 1:37:57 PM(UTC)
Bryce

Rank: Member

Joined: 3/3/2016(UTC)
Posts: 6

Ok. So I went and added a comment specifically to the SingleProduct.ascx page and that must have forced a recompile and it now works.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012