<?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: environment.UserName works for some users but not all</title><link>https://www.infopathdev.com:443/forums/thread/20882.aspx</link><pubDate>Mon, 18 Jun 2007 13:07:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20882</guid><dc:creator>jweir</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20882.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=20882</wfw:commentRss><description>&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;Patrick,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;For Full Trust to work&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li class="MsoNormal" style="margin:0in 0in 0pt;tab-stops:list .5in;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;I need to&amp;nbsp;install the form on each group member computer&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin:0in 0in 0pt;tab-stops:list .5in;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;or have digitally signed certificate made for the form&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;This would take care of the problem or&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;For Domain to work&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li class="MsoNormal" style="margin:0in 0in 0pt;tab-stops:list .5in;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;the site needs to be in Local Intranet and&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="margin:0in 0in 0pt;tab-stops:list .5in;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;the site needs to be in the trusted sites&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;The root of the share point site is in both Local Intranet and Trusted sites. Https:\\SharePointMainSite\.. or does the site that form is on need to be in trusted as well.. Example.. https:\\SharePointMainSite\MainGroup\Subgroup1\TeamGroup\MyInforPathForm/Form/allitems.aspx does this site need to be in the local intranet and trusted sites. If the form site needs to be changed I would have to find a different solution, we (myself and users) can not change these setting in IE. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&amp;nbsp;Now.. sorry.. next question if I redo the form to not to use managed code and use the scripting object to get network logon would this be a better solution to my problem&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: environment.UserName works for some users but not all</title><link>https://www.infopathdev.com:443/forums/thread/20720.aspx</link><pubDate>Thu, 14 Jun 2007 07:15:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20720</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20720.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=20720</wfw:commentRss><description>&lt;p&gt;Hi Jim,&lt;/p&gt;&lt;p&gt;Good to see you in our forum! The managed code permissions only work if the form is running in Local Intranet. If the users experiencing errors have the site in Full Trust, it won&amp;#39;t work. Check IE security. If the site is not in Local Intranet it could also be an issue. IF you are working across the internet, they will have to be joined to the domain and have the site in their local intranet. Then it will work. Granted, this is a hassle, but it&amp;#39;s one solution.&lt;/p&gt;</description></item><item><title>environment.UserName works for some users but not all</title><link>https://www.infopathdev.com:443/forums/thread/20536.aspx</link><pubDate>Fri, 08 Jun 2007 15:46:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20536</guid><dc:creator>jweir</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20536.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=20536</wfw:commentRss><description>&lt;p&gt;I think I know the problem here; just want to know if I am correct or not.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;This form is published to Share point&amp;nbsp; form library&amp;nbsp; and then&amp;nbsp; each user in our group can go and fill out the form. Simple. Now I have manage code using VS 2003 and Info path 2003 SP2. Form works fine for myself and one other user that has the form copied locally to computer, others that do not have form copied locally are having problems with form. One user does not get any information back from environment.UserName and the other receive an error message from running the form.&lt;/p&gt;&lt;p&gt;I have seen and read that manage code does not work over internet well and was hoping I could get this to work over the internet. I know I could use the scripting side to get the same thing, but my clients may not have ActiveX function in their browsers.&amp;nbsp;&lt;/p&gt;&lt;p&gt;So am I correct or not.. I hoping there is a solution for this using manage code&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>