Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server SSIS-SharePoint-未找到网络路径_Sql Server_Sharepoint_Reporting Services_Ssis_Ssis 2012 - Fatal编程技术网

Sql server SSIS-SharePoint-未找到网络路径

Sql server SSIS-SharePoint-未找到网络路径,sql-server,sharepoint,reporting-services,ssis,ssis-2012,Sql Server,Sharepoint,Reporting Services,Ssis,Ssis 2012,我正在使用SSIS将PDF从SSRS上传到SharePoint 2010库中。当我在SSDT中运行包时,它会按预期上传。但是,当我部署到SSIS目录并使用SQL Server Agent下的代理帐户运行包时,我收到以下错误: 找不到网络路径 我已验证我的代理帐户是否可以发布到SharePoint网站,因为权限设置正确。我相信SSIS甚至没有尝试通过SharePoint网站进行身份验证(可能尝试匿名连接?) 上传PDF的代码位于下面。它成功地向SSRS认证用户,但不向SharePoint认证用户。

我正在使用SSIS将PDF从SSRS上传到SharePoint 2010库中。当我在SSDT中运行包时,它会按预期上传。但是,当我部署到SSIS目录并使用SQL Server Agent下的代理帐户运行包时,我收到以下错误:

找不到网络路径

我已验证我的代理帐户是否可以发布到SharePoint网站,因为权限设置正确。我相信SSIS甚至没有尝试通过SharePoint网站进行身份验证(可能尝试匿名连接?)

上传PDF的代码位于下面。它成功地向SSRS认证用户,但不向SharePoint认证用户。它上载到的路径是UNC路径。如何使其通过UNC路径的身份验证?一个想法是绘制一个驱动器的地图,但这似乎是一个黑客,可能不那么可靠

Dim httpCon As ConnectionManager = Dts.Connections("DDM Report Server")
Dim clientConn As HttpClientConnection = New HttpClientConnection(httpCon.AcquireConnection(Nothing))
clientConn.ServerURL = Dts.Variables("$Package::DDM_ReportServer").Value.ToString() & Dts.Variables("Report_Filename").Value.ToString()
clientConn.DownloadFile(Dts.Variables("$Package::SharePoint_Delivery_Location").Value.ToString() & Dts.Variables("PDF_Name").Value.ToString(), True)

我昨天终于弄明白了。汉诺威首先,你发现了什么。在SSIS中,您可以在脚本任务中使用WebClient,使用URL而不是UNC路径对SharePoint站点进行身份验证。WebClient提供了您需要进行身份验证的所有内容。

您能否在本地登录到SSIS服务器,并查看是否可以从该服务器访问UNC路径?或者让公司的其他人来做这件事?是的,可以,SSIS包将运行。但这只适用于该会议。当服务器重新启动时,它会失败。我需要在代码或连接管理器中模拟相同的功能。如果经过身份验证的用户不是根问题,我的下一个猜测是服务器上没有安装某些IE驱动程序扩展问题。有一些东西允许您将驱动器映射到sharepoint(或将SP视为UNC路径)即使在台式机上有效,我也无法在服务器上工作。@Todd可能是SQL Server代理使用的服务帐户没有访问SharePoint.FWIW的权限-我使用HTTP地址(
http://sharepointreports/sites/.../Documents/
)使用
Workbook.SaveAs(ReportName)