Base solution for your next web application

Activities of "psyvision"

Hi,

I was previously using Abp 0.9.7 in an MPA scenario using MVC's model validation (ModelState.IsValid etc) which was working okay with displaying errors to the end user. We are using full page post-backs rather than AJAX.

I have upgraded the application to 0.10 and notice that the validation mechanism has changed. Unless I add [DisableValidation] to a controller action then the AbpValidationFilter will throw an exception when called with an invalid model and my end user sees the standard ASP.NET yellow screen rather than the form with the validation errors shown.

This seems related to this change: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1176">https://github.com/aspnetboilerplate/as ... ssues/1176</a>

Is there a suitable way to handle this other than showing a generic error screen? I don't want to disable the automatic validation at the service (.Application) level.

Thanks

Showing 1 to 1 of 1 entries