listItem.File.OpenBinary() not working - Remote Blob Storage / FileStreaming not enabled on SQL Server the culprit?

前端 未结 3 1026
-上瘾入骨i
-上瘾入骨i 2021-01-28 21:17

I\'m moving a cmd line migration utility from DEV to QA and I\'m running into a strange error. Of course, things work perfectly on dev.

This is the offending line of co

相关标签:
3条回答
  • 2021-01-28 21:49

    I also faced this problem and found that it was due to the CAS permissions.

    You may be able to resolve the problem by adding the below entry in your CAS permissions

     <IPermission class="System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
    
    0 讨论(0)
  • 2021-01-28 21:54

    This is just an educated guess - I don't have time to test my theory. Does the library require check out? If so, are you checking out the file before trying to open it?

    0 讨论(0)
  • 2021-01-28 21:56

    The problem was due to StoragePoint. The account running the OpenBinary() call must have explicit access to the StoragePoint databases.

    0 讨论(0)
提交回复
热议问题