0

我是 MS SQL 和 SSRS 的新手。我尝试通过邮件和 Windows 文件共享发送报告。但我收到了这个错误。

写入文件 \ogdtek\reports\Report2 失败:找不到网络名称

日志文件在这里。错误在哪里?报告或保存到路径(\ogdtek\reports\Report2)时。我可以看到报告

http://localhost/Reports/Pages/Report.aspx?ItemPath=%2fReportProject2%2fReport2

       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
   at Microsoft.ReportingServices.FileShareDeliveryProvider.FileShareProvider.SaveReport(Notification notification, SubscriptionData d)
subscription!WindowsService_8!770!12/04/2013-01:27:16:: i INFO: Error writing file Report2 to path \\ogdtek\reports
notification!WindowsService_8!770!12/04/2013-01:27:16:: e ERROR: Error occurred processing subscription 068c6fdd-b076-4504-b3bc-9ce8459fce84: Failure writing file \\ogdtek\reports\Report2 : The network name cannot be found.

谢谢。对不起英语不好

4

2 回答 2

0

尝试使用 (\ \ogdtek\reports\Report2) 不带括号。

我认为您错过了领先的 (\ )

于 2013-12-04T00:10:40.550 回答
0

嗨,我收到了同样的错误,这让我发疯了。我最终需要启用与 NETWORK SERVICE 用户共享的文件夹。不确定这是否正确/安全但对我有用......

我使用的是 Windows 8.1 Pro,然后我转到文件夹并右键单击。然后我去了属性,然后是共享选项卡。单击共享...并添加“网络服务”我还将权限级别更改为读/写。

我还为访问文件夹的用户和网络服务提供了完全权限级别,但您可能只需要添加读写执行权限。为此,请再次右键单击该文件夹并转到“安全”选项卡。单击编辑... 然后添加... 在文本块中键入您的用户,然后单击检查名称。然后确定。然后为该用户设置权限。对网络服务执行相同的操作。

我注意到的另一件事是,如果我尝试使用该文件夹中已有文件的名称保存报告,则会收到错误消息。(只是提个醒……)

于 2015-04-21T17:50:12.153 回答