发布时资源上不存在验证
Validations doesn't exist on Resources when publishing
我有一个 Umbraco 解决方案,我在其中安装了一个名为 PageComments 的插件。
一切都在本地工作。
但是当我发布并把它扔到服务器上时,我得到一个错误:
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: }
我曾尝试寻找一个 dll 来添加到引用中,但是找不到正确的...
我有点难过.. 到目前为止,我已经在谷歌上搜索了答案,但无济于事。
似乎整个文件夹都没有发布。全球资源。
添加后,网站再次运行。
我有一个 Umbraco 解决方案,我在其中安装了一个名为 PageComments 的插件。 一切都在本地工作。 但是当我发布并把它扔到服务器上时,我得到一个错误:
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: }
我曾尝试寻找一个 dll 来添加到引用中,但是找不到正确的...
我有点难过.. 到目前为止,我已经在谷歌上搜索了答案,但无济于事。
似乎整个文件夹都没有发布。全球资源。 添加后,网站再次运行。