<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>Security</title><link>http://forums.asp.net/25.aspx</link><description>All about ASP.NET security (authentication, authorization, membership, roles, etc.) and the Login controls. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=24&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: assign value to profile?</title><link>http://forums.asp.net/thread/3275672.aspx</link><pubDate>Sun, 05 Jul 2009 22:45:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275672</guid><dc:creator>ronald_yoh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275672.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=3275672</wfw:commentRss><description>&lt;p&gt;hi all.. thanks for your suggestions.. but i haven&amp;#39;t really tested what you have suggested due to tight deadline on my projects.. at the moment i&amp;#39;m using the session as the temporary solution and replacement to profile.&lt;/p&gt;&lt;p&gt;i will try what you have suggested and will surely mark as answer if your suggestion is truely what i&amp;#39;m looking for.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: assign value to profile?</title><link>http://forums.asp.net/thread/3274454.aspx</link><pubDate>Sat, 04 Jul 2009 08:26:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274454</guid><dc:creator>Abdulla.AbdelHaq</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274454.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=3274454</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Check this .. same issue .&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a target="_blank" href="http://forums.asp.net/t/1337875.aspx"&gt;http://forums.asp.net/t/1337875.aspx&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Change your profile setting</title><link>http://forums.asp.net/thread/3274444.aspx</link><pubDate>Sat, 04 Jul 2009 08:11:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274444</guid><dc:creator>sukumarraju</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274444.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=3274444</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;ronald_yoh:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;profile enabled=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;ServiceSessionId&amp;quot; allowAnonymous=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/properties&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/profile&amp;gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Looking at the error implies your profile setting is looking for the data store.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Change your web.config profile setting similar to&amp;nbsp; below.&lt;/p&gt;&lt;pre class="xhtml" name="code"&gt;&amp;lt;profile defaultProvider=&amp;quot;AspNetSqlProfileProvider&amp;quot;&amp;gt;
  &amp;lt;properties&amp;gt;
     &amp;lt;add name=&amp;quot;Name&amp;quot; /&amp;gt;
     &amp;lt;add name=&amp;quot;Weight&amp;quot; type=&amp;quot;System.Int32&amp;quot; /&amp;gt;
     &amp;lt;add name=&amp;quot;BirthDate&amp;quot; type=&amp;quot;System.DateTime&amp;quot; /&amp;gt;
  &amp;lt;/properties&amp;gt;
&amp;lt;/profile&amp;gt;&lt;/pre&gt;&lt;pre class="xhtml" name="code"&gt;You may check various &amp;lt;profile&amp;gt; properties &lt;a href="http://msdn.microsoft.com/en-us/library/d8b58y5d.aspx" target="_blank"&gt;here&lt;/a&gt;.
&lt;/pre&gt;
&lt;p&gt;Let me know further Queries.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>assign value to profile?</title><link>http://forums.asp.net/thread/3274316.aspx</link><pubDate>Sat, 04 Jul 2009 06:14:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274316</guid><dc:creator>ronald_yoh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274316.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=3274316</wfw:commentRss><description>&lt;p&gt;hi there,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;i&amp;#39;m not sure if i&amp;#39;m doing it the right way or not.. but i have the following profile in web.config:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;profile enabled=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;ServiceSessionId&amp;quot; allowAnonymous=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/properties&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/profile&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;and i try to assign a value in one of the button click event as follow:&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;protected void Button2_Click(object sender, EventArgs e)
        {
            
            HttpContext.Current.Profile[&amp;quot;ServiceSessionId&amp;quot;] = &amp;quot;Hello World&amp;quot;;

        }&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; but i&amp;#39;m getting an error : &amp;quot;Cannot connect to SQL database&amp;quot; at line &amp;quot;HttpContext.Current.Profile[&amp;quot;ServiceSessionId&amp;quot;] = &amp;quot;Hello World&amp;quot;;&amp;quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;can anyone help?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>