【发布时间】:2015-02-10 06:11:01
【问题描述】:
我在尝试将文档上传到我的文档库时遇到上述异常。这是我的代码:
spFile = spWeb.Files.Add(
docUrl,
uploadStream,
true, // overwrite or add a new version
uploadMessage.Metadata.CheckInComment ?? "", //check-in comment to use when creating the file in the collection. (can't be NULL)
false);
从浏览器手动上传文件但使用 SPWeb.Files.Add 从代码将文件添加到文档库时不会出现此问题。发生上述异常。请注意,Web 应用程序的内容数据库未满或未设置为只读。
【问题讨论】:
标签: c# sharepoint