<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Accessing Sharepoint Objects</title><link>https://www.infopathdev.com:443/forums/thread/12742.aspx</link><pubDate>Fri, 13 Jan 2006 07:00:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12742</guid><dc:creator>delu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12742.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12742</wfw:commentRss><description>I have seen that many users want to do this, but I did not find any solution:&lt;br /&gt;&lt;br /&gt;Briefly, I have a sharepoint form library and I want do create a discussion thread when a users submits a new form.&lt;br /&gt;&lt;br /&gt;I use manage code for my infopath form and created a submit button.&lt;br /&gt;Now I wanted to do something like this:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;using Microsoft.SharePoint;&lt;br /&gt;[..]&lt;br /&gt;&lt;br /&gt;SPSite myBITEST = new SPSite("http://bitest");&lt;br /&gt;[..]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;But on executing the code, I get an System.Security.SecurityException.&lt;br /&gt;I this is no suprise, since the classes provide to delete sites and items. So there should be some restriction.&lt;br /&gt;&lt;br /&gt;But I can't figure out how to solve my problem, however, I think it should be feasible.&lt;br /&gt;&lt;br /&gt;Has anybody a good suggestion?</description></item></channel></rss>