<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : SessionBundle Encryption Problems</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : SessionBundle Encryption Problems</description>
  <pubDate>Tue, 21 Apr 2026 15:49:26 -700</pubDate>
  <lastBuildDate>Wed, 21 Jul 2010 17:44:50 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1947</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>SessionBundle Encryption Problems : This is fixed in DevForce 6.0.4...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1947&amp;PID=7736#7736</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1947<br /><strong>Posted:</strong> 21-Jul-2010 at 5:44pm<br /><br /><P>This is fixed in DevForce 6.0.4 (available&nbsp;tomorrow).&nbsp; It will use the same encryption key across restarts (which will be seeded by the machine identity) and will also allow you to set a custom key, which you should do anyway for a formal deployment.</P>]]>
   </description>
   <pubDate>Wed, 21 Jul 2010 17:44:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1947&amp;PID=7736#7736</guid>
  </item> 
  <item>
   <title>SessionBundle Encryption Problems : Your analysis is correct. We made...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1947&amp;PID=7554#7554</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1947<br /><strong>Posted:</strong> 07-Jul-2010 at 6:15pm<br /><br /><DIV>Your analysis is correct.&nbsp; We made a change recently to randomize the encryption key (as opposed to using a default key) so that we have strong encryption turned on by default.&nbsp; For formal deployments you should be generating you own key and setting it on the server, but this is currently not allowed except in the Data Center Server.&nbsp; We will have a solution for this soon.</DIV><DIV>&nbsp;</DIV><DIV></DIV>]]>
   </description>
   <pubDate>Wed, 07 Jul 2010 18:15:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1947&amp;PID=7554#7554</guid>
  </item> 
  <item>
   <title>SessionBundle Encryption Problems : I am experiencing the same issue,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1947&amp;PID=7552#7552</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=838" rel="nofollow">rhaney</a><br /><strong>Subject:</strong> 1947<br /><strong>Posted:</strong> 07-Jul-2010 at 5:11pm<br /><br />I am experiencing the same issue, and have also tried providing a custom key.<DIV>&nbsp;</DIV><DIV>Any news on a fix?</DIV>]]>
   </description>
   <pubDate>Wed, 07 Jul 2010 17:11:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1947&amp;PID=7552#7552</guid>
  </item> 
  <item>
   <title>SessionBundle Encryption Problems : We&amp;#039;ve started running into...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1947&amp;PID=7533#7533</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=613" rel="nofollow">stephenmcd1</a><br /><strong>Subject:</strong> 1947<br /><strong>Posted:</strong> 06-Jul-2010 at 6:02pm<br /><br />We've started running into some CryptographicExceptions while running our app. The problem is very easy to reproduce in our code and happens when:<br><br>1. You log onto an EntityManager<br>2. Then, the web server restarts<br>3. Then, you try to access any data with the EntityManager from step 1.<br>4. The data access will fail with the exception at the end of this post.<br><br>I was thinking maybe you have a temporary encryption key that is stored in memory and so if the server restarts, a new encryption key gets made and so now there ends up being a mismatch of keys.&nbsp; But from what I've read in the help docs, there is just a hardcoded encryption key in the DevForce code that is used.&nbsp; I've also tried using a specific encryption key using the ideablade.configuration &gt; objectServer &gt; serverSettings &gt; sessionEncryptionKey setting in the web.config of my server thinking that might help but that didn't seem to work (in fact, even if I looked in the debugger at a server-side EntityManager's _entityServerProxy.SessionManager.ServerSettings.SessionEncryptionKey property it always seems to be empty.)<br><br>I've run out of things to try.&nbsp; Is there something I'm missing?&nbsp; Here is the full exception:<br><br><blockquote>Caught exception: System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed. at System.Security.Cryptography.CapiSymmetricAlgorithm.DepadBlock(Byte&#091;&#093; block, Int32 offset, Int32 count) at System.Security.Cryptography.CapiSymmetricAlgorithm.TransformFinalBlock(Byte&#091;&#093; inputBuffer, Int32 inputOffset, Int32 inputCount) at System.Security.Cryptography.CryptoStream.FlushFinalBlock() at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing) at System.IO.Stream.Close() at System.IO.Stream.Dispose() at IdeaBlade.Core.CryptoFns.AesDecrypt(String encryptedValue, Byte&#091;&#093; key, Boolean fipsCompliant) at IdeaBlade.EntityModel.SessionBundle.Decrypt(String encryptionKey) at IdeaBlade.EntityModel.Server.SessionManager.GetPrincipalFromEncryptedCredential(SessionBundle sessionBundle) at IdeaBlade.EntityModel.Server.SessionManager.GetPrincipal(SessionBundle sessionBundle) at IdeaBlade.EntityModel.Server.EntityServer.Fetch(SessionBundle sessionBundle, IEntityQuerySurrogate surrogate) at SyncInvokeFetch(Object , Object&#091;&#093; , Object&#091;&#093; ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object&#091;&#093; inputs, Object&#091;&#093;&amp; outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)<br></blockquote><br> ]]>
   </description>
   <pubDate>Tue, 06 Jul 2010 18:02:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1947&amp;PID=7533#7533</guid>
  </item> 
 </channel>
</rss>