小编Sha*_*kar的帖子

阻止删除SharePoint列表项

如何防止用户删除sharepoint任务列表项?我应该覆盖ItemDeleting事件还是有任何其他站点级别选项可用于实现相同的目标?

sharepoint sharepoint-2007 sharepoint-list

6
推荐指数
2
解决办法
2万
查看次数

为什么在SharePoint 2010迁移后此文件写入失败?

我将我的MOSS 2007应用程序(带有自定义批准工作流程)迁移到Sharepoint 2010.我有这个通用的代码来记录数据

private void WriteToLog(String logInfo)
{
    SPSecurity.RunWithElevatedPrivileges(delegate()
    {
        File.AppendAllText(LOG_FILE_PATH + string.Format("{0:" + LOG_FILE_FORMAT + "}", DateTime.Now) + ".log", logInfo);
    });
}
Run Code Online (Sandbox Code Playgroud)

我已经完成了数据库分离升级,在以前的环境中有正在运行的工作流程(进行中状态),这应该在sharepoint 2010中继续.但不幸的是,这不会发生,我的复制器活动引发了错误.我在sharepoint日志中找到了这个

System.IO.IOException:设备尚未就绪.
在System.IO._ Error.WinIOError(Int32 errorCode,String maybeFullP ath)
在System.IO.FileStream.Init(String p ath,FileMode模式,FileAccess访问,Int32权限,布尔useRights,FileShare共享,Int32 bufferSize,FileOptions选项) ,SECURITY
atTRIBUTES sec attrs,String msgP ath,Boolean bFromProxy)
at System.IO.FileStream..ctor(String p ath,FileMode mode,FileAccess access,FileShare share,Int32 bufferSize,FileOptions options,String msgP ath,Boolean bFromProxy)
at at System.IO.StreamWriter..ctor上的System.IO.FileStream..ctor(String p ath,FileMode模式,FileAccess访问,FileShare共享,Int32 bufferSize,FileOptions选项)
(String p ath,Boolean append,Encoding encoding,Int32 bufferSize )
at System.IO.StreamWriter..ctor(String p ath,Boolean append,Encoding encoding)
at System.IO.File.AppendAllText(String p ath,String contents,Encoding encoding)
at …

c# sharepoint sharepoint-2010 sharepoint-workflow

3
推荐指数
1
解决办法
1万
查看次数