Hi all,
I have written code in InfoPath 2010 using C#.
I want to implement this form on office365 site.
I am using the following line of code.
using (SPSite mySite = new
SPSite(ServerInfo.SharePointSiteUrl.ToString()))
{
--------------
}
But facing error
while publishing it. Aslo can not able to run this code. Getting error in above
line of code.
Also tried with both the options
1] Form Option --> Full Trust (the form has access to file and setting on the computer)
2] Form Option --> Automatically determine security level (recommended)
Still it needs Administrator Approved.
Can anybody have any solution on this?
Thanks,
Sheetal