Display exception error messages

NEW TO SITEFINITY?

While working with MVC widgets, you might encounter exceptions or errors. In such cases, Sitefinity CMS checks whether an error message with relevant information needs to be displayed. This depends on how you have configured your project in the web.config file, specifically in the <customErrors> section. 

Following is a list with error scenarios and the respective error configurations:

<!-- An error message is displayed for all failing controllers: -->
<system.web>
<customErrors mode="Off"></customErrors>
</system.web>
<!-- No error message is displayed in case an exception occurs: -->
<system.web>
<customErrors mode="On"></customErrors>
</system.web>
<!-- No error message is displayed to remote clients. An error message is displayed only to local clients: -->
<system.web>
<customErrors mode="RemoteOnly"></customErrors>
</system.web>

Additional resources

External links

Want to learn more?

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?