SharePoint 沙盒 Web 部件因必填字段验证器出现错误
我有一个沙箱 Web 部件,在我添加“RequiredFieldValidator”控件之前它工作正常。
看来只有“CustomValidator”工作正常。
我收到以下消息:
部分信任应用程序域中沙盒代码包装器的执行方法引发了未处理的异常:发生了意外错误。
谢谢, 阿米特
I have a sandbox webpart, it works fine until I add "RequiredFieldValidator" control.
It seems that only "CustomValidator" works fine.
I am getting following message:
Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred.
Thanks,
Amit
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
需要设置所有必需的属性,例如对于RequiredFieldValidator,应指定“ControlToValidate”。
我怀疑我应该在查看 html 页面的样子之前指定,我很着急,所以运行了应用程序并得到了这个错误。
我认为当 WebPart 上的控件生成错误时会发生以下错误,这可能是原因之一:
部分信任应用程序域中沙盒代码包装器的 Execute 方法引发了未处理的异常:发生了意外错误。
Required to set all required propoerties, for example for a RequiredFieldValidator "ControlToValidate" should be specified.
I had suspect that I should specified that before I take a look at how the html page looks like, I was in rush so ran the application and got that error.
I think the following error occurs when a control on the WebPart generates the error,this could be one of the reason:
Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred.