Stuckish,
..NET has a request validator built into it that stops a post with illegal
characters in it. Does the encrypted string contain any characters that
would be considered illegal by .NET?
To turn off request validation for a page place validateRequest=false in the
page directive like this:
<%@ Page Language="vb" validateRequest=false AutoEventWireup="false"
Codebehind="default.aspx.vb" Inherits="AboutFortunate._default1"
smartNavigation="True"%>
I'm not positive if this will solve your problem, but it's something to try.
If it does work be careful though. You should really validate the
information being sent to your form yourself if you have removed the built
in validation.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
<st******@gmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
Im trying to encrypt a string in asp.net. Post the encrypted string
thru a form. Recive the encrypted string on a classic asp page and
decrypt it there.
I get a error saying "Padding is invalid and cannot be removed". It
works perfect on my localhost (running XP SP2) but i get that error on
my Windows 2000 server.
Anyone have any idea why this happens? I guess something strange is
happen when i post the form. But i have checked the strings that is
sent and they look the same. But mabye it can have something to do with
the page in some way? Well .. give me some ideas :)
Br, Ola