locked
Coding in masterpage [Continued] RRS feed

  • Question

  • Hi,

    I have managed to fix my previous problem. In summary, this is what I have done:

    I have added this into my web.config

    <PageParserPaths>
              <PageParserPath VirtualPath="/_catalogs/masterpage/home.master" CompilationMode="Always" AllowServerSideScript="true" /> 
          </PageParserPaths>

    I can run my page now with no problem, but when I tries to add <% %> or <%! %> tag into the page: it runs this error

     Error
    An unexpected error has occurred.
    
    Troubleshoot issues with Microsoft SharePoint Foundation.
    
    Correlation ID: affb9253-6e69-47a9-b94f-3657051aba7e
    
    Date and Time: 7/3/2015 2:31:37 PM 

    Anything I can do to fix this? 

    Also, it works in home.aspx page. However, Response.Write("Something here"); displays nothing at all. Any tips?

    • Edited by Kai Arthur Friday, July 3, 2015 7:42 AM
    Friday, July 3, 2015 6:35 AM

Answers

  • Hi

    check the LOGS file and provide more details for that Correlation ID


    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

    Monday, July 6, 2015 6:37 AM