<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The Microsoft ASP.Net Profile</title>
	<atom:link href="http://lostechies.com/derekgreer/2006/01/08/microsoft-aspnet-profile/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/derekgreer/2006/01/08/microsoft-aspnet-profile/</link>
	<description>pursuing well-crafted software</description>
	<lastBuildDate>Fri, 24 May 2013 07:52:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Derek Greer</title>
		<link>http://lostechies.com/derekgreer/2006/01/08/microsoft-aspnet-profile/#comment-186</link>
		<dc:creator>Derek Greer</dc:creator>
		<pubDate>Mon, 26 Mar 2007 07:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.aspiringcraftsman.com/2006/01/the-microsoft-asp-net-profile/#comment-186</guid>
		<description>I can&#039;t give you specifics without looking at your code, but the exception indicates you are attempting to access a reference to an object which hasn&#039;t been instantiated.  Your error is occurring at line 322 in SQLStoredProcedureProfileProvider.vb, so you should probably start there.My recommendation would be for you to break this learning exercise into two parts: the data access logic &amp; the profile provider.A great way to approach this task would be to first write a unit test to drive the Provider you are developing.  This would allow you to develop and test the data access component of your code in isolation from the rest of your application.  If you have access to VSTS, it has built in unit testing capabilities.  If not, go get the latest version of NUnit.  Learning to write unit tests for your code will be an invaluable tool moving forward.Barring the use of either of these two, you might want to simply write a little winform or console driver to instantiate your Provider directly so you can bypass any Provider Model configuration concerns and other concerns of your Web application.  Once you get a simple method accessing your stored procedure and returning the data you want, you can then begin wiring up the rest of the provider model stuff and be relatively confident any problems you encounter along the way aren&#039;t related to your data access code.Good luck!</description>
		<content:encoded><![CDATA[<p>I can&#8217;t give you specifics without looking at your code, but the exception indicates you are attempting to access a reference to an object which hasn&#8217;t been instantiated.  Your error is occurring at line 322 in SQLStoredProcedureProfileProvider.vb, so you should probably start there.My recommendation would be for you to break this learning exercise into two parts: the data access logic &amp; the profile provider.A great way to approach this task would be to first write a unit test to drive the Provider you are developing.  This would allow you to develop and test the data access component of your code in isolation from the rest of your application.  If you have access to VSTS, it has built in unit testing capabilities.  If not, go get the latest version of NUnit.  Learning to write unit tests for your code will be an invaluable tool moving forward.Barring the use of either of these two, you might want to simply write a little winform or console driver to instantiate your Provider directly so you can bypass any Provider Model configuration concerns and other concerns of your Web application.  Once you get a simple method accessing your stored procedure and returning the data you want, you can then begin wiring up the rest of the provider model stuff and be relatively confident any problems you encounter along the way aren&#8217;t related to your data access code.Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://lostechies.com/derekgreer/2006/01/08/microsoft-aspnet-profile/#comment-187</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 26 Mar 2007 03:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.aspiringcraftsman.com/2006/01/the-microsoft-asp-net-profile/#comment-187</guid>
		<description>Ok thankyou.I&#039;ve downloaded an SQLProfileProvider vb code file. I&#039;ve referenced it in my Webconfig file. It Inherits &#039;ProfileProvider&#039; and has overrides for &quot;ApplicationName&quot;, &quot;GetPropertyValues&quot;, &quot;SetPropertyValues&quot;, &quot;Initialize&quot; and all the others are set to throw a NotSupportedException.I am a webdesigner, I origionally just made pretty looking websites but my boss needed someone to get into programming, so I self taught myself ASP.NET in VBscript. I&#039;ve always steered clear from using Code Behind. So i&#039;m havnig to get my head round that as well as this new Profile stuff!Anyway, I&#039;ve tried implimenting this code and I don&#039;t receive any errors until I try adding to the Profile.(I have set up a new Profile Table and 2 custom Stored Procedures to Set and Get Profile data.)When I try Profile.ItemID = &quot;100&quot; for example I am getting the following error:Object reference not set to an instance of an object.error with OrderBtn_click: at SQLStoredProcedureProfileProvider.GetProfileDataFromSproc(SettingsPropertyCollection properties, SettingsPropertyValueCollection svc, String username, SqlConnection conn, Boolean userIsAuthenticated) in D:Domainstheboxwarehouse.co.ukwwwrootApp_CodeSQLStoredProcedureProfileProvider.vb:line 322 at SQLStoredProcedureProfileProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection collection) in D:Domainstheboxwarehouse.co.ukwwwrootApp_CodeSQLStoredProcedureProfileProvider.vb:line 87 at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider) at System.Configuration.SettingsBase.SetPropertyValueByName(String propertyName, Object propertyValue) at System.Configuration.SettingsBase.set_Item(String propertyName, Object value) at System.Web.Profile.ProfileBase.SetInternal(String propertyName, Object value) at System.Web.Profile.ProfileBase.set_Item(String propertyName, Object value) at System.Web.Profile.ProfileBase.SetPropertyValue(String propertyName, Object propertyValue) at ProfileCommon.set_ItemID(String Value) in C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Filesroot536e3be566ddd7c1App_Code.quqft_xx.3.vb:line 36 at ASP.products_aspx.Add_btn_click(Object sender, ImageClickEventArgs e) in D:Domainstheboxwarehouse.co.ukwwwrootProducts.aspx:line 445Object reference not set to an instance of an object. What does that tell you?</description>
		<content:encoded><![CDATA[<p>Ok thankyou.I&#8217;ve downloaded an SQLProfileProvider vb code file. I&#8217;ve referenced it in my Webconfig file. It Inherits &#8216;ProfileProvider&#8217; and has overrides for &#8220;ApplicationName&#8221;, &#8220;GetPropertyValues&#8221;, &#8220;SetPropertyValues&#8221;, &#8220;Initialize&#8221; and all the others are set to throw a NotSupportedException.I am a webdesigner, I origionally just made pretty looking websites but my boss needed someone to get into programming, so I self taught myself ASP.NET in VBscript. I&#8217;ve always steered clear from using Code Behind. So i&#8217;m havnig to get my head round that as well as this new Profile stuff!Anyway, I&#8217;ve tried implimenting this code and I don&#8217;t receive any errors until I try adding to the Profile.(I have set up a new Profile Table and 2 custom Stored Procedures to Set and Get Profile data.)When I try Profile.ItemID = &#8220;100&#8243; for example I am getting the following error:Object reference not set to an instance of an object.error with OrderBtn_click: at SQLStoredProcedureProfileProvider.GetProfileDataFromSproc(SettingsPropertyCollection properties, SettingsPropertyValueCollection svc, String username, SqlConnection conn, Boolean userIsAuthenticated) in D:Domainstheboxwarehouse.co.ukwwwrootApp_CodeSQLStoredProcedureProfileProvider.vb:line 322 at SQLStoredProcedureProfileProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection collection) in D:Domainstheboxwarehouse.co.ukwwwrootApp_CodeSQLStoredProcedureProfileProvider.vb:line 87 at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider) at System.Configuration.SettingsBase.SetPropertyValueByName(String propertyName, Object propertyValue) at System.Configuration.SettingsBase.set_Item(String propertyName, Object value) at System.Web.Profile.ProfileBase.SetInternal(String propertyName, Object value) at System.Web.Profile.ProfileBase.set_Item(String propertyName, Object value) at System.Web.Profile.ProfileBase.SetPropertyValue(String propertyName, Object propertyValue) at ProfileCommon.set_ItemID(String Value) in C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Filesroot536e3be566ddd7c1App_Code.quqft_xx.3.vb:line 36 at ASP.products_aspx.Add_btn_click(Object sender, ImageClickEventArgs e) in D:Domainstheboxwarehouse.co.ukwwwrootProducts.aspx:line 445Object reference not set to an instance of an object. What does that tell you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Greer</title>
		<link>http://lostechies.com/derekgreer/2006/01/08/microsoft-aspnet-profile/#comment-188</link>
		<dc:creator>Derek Greer</dc:creator>
		<pubDate>Fri, 23 Mar 2007 19:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.aspiringcraftsman.com/2006/01/the-microsoft-asp-net-profile/#comment-188</guid>
		<description>Sure, I&#039;ll give it a shot.</description>
		<content:encoded><![CDATA[<p>Sure, I&#8217;ll give it a shot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://lostechies.com/derekgreer/2006/01/08/microsoft-aspnet-profile/#comment-189</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 23 Mar 2007 11:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.aspiringcraftsman.com/2006/01/the-microsoft-asp-net-profile/#comment-189</guid>
		<description>I see you&#039;re ofay with all this ! I am really struggling, I&#039;ve spent almost a week on trying to impliment a custom Profile class. If i was to post some of my problems on here would you help steer me in the right direction?</description>
		<content:encoded><![CDATA[<p>I see you&#8217;re ofay with all this ! I am really struggling, I&#8217;ve spent almost a week on trying to impliment a custom Profile class. If i was to post some of my problems on here would you help steer me in the right direction?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://lostechies.com/derekgreer/2006/01/08/microsoft-aspnet-profile/#comment-190</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 23 Mar 2007 11:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.aspiringcraftsman.com/2006/01/the-microsoft-asp-net-profile/#comment-190</guid>
		<description>Thankyou for this information it&#039;s helped me.</description>
		<content:encoded><![CDATA[<p>Thankyou for this information it&#8217;s helped me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://lostechies.com/derekgreer/2006/01/08/microsoft-aspnet-profile/#comment-191</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 09 Nov 2006 09:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.aspiringcraftsman.com/2006/01/the-microsoft-asp-net-profile/#comment-191</guid>
		<description>Very good article!!</description>
		<content:encoded><![CDATA[<p>Very good article!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
