---
title: "Discussion on \"Sitecore MVC: StackOverflowException when returning views instead of partial views\" | Hashnode"
description: "Discussion on \"Sitecore MVC: StackOverflowException when returning views instead of partial views\". If you end up getting a StackOverflowException in one of your controllers when using MVC with Sitecore it might be because you are returning View() instead of PartialView().\nIf you want to return View() in your controller then you either need to set ..."
url: "https://hashnode.com/posts/sitecore-mvc-stackoverflowexception-when-returning-view/628e2a3743220290a7eea9b4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Sitecore MVC: StackOverflowException when returning views instead of partial views](https://blog.krusen.dk/sitecore-mvc-stackoverflowexception-when-returning-view?utm_source=hashnode&utm_medium=feed)

If you end up getting a StackOverflowException in one of your controllers when using MVC with Sitecore it might be because you are returning View() instead of PartialView(). If you want to return View() in your controller then you either need to set ...

May 31, 2017 · 1 min read · blog.krusen.dk  
Read the article

## Written by

[Søren Kruse](https://hashnode.com/@Krusen)

@Krusen · Odense, Denmark

  
[View profile](https://hashnode.com/@Krusen)

Tech Lead @ IMPACT Commerce

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
