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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top