If you have just created an ASPX document, with inline code, and you get this error from running it, all you need to do is to go to your web.config file, and in the SharePoint/SafeMode/PageParserPaths section, add an entry for your page, including the path:
<PageParserPaths> <PageParserPath VirtualPath="/YourPath/YourPage.aspx" CompilationMode="Always" AllowServerSideScript="true" /> </PageParserPaths>
All Things DotNet Discussed – Winforms/ASP.Net/SharePoint/WPF
Leave a reply
You must be logged in to post a comment.