Domanda

If this is possible, please could someone let me know how I can either set a breakpoint on request validation in .NET or view errors thrown by it?

The request validation is happening during an AJAX request from one of my views but I've not been able to view the errors that are being passed back (It's happening, as expected when I attempt to post HTML and javascript) But I like being able to dig a bit and view the messages that are being produced.

Thanks

È stato utile?

Soluzione

Debugging request validation should be possible if you download the MVC source code from here, and then enable debugging on it in Visual Studio. Information on how to do that can be found here.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top