Search code examples
c#resourcesumbraco

Validations doesn't exist on Resources when publishing


I have an Umbraco solution, where i have installed a plugin called PageComments. Everything works locally. But when i publish and throw it up on the server, i get an error:

Compiler Error Message: CS0234: The type or namespace name 'Validations' does not exist in the namespace 'Resources' (are you missing an assembly reference?)

Line 51:             {
Line 52:                 //If model is not valid or Not able to find pageId or Invalid Captcha return error message.
Line 53:                 returnMessage = Resources.Validations.CommentPostedFailure;
Line 54:                 return Content(returnMessage);
Line 55:             }

I have tried looking for a dll to add in references but, have been unable to find a correct one...

I am a bit stumped.. And have googled for answers to no avail so far.


Solution

  • It seemed an entire folder wasn't being published. Global resources. When this was added, the website worked again.