Re: Decryption, cookies - "Bad Data"

From: Paul Glavich [MVP ASP.NET] (glav_at_aspalliance.com-NOSPAM)
Date: 06/30/05


Date: Thu, 30 Jun 2005 21:37:36 +1000

Are you now saying that you have your app loaded on 2 servers? (ie. a web
farm). The encryoted auth ticket by default is tied to a particular machine.
The machine.config is set to autogenerate a valid key for the symetric
encryptin/decryption for each application on the system. If you are spanning
multiple servers, you need to edit the machine.config on both servers and
replace the "AutoGenerate, IsolateApp" with a static value that is the same
across the severs.

-- 
- Paul Glavich
MVP ASP.NET
http://weblogs.asp.net/pglavich
ASPInsiders member - http://www.aspinsiders.com
"Jose" <discussions@avandis.co.uk> wrote in message 
news:1119974370.388592.76980@g44g2000cwa.googlegroups.com...
> Hello all,
>
> We have just moved an application from one server to another. The site
> has a "remember me" option whereby the user is not required to enter in
> any credentials instead they are read from a cookie.
>
> We have been getting some strange errors:
>
> Error Message: "Bad Data".
> Error Stack Trace:    at
> System.Security.Cryptography.CryptoAPITransform._DecryptData(IntPtr
> hKey, Byte[] rgb, Int32 ib, Int32 cb, Boolean fDone)
>
> How is the "decryption key" produced - is it possible that it is
> related to the server in the same way that ViewState is tied to the
> particular server it came from? Please note that this is my attempt to
> explain this error.
>
> Thanks in advance,
> Jose
> 


Relevant Pages

  • Event SRV error 2012
    ... error messages and they appear on all of our servers. ... the server encountered a network ... I thought that it was a desktop and checked over all the desktops ... right direction but I can not make heads or tails out to the error message. ...
    (microsoft.public.windows.server.general)
  • Re: Event SRV error 2012
    ... error messages and they appear on all of our servers. ... the server encountered a network ... I thought that it was a desktop and checked over all the desktops ... right direction but I can not make heads or tails out to the error message. ...
    (microsoft.public.windows.server.general)
  • Re: Host Name Change and Replication
    ... to remove replication support on all three servers and then reinstall. ... So I've got a problem with Replication and name changes to my host SQL 2000 server. ... I then looked at the push subscriptions on DGP09 and TDB10 and both were not updated when I disabled publishing and I can't do anything about them client side and they no longer show up on PDB02. ... I tried to test the replication by manually starting the agents but all three refuse to start and do not give an error message explaining why. ...
    (microsoft.public.sqlserver.server)
  • Re: [SLE] SUSE 9.1, Samba 3.0.4-1.2 and Windows NT Domain
    ... > I thought I would try running LinNeighborhood to mount the shares like I ... I get the same error message. ... > WINS servers. ...
    (SuSE)
  • Re: 40961 SPNEGO & 1030 errors
    ... Please post an unedited ipconfig /all from one client and your DC/DNS servers. ... The DCs are also DNS and DHCP ... listed error messages in their event logs. ... Smith6 could be the one listed in the error message. ...
    (microsoft.public.win2000.security)