<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issue with Encryption Keys in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Issue-with-Encryption-Keys/m-p/2127897#M21280</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="164362" data-lia-user-login="Icey" class="lia-mention lia-mention-user"&gt;Icey&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your response. I believe I did it correctly. This issue was present when I try to connect to my test database from test environment server (Machine 3).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fortunately, next day, when I tried to connect to the backup of my production database it worked without any problem. So we did a migration last Sunday and everything seems to be OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this case is not so important to me now. However, it would be great to know how to solve this issue mentioned in my first post, because I believe that my both scenarios were the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;</description>
    <pubDate>Mon, 11 Oct 2021 18:53:40 GMT</pubDate>
    <dc:creator>Marcin_PL</dc:creator>
    <dc:date>2021-10-11T18:53:40Z</dc:date>
    <item>
      <title>Issue with Encryption Keys</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Issue-with-Encryption-Keys/m-p/2118676#M21221</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am in the middle of separating Power BI Report Server portal to another machine (lets call id Machine2) from current server where it is running now (lets call it Machine1). I want to use the same SQL database from Machine1 because of not compete'ing for resources (mainly CPU) in this scenario.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue with decrypting restored encryption keys and I can't overcome it. I've connected to my database, restore the encryption key (backed up previously on Machine1) and the portal is working fine. I can see all my folders/reports. The problem starts when I try to open Manage-&amp;gt;Data Sources because it looks that sensitive information can't be encrypted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an error:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and when clicking OK - the portal tries to redirect me to the wrong report link with "/browse/" instead of "/powerbi/" inside.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the RS Portal log file I get like below. Can someone help me with this? What could be the reason? My new portal is upgraded to Sep21 version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2021-10-06 11:07:51.1782|ERROR|7|Decryption failed, Current user: (&lt;EM&gt;edited -my service account user&lt;/EM&gt;)| RequestID = s_abf2472f-056a-4375-811e-41a787c25913 System.Security.Cryptography.CryptographicException: Bad Data.&lt;/P&gt;&lt;P&gt;at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)&lt;BR /&gt;at System.Security.Cryptography.Utils._DecryptData(SafeKeyHandle hKey, Byte[] data, Int32 ib, Int32 cb, Byte[]&amp;amp; outputBuffer, Int32 outputOffset, PaddingMode PaddingMode, Boolean fDone)&lt;BR /&gt;at System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)&lt;BR /&gt;at System.Security.Cryptography.CryptoStream.FlushFinalBlock()&lt;BR /&gt;at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing)&lt;BR /&gt;at System.IO.Stream.Close()&lt;BR /&gt;at Microsoft.BIServer.HostingEnvironment.Cryptography.SymmetricKeyCrypto.DecryptInternal(Byte[] data)&lt;BR /&gt;2021-10-06 11:07:51.2022|ERROR|7|OData exception occurred: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&amp;gt; Microsoft.BIServer.HostingEnvironment.Cryptography.Exceptions.CryptoException: Decryption Failure ---&amp;gt; System.Security.Cryptography.CryptographicException: Bad Data.&lt;/P&gt;&lt;P&gt;at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)&lt;BR /&gt;at System.Security.Cryptography.Utils._DecryptData(SafeKeyHandle hKey, Byte[] data, Int32 ib, Int32 cb, Byte[]&amp;amp; outputBuffer, Int32 outputOffset, PaddingMode PaddingMode, Boolean fDone)&lt;BR /&gt;at System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)&lt;BR /&gt;at System.Security.Cryptography.CryptoStream.FlushFinalBlock()&lt;BR /&gt;at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing)&lt;BR /&gt;at System.IO.Stream.Close()&lt;BR /&gt;at Microsoft.BIServer.HostingEnvironment.Cryptography.SymmetricKeyCrypto.DecryptInternal(Byte[] data)&lt;BR /&gt;--- End of inner exception stack trace ---&lt;BR /&gt;at Microsoft.BIServer.HostingEnvironment.Cryptography.SymmetricKeyCrypto.DecryptInternal(Byte[] data)&lt;BR /&gt;at Microsoft.BIServer.HostingEnvironment.Cryptography.Crypto.Decrypt(Byte[] protectedData, String tag)&lt;BR /&gt;at Microsoft.BIServer.HostingEnvironment.Cryptography.Crypto.DecryptToString(Byte[] protectedData)&lt;BR /&gt;at Microsoft.ReportingServices.Portal.Services.ODataExtensions.DataModelDataSourceExtensions.ToDataSourceWithoutSecret(DataModelDataSourceEntity dataSourceEntity)&lt;BR /&gt;at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()&lt;BR /&gt;at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)&lt;BR /&gt;at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)&lt;BR /&gt;at Model.PowerBIReportRepository.LoadDataSources()&lt;BR /&gt;at Model.PowerBIReport.get_DataSources()&lt;BR /&gt;at lambda_method(Closure , PowerBIReportRepository )&lt;BR /&gt;--- End of inner exception stack trace ---&lt;BR /&gt;at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)&lt;BR /&gt;at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)&lt;BR /&gt;at System.Delegate.DynamicInvokeImpl(Object[] args)&lt;BR /&gt;at Microsoft.AspNet.OData.Query.Expressions.SelectExpandBinder.Bind(Object entity, SelectExpandQueryOption selectExpandQuery)&lt;BR /&gt;at Microsoft.AspNet.OData.Query.ODataQueryOptions.ApplySelectExpand[T](T entity, ODataQuerySettings querySettings)&lt;BR /&gt;at Microsoft.AspNet.OData.Query.ODataQueryOptions.ApplyTo(Object entity, ODataQuerySettings querySettings)&lt;BR /&gt;at Microsoft.AspNet.OData.EnableQueryAttribute.ExecuteQuery(Object responseValue, IQueryable singleResultCollection, IWebApiActionDescriptor actionDescriptor, Func`2 modelFunction, IWebApiRequestMessage request, Func`2 createQueryOptionFunction)&lt;BR /&gt;at Microsoft.AspNet.OData.EnableQueryAttribute.OnActionExecuted(Object responseValue, IQueryable singleResultCollection, IWebApiActionDescriptor actionDescriptor, IWebApiRequestMessage request, Func`2 modelFunction, Func`2 createQueryOptionFunction, Action`1 createResponseAction, Action`3 createErrorAction)&lt;BR /&gt;at Microsoft.AspNet.OData.EnableQueryAttribute.OnActionExecuted(HttpActionExecutedContext actionExecutedContext)&lt;BR /&gt;at System.Web.Http.Filters.ActionFilterAttribute.OnActionExecutedAsync(HttpActionExecutedContext actionExecutedContext, CancellationToken cancellationToken)&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at System.Web.Http.Filters.ActionFilterAttribute.&amp;lt;CallOnActionExecutedAsync&amp;gt;d__6.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at System.Web.Http.Filters.ActionFilterAttribute.&amp;lt;ExecuteActionFilterAsyncCore&amp;gt;d__5.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at System.Web.Http.Controllers.ActionFilterResult.&amp;lt;ExecuteAsync&amp;gt;d__5.MoveNext()&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt;at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&lt;BR /&gt;at System.Web.Http.Controllers.ExceptionFilterResult.&amp;lt;ExecuteAsync&amp;gt;d__6.MoveNext().| RequestID = s_abf2472f-056a-4375-811e-41a787c25913&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 09:51:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Issue-with-Encryption-Keys/m-p/2118676#M21221</guid>
      <dc:creator>Marcin_PL</dc:creator>
      <dc:date>2021-10-06T09:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Encryption Keys</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Issue-with-Encryption-Keys/m-p/2126154#M21266</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="308040" data-lia-user-login="Marcin_PL" class="lia-mention lia-mention-user"&gt;Marcin_PL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am in the middle of separating Power BI Report Server portal to another machine (lets call id Machine2) from current server where it is running now (lets call it Machine1).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How do you realize this requirement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I try to reproduce it via:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Change the Report Server database on Machine2 to the same report server database on Machine1.&lt;/P&gt;
&lt;P&gt;2. Change the&amp;nbsp;Report Server database credential.&lt;/P&gt;
&lt;P&gt;3. Restore the Encryption Keys with the backup file from&amp;nbsp;Machine1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aret there any differences between our steps?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 05:18:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Issue-with-Encryption-Keys/m-p/2126154#M21266</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2021-10-11T05:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Encryption Keys</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Issue-with-Encryption-Keys/m-p/2127897#M21280</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="164362" data-lia-user-login="Icey" class="lia-mention lia-mention-user"&gt;Icey&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your response. I believe I did it correctly. This issue was present when I try to connect to my test database from test environment server (Machine 3).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fortunately, next day, when I tried to connect to the backup of my production database it worked without any problem. So we did a migration last Sunday and everything seems to be OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this case is not so important to me now. However, it would be great to know how to solve this issue mentioned in my first post, because I believe that my both scenarios were the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 18:53:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Issue-with-Encryption-Keys/m-p/2127897#M21280</guid>
      <dc:creator>Marcin_PL</dc:creator>
      <dc:date>2021-10-11T18:53:40Z</dc:date>
    </item>
  </channel>
</rss>

