ASP.NET MVC: does AntiForgeryToken work in mono?

Edit: Possible solution for this issue is probably using the newest mono from master branch, because this problem can be replicated on older versions of mono (for example tarball from April 22 is causing the same exception) Edit 2: What is probably really needed to get this working is setting up valid machineKey element in web. Config file. Keys can be generated for example with this utility.

Edit: Possible solution for this issue is probably using the newest mono from master branch, because this problem can be replicated on older versions of mono (for example tarball from April 22 is causing the same exception). Edit 2: What is probably really needed to get this working is setting up valid machineKey element in web. Config file.

Keys can be generated for example with this utility.

Tomi: Yes, the problem is in the partial view. Actually if I remove the Html. AntiForgeryToken() from the view, the controller works fine throwing an Exception (Required antiforguery token was not found...).

– Daniel Peñalba Dec 3 '10 at 14:59 Hmm, this looks odd. Can you past the generated html source to see if the anti forgery token is present in the hidden field under your form? – yojimbo87 Dec 3 '10 at 17:51 @Tommy: Any idea?

What version of Mono are you trying? – Daniel Peñalba Dec 3 '10 at 21:18 1 @Daniel: I have mono 2.9 (from github master downloaded on Dec 3 '10). XSP and mod_mono are also from the same date master branch.

Can you try to run your webapp through apache with mod_mono? – yojimbo87 Dec 4 '10 at 10:31 Did you get this working in XSP? I have just come up against this error message and would like to know how this was resolved?

For reference I am using OpenSUSE 11.3, Mono 2.8.1, ASP. NET 4, ASP. NET MVC 2.0 and using Mono Develop 2.4.2 – DotNetHacker Dec 3 '10 at 0:25.

String inputString) 0x00006 in /home/danipen/Downloads/mono-2.8/mcs/class/System. Load () 0x00007 in /home/danipen/Downloads/mono-2.8/mcs/class/System. LoadPageStateFromPersistenceMedium () 0x0000f in /home/danipen/Downloads/mono-2.8/mcs/class/System.

LoadPageViewState () 0x00000 in /home/danipen/Downloads/mono-2.8/mcs/class/System. RestorePageState () 0x00051 in /home/danipen/Downloads/mono-2.8/mcs/class/System. InternalProcessRequest () 0x001b9 in /home/danipen/Downloads/mono-2.8/mcs/class/System.

HttpContext context) 0x0005b in /home/danipen/Downloads/mono-2.8/mcs/class/System.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions