I have seen that many users want to do this, but I did not find any solution:
Briefly, I have a sharepoint form library and I want do create a discussion thread when a users submits a new form.
I use manage code for my infopath form and created a submit button.
Now I wanted to do something like this:
using Microsoft.SharePoint;
[..]
SPSite myBITEST = new SPSite("http://bitest");
[..]
But on executing the code, I get an System.Security.SecurityException.
I this is no suprise, since the classes provide to delete sites and items. So there should be some restriction.
But I can't figure out how to solve my problem, however, I think it should be feasible.
Has anybody a good suggestion?