MVC Controller Action Gets Called Multiple Times When Layout Is Specified

I figured out the problem. There was this line in the code:

<img alt="TestMVCProject Logo" src="#" width="350" height="150" id="TestMVCProjectLogo" />

The src was going back to the same page. Once I replace it with a "" it works fine now.


I also faced same problem. The Action was rendering twice. The only problem was with

<img id="blah" src="#" alt="your image" /> 

Dont know for what reason src attribute of image was causing to perform rendering twice on page.

I just changed it to ""`

<img id="blah" src="" alt="your image" />

and it is working fine now.