+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / You can only have one control on a page.

You can only have one <head runat="server"> control on a page.

2 posts, 0 answered
  1. mark gamache
    mark gamache avatar
    34 posts
    Registered:
    23 Jun 2005
    20 Dec 2015
    Link to this post
    I was adding new MVC controllers to my project (I already have a few working fine) and now my project won't display any public page using  an MVC based layout.  Regular page templates work fine, but any use of MVC templates including the built-in ones results in the "You can only have one <head runat="server"> control on a page." error message.  Of course I deleted any new code from after the error message started appearing, but the error is not going away.  Of course I can't find any <head runat="server" code in my project at all.   
  2. mark gamache
    mark gamache avatar
    34 posts
    Registered:
    23 Jun 2005
    20 Dec 2015
    Link to this post
    Okay I figured out what the issues was (sort of). My scaffolding added files under the MVC/Views folder. Removing these fixed the issue. I am not sure why as I was not using any of those, but SF didn't like them being there 
2 posts, 0 answered