Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / October 2007

Tip: Looking for answers? Try searching our database.

Infopath web form Code behind sharepoint object model

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rjayram - 25 Oct 2007 22:01 GMT
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.Y.M. Wong-A-Ton - 26 Oct 2007 00:59 GMT
Did you give the form template "Full trust" and signed it with a digital
certificate?
---
S.Y.M. Wong-A-Ton

> Hi,
>
[quoted text clipped - 6 lines]
> Thanks,
> Jay.
rjayram - 26 Oct 2007 01:58 GMT
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.

> Did you give the form template "Full trust" and signed it with a digital
> certificate?
[quoted text clipped - 11 lines]
> > Thanks,
> > Jay.
S.Y.M. Wong-A-Ton - 26 Oct 2007 08:01 GMT
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.
---
S.Y.M. Wong-A-Ton

> 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
[quoted text clipped - 21 lines]
> > > Thanks,
> > > Jay.
rjayram - 26 Oct 2007 22:32 GMT
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.

> 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
[quoted text clipped - 29 lines]
> > > > Thanks,
> > > > Jay.
softplay - 30 Oct 2007 15:30 GMT
Thank you! nice to know about Certificate Services and now i am using it :-)

> 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
[quoted text clipped - 29 lines]
> > > > Thanks,
> > > > Jay.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.