如何解释FrontPage Extensions中的错误代码?
时间:2020-03-06 14:44:41 来源:igfitidea点击:
愚蠢的赏金系统自动选择了错误的答案。
我正在使用首页扩展名与SharePoint Services 3.0进行交互,如此处所述。
在大多数示例中,我都看到客户端只是在结果中查找特定的英语字符串,然后使用该字符串来确定是否发生了错误。但是,我正在编写一个可能广泛部署并放在非英语SharePoint服务器上的应用程序,因此我想改用返回的错误代码。
不幸的是,错误代码的文档定义得很差。它包含以下宝石:
Although many RPC protocol methods have unique error messages, most rely on a standard error message format to relay information if a method fails to complete properly.
嗯,这是什么"标准错误消息格式" ...
和
The status is the error code from FrontPage Server Extensions for the condition encountered. osstatus is the error code from the operating system..
同样令人遗憾的是:
In general, the codes are integer values and the messages are text strings that summarize the error.
但没有地方描述可发现这些错误的内容的表格。
在我看来,操作系统错误代码可能是HRESULT,但我不知道在寻找SharePoint错误代码的潜在来源方面该寻找什么。我唯一的线索是status = 589826似乎表明文件已存在。
愚蠢的赏金系统自动选择了错误的答案。
解决方案
我猜它是指"标准"系统错误代码的列表:
http://msdn.microsoft.com/zh-CN/library/ms681381(VS.85).aspx