资源类型“XXXX.XXX”没有名为“_RequiredXXXX”的公开可见静态属性;
“找不到指定的‘ErrorMessageResourceType’属性。” {“资源类型‘XXXX.XXXXXX’没有名为‘_RequiredXXXX’的公开可见静态属性。”}
当调用我的 Create.aspx 视图并跨过该行时,我收到此错误:
<%=Html.TextBoxFor(Function(model) model.NO_DEMND, New With {.class = "txtbox", .disabled = True})%>
<%=Html.ValidationMessageFor(Function(model) model.NO_DEMND)%>
消息位于资源文件,我认为问题比这更深,但我很难找到它。它很早就在 ASPX 页面上弹出此错误。这是它经过的第一个模型组件,我尝试删除这个组件,它对于所有 model.xxxx 组件都是相同的消息。我猜这是链接中某个地方的错误。 .EDMX 是正确的,我没有遇到任何构建错误,有人可以告诉我吗?
多谢 汤姆.
"'ErrorMessageResourceType' property specified was not found."
{"The resource type 'XXXX.XXXXXX' does not have a publicly visible static property named '_RequiredXXXX'."}
I'm getting this error when my Create.aspx view is called and steps over that line:
<%=Html.TextBoxFor(Function(model) model.NO_DEMND, New With {.class = "txtbox", .disabled = True})%>
<%=Html.ValidationMessageFor(Function(model) model.NO_DEMND)%>
The message is there in the Ressources file, I think the problem is deeper than that but i'm having a hard time finding it. It pops this error very early on the ASPX page. It's the first model component it goes thru, i tried removing this one and it's the same message for all the model.xxxx components. I guess it's an error somewhere in the linkage. The .EDMX is correct and I get no build errors, can anyone enlight me ?
Thanks alot
Tom.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找到了答案,事实证明我们去年在这个项目上遇到了同样的错误。
为了知识和目的,我将添加答案:-)
右键单击受影响的资源文件以获取属性。
设置这些值:
希望它可以在不久的将来帮助任何人,因为我花了 4 个小时才弄清楚这一点......
汤姆。
Found the answer, turns out we had the same bug last year working on this project.
I'll add the answer for the sakes of knowledge and sO :-)
Right click on the affected Resources file to get the properties.
Set those values:
Hope it helps anyone in the near futur since it took me 4hrs to figure this out...
Tom.
将我的资源文件的构建操作属性更改为内容解决了错误
Changing the build action property of my resource file to content resolved the error