04 2012 档案

摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.IO;usingSystem.Net;namespaceXcDownLoadFile{publicclassDownLoadFile{//////下载文件方法//////文件保存路径和文件名///返回服务器文件名///publicboolDeownloadFile(stringstrFileName,stringfile){boolflag=false;//打开上次下载的文件longSPosition=0;//实例化 阅读全文
posted @ 2012-04-26 23:37 Hayden Han 阅读(12426) 评论(3) 推荐(1)
摘要:try{StringfileToUpload="C:\test.txt";StringsharePointSite="http://localhost:80/";StringdocumentLibraryName="test";SPSecurity.RunWithElevatedPrivileges(delegate(){using(SPSiteoSite=newSPSite(sharePointSite)){using(SPWeboWeb=oSite.RootWeb){oWeb.AllowUnsafeUpdates=true;if( 阅读全文
posted @ 2012-04-11 14:30 Hayden Han 阅读(1672) 评论(0) 推荐(0)
摘要:解决方法:应用程序池标示不同,设置相同的应用程序池标示或选择与sharepoint使用同一个应用程序池。 阅读全文
posted @ 2012-04-11 14:27 Hayden Han 阅读(233) 评论(0) 推荐(0)