<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Service Reference System.Net.WebPermission</title><link>https://www.infopathdev.com:443/forums/thread/68058.aspx</link><pubDate>Tue, 05 Jul 2011 12:53:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68058</guid><dc:creator>michaelr524</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68058.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68058</wfw:commentRss><description>Hey Jimmy!

You are the best!

Thanks,
Michael</description></item><item><title>Re: Service Reference System.Net.WebPermission</title><link>https://www.infopathdev.com:443/forums/thread/68056.aspx</link><pubDate>Tue, 05 Jul 2011 12:18:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68056</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68056.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68056</wfw:commentRss><description>&lt;p&gt;One thing you can do is set the security to Full Trust while you are working on the form, and change it back to Domain Trust right before you publish it.&amp;nbsp; Would that work?&lt;/p&gt;</description></item><item><title>Service Reference System.Net.WebPermission</title><link>https://www.infopathdev.com:443/forums/thread/68053.aspx</link><pubDate>Tue, 05 Jul 2011 10:27:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68053</guid><dc:creator>michaelr524</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68053.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68053</wfw:commentRss><description>Hi,

I&amp;#39;ve created a C# Class Library with common classes I&amp;#39;m going to use in all my forms.
I&amp;#39;ve signed the assembly and added [assembly: AllowPartiallyTrustedCallers] to AssemblyInfo.cs.
I&amp;#39;ve created a Web Reference to the List sharepoint service in order to call GetListItems since I didn&amp;#39;t manage to call it using InfoPath&amp;#39;s DataConnection.
Then I&amp;#39;ve added a reference to my assembly from a Form Template project from VSTA.


After I publish this form to SharePoint and then open a new form from sharepoint using infopath client the web service call works fine.
But if I try to preview the form locally by running it from VSTA I get a security exception telling me it&amp;#39;s can&amp;#39;t get System.Net.WebPermission.
Now, I guess it works from the published form because it accesses the same sharepoint server as the one where the form is stored.

My question is whether it&amp;#39;s possible to also make it work when I preview it locally? It would make my development cycle much shorter (don&amp;#39;t have to publish the form each time).

Thanks,
Michael</description></item></channel></rss>