<?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>Re: Secuity problem InfoPath calling Web Service</title><link>https://www.infopathdev.com:443/forums/thread/15085.aspx</link><pubDate>Sun, 11 Feb 2007 15:44:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15085</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15085.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15085</wfw:commentRss><description>Good Point Patrick.</description></item><item><title>Re: Secuity problem InfoPath calling Web Service</title><link>https://www.infopathdev.com:443/forums/thread/15084.aspx</link><pubDate>Fri, 09 Feb 2007 23:18:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15084</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15084.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15084</wfw:commentRss><description>Hey Jerome,&lt;br /&gt;Sending out an MSI to force full trust is not a best practice. There are numerous reasons why, but the main is that if everyone did that it would be akin to the DLL HELL we had back in the old days. Not to mention the huge security hole. &lt;br /&gt;&lt;br /&gt;Rolf, are you calling the Web service from code? Why not use the default InfoPath data objects to do this? They don't require full trust. &lt;br /&gt;&lt;br /&gt;Cheers!</description></item><item><title>Re: Secuity problem InfoPath calling Web Service</title><link>https://www.infopathdev.com:443/forums/thread/15083.aspx</link><pubDate>Fri, 09 Feb 2007 15:39:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15083</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15083.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15083</wfw:commentRss><description>Your welcome. Just keep in mind you propably have to change this setting later on every users machine BUT...&lt;br /&gt;&lt;br /&gt;Here is a little help:&lt;br /&gt;&lt;br /&gt;open again the .NET Framework 2.0 Configuration&lt;br /&gt;Click once on My Computer. In the right panel click on Create Deploymnet Package. Select a location to where you want to save the Windows Installer Package and name it FullTrustConfigurator for example. There you go, deploy this msi together with your infopath solution. Each user has to run (takes a second) this package once on his machine and you are out of any maintanance (which is always good :) )&lt;br /&gt;&lt;br /&gt;Have a nice weekend.&lt;br /&gt;</description></item><item><title>Re: Secuity problem InfoPath calling Web Service</title><link>https://www.infopathdev.com:443/forums/thread/15082.aspx</link><pubDate>Fri, 09 Feb 2007 15:08:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15082</guid><dc:creator>snufse</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15082.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15082</wfw:commentRss><description>Fantastic, it worked, you saved my day ...... Vielen Dank .......</description></item><item><title>Re: Secuity problem InfoPath calling Web Service</title><link>https://www.infopathdev.com:443/forums/thread/15081.aspx</link><pubDate>Fri, 09 Feb 2007 14:44:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15081</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15081.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15081</wfw:commentRss><description>Not to sure but try the following:&lt;br /&gt;&lt;br /&gt;Got to Start -&amp;gt; Administartive Tool -&amp;gt; Microsoft .Net Framework (in your case i guess 2.0) Configuration wizard.&lt;br /&gt;&lt;br /&gt;In the configuration wizard expand Runtime Security Service -&amp;gt; Machine -&amp;gt; Code Gourps and then select All_Code. Then click the link on the right side Configure Code Access Security. Switch to the permission tab and select from the dorp down list Full Trust instead of Nothing.&lt;br /&gt;&lt;br /&gt;It could also be that you have to set your InfoPath form to full trust und Tools -&amp;gt; Form options -&amp;gt; security.</description></item><item><title>Secuity problem InfoPath calling Web Service</title><link>https://www.infopathdev.com:443/forums/thread/13052.aspx</link><pubDate>Fri, 09 Feb 2007 13:39:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13052</guid><dc:creator>snufse</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13052.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13052</wfw:commentRss><description>When calling a web service I get security error:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;SecurityException was unhandled by user code. &lt;br /&gt;&lt;br /&gt;Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Here is the code:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Public Sub identificationNumber_Changed(ByVal sender As Object, ByVal e As XmlEventArgs)&lt;br /&gt;            ' Write your code here to change the main data source.&lt;br /&gt;&lt;br /&gt;            Dim myNav As XPathNavigator = Me.MainDataSource.CreateNavigator&lt;br /&gt;            Dim MyString As String&lt;br /&gt;&lt;br /&gt;            MyString = myNav.SelectSingleNode("//my:identificationNumber", Me.NamespaceManager).Value.ToString&lt;br /&gt;&lt;br /&gt;            If MyString &amp;gt; "0" Then&lt;br /&gt;                Dim MyInteger As Integer&lt;br /&gt;                MyInteger = MyString&lt;br /&gt;                Dim MyWebService As New WebServiceTest1.Service&lt;br /&gt;                MyString = MyWebService.GetEmployeeName(MyInteger)&lt;br /&gt;                myNav.SelectSingleNode("//my:name", Me.NamespaceManager). _&lt;br /&gt;                      SetValue(MyString)&lt;br /&gt;            End If&lt;br /&gt;&lt;br /&gt;        End Sub&lt;/b&gt;</description></item></channel></rss>