Infopath web form Code behind sharepoint object model

R

rjayram

Hi,

I have an infopath form with C# code behind. I have some code that uses
the Sharepoint object model. When I publish the form and open the same in a
browser, it gives me Security errors like ASPNETHostingPermission denied
etc.. I have the Web.config level at 'Full'. Can someone please suggest a
solution.

Thanks,
Jay.
 
S

S.Y.M. Wong-A-Ton

Did you give the form template "Full trust" and signed it with a digital
certificate?
 
R

rjayram

Is that the only way I can use Sharepoint Object Model code? Is there no way
I can use sharepoint Object Model code without giving the Form Template Full
Trust and sign it with a digital code certificate? I dont know if I can get a
digital certificate. Is there a workaround?

My current trust level for the Form Template is set to domain.

Thanks,
Jay.
 
S

S.Y.M. Wong-A-Ton

I don't know of any other ways or workarounds, sorry. But you can try posting
your question in one of the SharePoint groups; there might be people there
who might know of other ways. BTW, you do not need a certificate that has
been issued by a third-party. You could use Certificate Services (a component
of Windows Server 2003) to issue your own certificates.
 
R

rjayram

Hi,

Thank you for your response. Is there a way I can create a Custom
policy file for this Infopath form that can get it the required permissions?

Thanks,
Jayram.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top