<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Problem in maintaining session in web services and Infopath</title><link>https://www.infopathdev.com:443/forums/thread/33910.aspx</link><pubDate>Wed, 05 Nov 2008 16:51:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33910</guid><dc:creator>guptasourav</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33910.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=33910</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I got it this is because of WSS 3.0. My virtual directory which calls the web service is under &lt;b&gt;SharePoint - 80&lt;/b&gt;. Therefore it overwrites the setting in Web service project. When I try to create a new virtual directory under &lt;b&gt;Default Web Site&lt;/b&gt; it works fine.&lt;/p&gt;&lt;p&gt;Do anyone know how can I configure WSS 3.0&amp;nbsp; &lt;b&gt;SharePoint - 80 &lt;/b&gt;to enable sessions. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Problem in maintaining session in web services and Infopath</title><link>https://www.infopathdev.com:443/forums/thread/33902.aspx</link><pubDate>Wed, 05 Nov 2008 14:33:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33902</guid><dc:creator>guptasourav</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33902.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=33902</wfw:commentRss><description>I am having an issue while maintaining Sessions in Web Services and Infopath.&lt;br /&gt;&lt;br /&gt;This is a test web method to set session values&lt;br /&gt;&lt;br /&gt;[WebMethod(EnableSession = true)]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void Setvalue()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session[&amp;quot;groupID&amp;quot;] = 123456;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;[WebMethod(EnableSession = true)]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Int64 Getvalue()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return Convert.ToInt64(Session[&amp;quot;groupID&amp;quot;]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;I am using a Web Service Application project to run this. It works fine when I run the application from .Net IDE. But when I try to browse it from ITENMGR or call the same web Method from Infopath it gives me an error of &amp;quot;Object ref not set to an instance of an object&amp;quot;. I even tried to publish the web application but it does not work for me.&lt;br /&gt;I tried to investigate this further and found that it the breakpoint does not stops at Session_Start and Application_Start in Global.asax file while browsing the service from INETMGR meaning the session object is not initialized. On the other hand when I run the application from .NET IDE, breakpoint hits the Session_Start function in Global.asax.&lt;br /&gt;&lt;br /&gt;I know this is wierd but please guide me if I am doing some thing wrong.&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>