Tuesday, March 11, 2008

Error Creating Control - Formdigest1. Failure decoding embedded permission set object

When you try to host an asp site in different apps server to query the sharepoint engine 2003, you may recieve the error

"Error Creating Control - Formdigest1. Failure decoding embedded permission set object"

while using the Formdigest control.

Formdigest controls is to be used in the pages of web application where in you query and update the sharepoint data via object ibrary. Formdigest validates the security of the page while submitting a request.

Resolution
To make it work, the web apps should be deployed in the same site, i mean in the same context.

-::-

How to enable inline coding in MOSS 2007 or WSS 3.0 Custome aspx pages ?

By default, the inline code would throw error in custom defined aspx pages in MOSS / WSS 3.0. To make it work, add the following lines of code in the web.config.


<PageParserPaths>
<PageParserPath VirtualPath="/<>/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />
</PageParserPaths>


The "PageParserPaths" tags would be already existing in web.config. All you need to do is to add the code in between to specify your folders to execute the C# script.

- :: -