C#尝试在Infopath 2007表单中捕获错误 [英] C# try catch error in Infopath 2007 form
问题描述
您能否解释一下该错误可能是什么:当用户向Clientpoint提交客户端Infopath表单(未启用网络)时,C#尝试捕获该错误消息:
Can you please explain what this error might be: when a user submits a client Infopath form (not web-enabled) to Sharepoint the C# try catch spits out this error message:
值不能为空-参数名称:键"
"Value cannot be null - Parameter name: key"
谢谢
Steve
Thanks
Steve
推荐答案
欢迎来到MSDN论坛.
Welcome to the MSDN Forums.
当您(或调用堆栈中的某处)将null作为不可为空的参数传递时,即参数不能为null时,会发生此错误.
This error occures when you (or somewhere in call stack) pass null as a not nullable parameter, i.e. the parameter cannot be null.
我建议跟踪代码以查找不需要可为空的参数的函数,然后查看在哪里传递了null.
I recommend tracing the code to finding the function which needs not nullable parameter, then see where null have been passed.
希望这对您有所帮助.
此致
Yasser
这篇关于C#尝试在Infopath 2007表单中捕获错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!