0
votes

Currently working on a project in Umbraco. Where I created a gallery using partial macro views. I tried to beautify the gallery by using lightbox plugin. I copied css file in css folder, images in images folder, js file in scripts folder from lightbox plugin. But while clicking gallery page it throw following error:

Error loading Partial View script (file: ~/Views/MacroPartials/Gallery.cshtml)

2
That error message is super generic and doesn't say anything useful. Did the partial view work before you "beautified" it? Then ry to un-beautify it again and make the changes step by step so you can pinpoint the actual error source. - Jannik Anker

2 Answers

0
votes

Probably just an error/bug in the Gallery.cshtml

You found the reason in the log file goto: \App_Data\Logs\UmbracoTraceLog.txt

0
votes

It looks like that view is missing a @using block

@using Umbraco.Web.PublishedContentModels

There should be a generated Image class in your App_Data\Models folder