<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.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>WebLog of Ken Cox - All Comments</title><link>http://weblogs.asp.net/kencox/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Fixing the System.Data.UpdateException – DefiningQuery  and no &lt;InsertFunction&gt; Error</title><link>http://weblogs.asp.net/kencox/archive/2009/09/09/fixing-the-system-data-updateexception-definingquery-and-no-lt-insertfunction-gt-error.aspx#8273095</link><pubDate>Tue, 31 Jan 2012 06:10:21 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8273095</guid><dc:creator>Klaus Ahlbäumer</dc:creator><description>&lt;p&gt;Thank you for writing your experience into this blog.&lt;/p&gt;
&lt;p&gt;So it took me only a few minutes to fix the problem.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8273095" width="1" height="1"&gt;</description></item><item><title>re: Fixing the System.Data.UpdateException – DefiningQuery  and no &lt;InsertFunction&gt; Error</title><link>http://weblogs.asp.net/kencox/archive/2009/09/09/fixing-the-system-data-updateexception-definingquery-and-no-lt-insertfunction-gt-error.aspx#8269749</link><pubDate>Fri, 27 Jan 2012 05:11:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8269749</guid><dc:creator>Dan</dc:creator><description>&lt;p&gt;Old post, still relevant... &amp;nbsp;DOH! Forgot the Primary Key... &amp;nbsp;Guess that happens when you haven&amp;#39;t created a DB table in 3 months... &amp;nbsp;Thanks, bud! &amp;nbsp;*cheers*&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8269749" width="1" height="1"&gt;</description></item><item><title>re: I Owe $282.06 for Windows Azure Usage Charges on an MSDN Subscription</title><link>http://weblogs.asp.net/kencox/archive/2010/02/25/i-owe-282-06-for-windows-azure-usage-charges-on-an-msdn-subscription.aspx#8266107</link><pubDate>Sun, 22 Jan 2012 01:08:25 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8266107</guid><dc:creator>Chris Smith</dc:creator><description>&lt;p&gt;Just so I don&amp;#39;t sound like an idiot: I&amp;#39;m a solution architect and have been using the .Net platform for about 10 years now (since beta!). &amp;nbsp;I&amp;#39;ve built massive SaaS applications that run on hundreds of servers and big commercial web sites.&lt;/p&gt;
&lt;p&gt;Whilst I haven&amp;#39;t been screwed (yet), I was ashamed to find out that my trial storage transactions for the month are half gone from deploying a todo list around 15 times. &amp;nbsp;I mean what the?&lt;/p&gt;
&lt;p&gt;When projecting it across our current application and deployment, it would cost about $25,000 a month to sustain. &amp;nbsp;Our current pricing (with our own kit, hosting costs, sole staff member and trips to the data center) turns out at around $15,000 a month and a fair chunk of that&amp;#39;s going out of the window when we dump SQL server for postgresql.&lt;/p&gt;
&lt;p&gt;So it&amp;#39;s not cost effective for both small LOB applications and large ones? &amp;nbsp;What good is it?&lt;/p&gt;
&lt;p&gt;Considering all the &amp;quot;features&amp;quot; which are not portable once you&amp;#39;ve implemented them (service bus, worker roles etc), once you&amp;#39;ve built it, you are screwed properly. &amp;nbsp;AppFabric on Windows server is not the same. &amp;nbsp;Total disaster.&lt;/p&gt;
&lt;p&gt;Rackspace, cheap VPS and AWS are far cheaper with no API lock in and vendor lock in.&lt;/p&gt;
&lt;p&gt;In fact, it&amp;#39;d probably be better to use PHP and Postgres or something on Linux. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Oh and don&amp;#39;t even get me started on how long it takes to deploy. &amp;nbsp;I can shift a 2500 file deployment package to a Linux machine with rsync over ssh in 10 seconds flat. &amp;nbsp;Compare that to 5 minutes with azure to shift a couple of static pages over.&lt;/p&gt;
&lt;p&gt;Sorry rant over.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8266107" width="1" height="1"&gt;</description></item><item><title>re: Fix: 'Unable to load one or more of the requested types' Errors</title><link>http://weblogs.asp.net/kencox/archive/2011/06/08/fix-unable-to-load-one-or-more-of-the-requested-types-errors.aspx#8256145</link><pubDate>Sun, 15 Jan 2012 15:35:48 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8256145</guid><dc:creator>John K.</dc:creator><description>&lt;p&gt;Thank you so much for posting this. I had the identical problem going from dev to prod env. &amp;nbsp;Would have never figured this one out without your help.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8256145" width="1" height="1"&gt;</description></item><item><title>re: Using the SQL Table Profile Provider in ASP.NET 4 Web Applications (C# &amp; VB)</title><link>http://weblogs.asp.net/kencox/archive/2010/09/05/using-the-sql-table-profile-provider-in-asp-net-4-web-applications-c-amp-vb.aspx#8243403</link><pubDate>Wed, 11 Jan 2012 12:52:55 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8243403</guid><dc:creator>sebastianh</dc:creator><description>&lt;p&gt;Hi Ken, great code. thank you. I included on my website with success for authenticated users, on the other hand I dont know how I can include anonymousidentification to profiles using the proposed scheme. I&amp;#180;m trying to use AnonymousIdentification_Creating in global.asax but with limited success. Do you have the chance to shed light on the best approach to use anonymousidentification=true with sql table profile provider?. Brgds!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8243403" width="1" height="1"&gt;</description></item><item><title>re: Full Trust Strikes Again</title><link>http://weblogs.asp.net/kencox/archive/2006/10/21/Full-Trust-Strikes-Again.aspx#8239095</link><pubDate>Tue, 10 Jan 2012 03:26:38 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8239095</guid><dc:creator>Gizzi</dc:creator><description>&lt;p&gt;this totally bytes! &amp;nbsp;i&amp;#39;ve had to rebuild my whole website because it won&amp;#39;t run the controls I love soo much like collapsible panels and the like!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8239095" width="1" height="1"&gt;</description></item><item><title>re: Oracle 11G and SqlDataSource: The ugly 'ORA-01036: illegal variable name/number' Issue</title><link>http://weblogs.asp.net/kencox/archive/2008/02/24/oracleclient-and-sqldatasource-the-ugly-ora-01036-illegal-variable-name-number-issue.aspx#8237224</link><pubDate>Mon, 09 Jan 2012 12:36:35 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8237224</guid><dc:creator>Subhasis</dc:creator><description>&lt;p&gt;I am using it in below format and it works for me:&lt;/p&gt;
&lt;p&gt;===== aspx ====&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:SqlDataSource ID=&amp;quot;SqlDataSource3&amp;quot; runat=&amp;quot;server&amp;quot; ConflictDetection=&amp;quot;OverwriteChanges&amp;quot; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ConnectionString=&amp;quot;&amp;lt;%$ ConnectionStrings:ConnectionString %&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ProviderName=&amp;quot;System.Data.OracleClient&amp;quot;&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;InsertCommand=&amp;quot;INSERT INTO PROBLEM &lt;/p&gt;
&lt;p&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; (NAME, PROBLEMTEXT, PROBLEMTYPE, DESCRIPTION, EVENTID) &lt;/p&gt;
&lt;p&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; VALUES (:NAME, :PROBLEMTEXT, :PROBLEMTYPE, :DESCRIPTION, :EVENTID)&amp;quot;&lt;/p&gt;
&lt;p&gt;==== aspx.cs ====&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;protected void GridView3_RowAdding(object sender,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GridViewUpdateEventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (e.RowIndex &amp;gt; 0)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return; // RowIndex=0 is the row we want to insert&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.Collections.Hashtable h =&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new System.Collections.Hashtable();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;foreach (System.Collections.DictionaryEntry x in e.NewValues)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;h[x.Key] = x.Value;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlDataSource3.InsertParameters[x.Key.ToString()].DefaultValue = x.Value.ToString();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlDataSource3.Insert();&lt;/p&gt;
&lt;p&gt;====&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8237224" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET/IIS Fix: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.</title><link>http://weblogs.asp.net/kencox/archive/2010/05/20/asp-net-iis-fix-the-microsoft-jet-oledb-4-0-provider-is-not-registered-on-the-local-machine.aspx#8208580</link><pubDate>Mon, 02 Jan 2012 12:46:04 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8208580</guid><dc:creator>Karthik.M</dc:creator><description>&lt;p&gt;Very very thanks for your golden information, I fixed this error, Now its working properly.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8208580" width="1" height="1"&gt;</description></item><item><title>re: Fixing the System.Data.UpdateException – DefiningQuery  and no &lt;InsertFunction&gt; Error</title><link>http://weblogs.asp.net/kencox/archive/2009/09/09/fixing-the-system-data-updateexception-definingquery-and-no-lt-insertfunction-gt-error.aspx#8198835</link><pubDate>Sat, 31 Dec 2011 02:17:39 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8198835</guid><dc:creator>HasanRizvi</dc:creator><description>&lt;p&gt;This is the case for me. Simply removing &amp;lt;DefiningQuery&amp;gt; resulted in another error. &amp;nbsp;I followed the steps of this post except the last one. For your convenience, I copied the 4 steps from the post &amp;nbsp; that I followed to solve the problem as following:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Right click on the edmx file, select Open with, XML editor&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Locate the entity in the edmx:StorageModels element&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Remove the DefiningQuery entirely&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Rename the store:Schema=&amp;quot;dbo&amp;quot; to Schema=&amp;quot;dbo&amp;quot; (otherwise, the code will generate an error saying the name is invalid) &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8198835" width="1" height="1"&gt;</description></item><item><title>re: Stupid web.config mistake: Sections must only appear once per config file</title><link>http://weblogs.asp.net/kencox/archive/2010/09/04/stupid-web-config-mistake-sections-must-only-appear-once-per-config-file.aspx#8180906</link><pubDate>Tue, 27 Dec 2011 16:19:24 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8180906</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;This is great! Saved me frustration. &amp;nbsp;I copy/pasted a location chunk for a page where I added a new role, but that same page was in the web.comnfig file eariler in the file for the old role it was in before. Dumb. &amp;nbsp;Thanks.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8180906" width="1" height="1"&gt;</description></item></channel></rss>
