<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8372279489364423861</id><updated>2024-11-01T03:37:07.598-07:00</updated><category term="Silverlight/WPF"/><category term="C#"/><category term="Database"/><category term="SQL"/><category term="Development Tools"/><category term="Visual Studio"/><category term="Entity Framework"/><category term="LINQ to Entities"/><category term="LINQ to SQL"/><category term="Open Space Conference"/><category term="SQL Server"/><category term="VSDB"/><category term="Visual SourceSafe"/><category term="WCF"/><category term="Windows"/><title type='text'>Guru&#39;s .NET Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>31</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-2030607436750396546</id><published>2015-11-25T14:49:00.003-08:00</published><updated>2015-11-25T14:49:40.623-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><title type='text'>How to resolve &quot;Cannot drop database because it is currently in use&quot; error</title><content type='html'>Run a ALTER DATABASE command like below before dropping the database:&lt;br /&gt;
&lt;br /&gt;
USE [master]&lt;br /&gt;
GO&lt;br /&gt;
ALTER DATABASE [databaseName] SET &amp;nbsp;SINGLE_USER WITH ROLLBACK IMMEDIATE&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
USE [master]&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
DROP DATABASE [databaseName]&lt;br /&gt;
GO</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/2030607436750396546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2015/11/how-to-resolve-cannot-drop-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/2030607436750396546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/2030607436750396546'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2015/11/how-to-resolve-cannot-drop-database.html' title='How to resolve &quot;Cannot drop database because it is currently in use&quot; error'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-285764313605519363</id><published>2015-07-21T16:27:00.003-07:00</published><updated>2015-07-21T16:27:59.499-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>Visual Studio Online</title><content type='html'>&lt;span style=&quot;color: #333333; font-family: &#39;Segoe UI&#39;, Helvetica, Garuda, Arial, sans-serif; font-size: 1.3em; line-height: 20px;&quot;&gt;Features included with free Visual Studio Online&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Segoe UI&#39;, Helvetica, Garuda, Arial, sans-serif; font-size: 1.3em; line-height: 20px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Segoe UI&#39;, Helvetica, Garuda, Arial, sans-serif; font-size: 1.3em; line-height: 20px;&quot;&gt;account:&lt;/span&gt;&lt;br /&gt;
&lt;ul class=&quot;small-space-container&quot; style=&quot;box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, Helvetica, Garuda, Arial, sans-serif; font-size: 13px; line-height: 20px; list-style-image: url(https://app.vssps.visualstudio.com/_static/tfs/20150716T194240/_content/checkmark-green.png); margin: 0px 0px 20px; padding: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box; margin: 15px 0px 0px 15px; padding: 0px;&quot;&gt;5&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;FREE&lt;/strong&gt;&amp;nbsp;Basic user licenses&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin: 10px 0px 0px 15px; padding: 0px;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Unlimited&lt;/strong&gt;&amp;nbsp;stakeholders&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin: 10px 0px 0px 15px; padding: 0px;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Unlimited&lt;/strong&gt;&amp;nbsp;eligible MSDN subscribers&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin: 10px 0px 0px 15px; padding: 0px;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;Unlimited&lt;/strong&gt;&amp;nbsp;team projects and private code repos&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin: 10px 0px 0px 15px; padding: 0px;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;FREE&lt;/strong&gt;&amp;nbsp;work item tracking for all users&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin: 10px 0px 0px 15px; padding: 0px;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;FREE&lt;/strong&gt;&amp;nbsp;60 minutes/month of build&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin: 10px 0px 0px 15px; padding: 0px;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;FREE&lt;/strong&gt;&amp;nbsp;20K virtual user minutes/month of load testing&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box; margin: 10px 0px 0px 15px; padding: 0px;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;PREVIEW&lt;/strong&gt;&amp;nbsp;application monitoring and analytics&lt;/li&gt;
&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/285764313605519363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2015/07/visual-studio-online.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/285764313605519363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/285764313605519363'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2015/07/visual-studio-online.html' title='Visual Studio Online'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-4480852336187096601</id><published>2015-07-21T15:51:00.003-07:00</published><updated>2015-07-21T15:55:05.968-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>Visual Studio 2015</title><content type='html'>&lt;span style=&quot;color: #333333; font-family: Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333; font-family: Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 20px;&quot;&gt;Some new features in Visual Studio 2015:&lt;/span&gt;&lt;/span&gt;&lt;ul style=&quot;background-color: white; color: #333333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 10px 0px 0px;&quot;&gt;
&lt;li&gt;&lt;a class=&quot;external-link&quot; href=&quot;https://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs.aspx&quot; rel=&quot;nofollow&quot; style=&quot;color: #326ca6; text-decoration: none;&quot;&gt;Visual Studio 2015 RC Downloads&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://confluence.americas.nwea.pvt/www.github.com/microsoft/dotnet&quot; rel=&quot;nofollow&quot; style=&quot;color: #326ca6; text-decoration: none;&quot;&gt;.Net in GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;external-link&quot; href=&quot;https://code.visualstudio.com/&quot; rel=&quot;nofollow&quot; style=&quot;color: #326ca6; text-decoration: none;&quot;&gt;Vsual Studio Code&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;external-link&quot; href=&quot;https://www.visualstudio.com/en-us/products/what-is-visual-studio-online-vs&quot; rel=&quot;nofollow&quot; style=&quot;color: #326ca6; text-decoration: none;&quot;&gt;Visual Studio Online&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Visual Studio 2015 includes Xamarin integrated for mobile development&lt;/li&gt;
&lt;li&gt;Cordovo tooling in Visual Studio 2015&lt;/li&gt;
&lt;li&gt;.Net and microservices&lt;/li&gt;
&lt;li&gt;Don&#39;t have to build to run a web app&lt;/li&gt;
&lt;li&gt;All source code are in Git hub (example Asp.Net MVC source code). If we get source code, source reference will override nuget package.&lt;/li&gt;
&lt;li&gt;Dev and Test in Cloud - use virtual machines&lt;/li&gt;
&lt;li&gt;Debugging&lt;ul style=&quot;list-style-type: disc; margin: 0px;&quot;&gt;
&lt;li&gt;Performance step (no more debug trace lines)&lt;/li&gt;
&lt;li&gt;Applying linq queries with lamda expression in the output window while debugging&lt;/li&gt;
&lt;li&gt;Editing the linq query real time while debugging&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/4480852336187096601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2015/07/visual-studio-2015.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/4480852336187096601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/4480852336187096601'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2015/07/visual-studio-2015.html' title='Visual Studio 2015'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-5119066836508186846</id><published>2014-11-11T15:51:00.000-08:00</published><updated>2014-11-11T16:04:05.187-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Entity Framework"/><title type='text'>Entity Framework Power Tools</title><content type='html'>Found this cool entity framework power tool to do reverse engineering for creating code first entity framework data models from an existing database.&lt;br /&gt;
&lt;br /&gt;
Install the Entity Framework Power Tools Beta 4 from here:&lt;br /&gt;
&lt;a href=&quot;https://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19d&quot;&gt;https://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19d&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Once the tool is installed, you should be able to access the entity framework reverse engineer plugin from Visual Studio.&lt;br /&gt;
&lt;br /&gt;
Right click on your solution in Visual Studio and you should see menu option for reverse engineer:&lt;br /&gt;
&quot;Entity Framework&quot; -&amp;gt; &quot;Reverse Engineer Code First&quot;&lt;br /&gt;
&lt;br /&gt;
Create a class library for your data layer and click &quot;Reverse Engineer Code First&quot; menu option. Folowwing the instructions to create entity framework data models for an existing database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/5119066836508186846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2014/11/entity-framework-power-tools.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/5119066836508186846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/5119066836508186846'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2014/11/entity-framework-power-tools.html' title='Entity Framework Power Tools'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-1949517144740997639</id><published>2014-11-03T16:14:00.000-08:00</published><updated>2014-11-03T16:16:05.630-08:00</updated><title type='text'>Memory gates checking failed because the free memory is less than 5% of total memory</title><content type='html'>I got this exception when running a service on my localhost:&lt;br /&gt;
&lt;br /&gt;
&lt;h2 style=&quot;background-color: white; color: maroon; font-family: Verdana; font-size: 14pt; font-weight: normal;&quot;&gt;
&lt;i&gt;&quot;Memory gates checking failed because the free memory&amp;nbsp;(180146176 bytes) is less than 5% of total memory.&amp;nbsp;&amp;nbsp;As a result, the service will not be available for incoming requests. &amp;nbsp;To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.&quot;&lt;/i&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;i&gt;&amp;nbsp;&lt;/i&gt;I checked memory usage in task manager and the free memory was indeed less than 5%.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Easy fix for this issue is to set &quot;minFreeMemoryPercentageToActivateService&quot; value in &quot;serviceHostingEnvironment&quot; configuration to 0:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&amp;lt;system.serviceModel&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;system .servicemodel=&quot;&quot;&gt;&lt;/system&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;serviceHostingEnvironment aspNetCompatibilityEnabled=&quot;true&quot; multipleSiteBindingsEnabled=&quot;true&quot; &lt;span style=&quot;background-color: yellow;&quot;&gt;minFreeMemoryPercentageToActivateService=&quot;0&quot;&lt;/span&gt;/&amp;gt;&lt;br /&gt;
&amp;lt;/system.serviceModel&amp;gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/1949517144740997639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2014/11/memory-gates-checking-failed-because.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/1949517144740997639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/1949517144740997639'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2014/11/memory-gates-checking-failed-because.html' title='Memory gates checking failed because the free memory is less than 5% of total memory'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-1445538031641402782</id><published>2014-06-02T16:25:00.001-07:00</published><updated>2014-06-02T16:25:12.309-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server"/><title type='text'>Cannot drop database because it is currently in use error</title><content type='html'>We might get following error when we try to drop a database in SQL Server:&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&quot;Cannot drop database &#39;MyDatabaseName&#39; because it is currently in user&quot;.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
To resolve this error, alter the database first before deleting the database like below..&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
USE [master]&lt;/div&gt;
&lt;div&gt;
GO&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ALTER DATABASE [MyDatabaseName] set single_user with rollback immediate&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
DROP DATABASE [MyDatabaseName]&lt;/div&gt;
&lt;div&gt;
GO&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/1445538031641402782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2014/06/cannot-drop-database-because-it-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/1445538031641402782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/1445538031641402782'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2014/06/cannot-drop-database-because-it-is.html' title='Cannot drop database because it is currently in use error'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-1201375221550866863</id><published>2014-03-06T14:21:00.001-08:00</published><updated>2014-03-06T14:23:07.355-08:00</updated><title type='text'>Visual Studio solution file opens in notepad!</title><content type='html'>If you edit your visual studio solution (.sln) file in notepad and after that if the solution file always opens in notepad by default, then this is what you need to make the solution file open back in visual studio again:&lt;br /&gt;
&lt;br /&gt;
1. Right click on the solution file, select &quot;Properties&quot;&lt;br /&gt;
2. Look for &quot;Opens with:&quot; option and change it to your Visual Studio version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/1201375221550866863/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2014/03/visual-studio-solution-file-opens-as.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/1201375221550866863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/1201375221550866863'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2014/03/visual-studio-solution-file-opens-as.html' title='Visual Studio solution file opens in notepad!'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-997252136688124474</id><published>2012-11-17T16:00:00.002-08:00</published><updated>2012-11-17T16:00:45.762-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Open Space Conference"/><title type='text'>The Principles of Open Space Conference</title><content type='html'>Today I attended a technical open space conference and I really liked the concept.&lt;br /&gt;
&lt;br /&gt;
In brief these are the principles of open space conference:&lt;br /&gt;
&lt;br /&gt;
1. Whoever shows up are the right people.&lt;br /&gt;
2. Whenever it starts, it starts.&lt;br /&gt;
3. Whenever it&#39;s over, it&#39;s over.&lt;br /&gt;
4. Wherever it happens is the right place.&lt;br /&gt;
5. Whatever happens is the only thing that could&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/997252136688124474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2012/11/the-principles-of-open-space-conference.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/997252136688124474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/997252136688124474'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2012/11/the-principles-of-open-space-conference.html' title='The Principles of Open Space Conference'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total><georss:featurename>Portland, OR, USA</georss:featurename><georss:point>45.5234515 -122.6762071</georss:point><georss:box>45.345457 -122.9920641 45.701446 -122.3603501</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-4432171958024139366</id><published>2012-02-21T16:29:00.000-08:00</published><updated>2015-07-21T15:44:33.417-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><category scheme="http://www.blogger.com/atom/ns#" term="VSDB"/><title type='text'>Visual Studio Database (VSDB) Project issue with UDF and Views</title><content type='html'>In Visual Studio 2010, there seems to be a dependency problem with User Defined Functions (UDF) and Views. The deployment script created by the VSDB project always puts UDF before database Views. Consider this scenario, we have a database function which depends on a database view and we have altered both the function and the view. Now, when a deployment script is created for this database project, the altered function is always placed before the alter view statement. Running this script will fail at alter function statement because the dependent view was not altered yet. I could not find any settings in VSDB project to change the sequence order for the build, meaning build my database View first and then the UDF. The only workaround I found was to alter my database View in the pre-deployment script.</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/4432171958024139366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2012/02/visual-studio-database-vsdb-project.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/4432171958024139366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/4432171958024139366'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2012/02/visual-studio-database-vsdb-project.html' title='Visual Studio Database (VSDB) Project issue with UDF and Views'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total><georss:featurename>Portland, OR, USA</georss:featurename><georss:point>45.5234515 -122.6762071</georss:point><georss:box>45.412436 -122.8587801 45.634467 -122.4936341</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-2518049472186346053</id><published>2011-08-08T16:49:00.000-07:00</published><updated>2011-08-08T16:49:50.929-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Entity Framework"/><category scheme="http://www.blogger.com/atom/ns#" term="LINQ to Entities"/><title type='text'>Entity Framework Error: Resource not found for segment &#39;Property&#39;</title><content type='html'>I was getting &quot;Resource not found for segment &#39;Property&#39;&quot; error with the below code. I am loading some data from the database using .Net Entity Framework.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;private void LoadItem(int specId)&lt;br /&gt;
&amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var query = DataContext.Items.Where( x =&amp;gt; x.SpecId == specID );&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DataServiceQuery &lt;item&gt; dsq = DataServiceQuery&lt;item&gt;)query;&lt;/item&gt;&lt;/item&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dsq.BeginExecute(&amp;nbsp; ar =&amp;gt;&lt;br /&gt;
&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;this.items = dsq.EndExecute( ar ).SingleOrDefault();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;},&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;null );&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
The above code threw an exception when the data query returned no records. I was expecting SingleOrDefault() to return default value (which is NULL) if no matching records were found. But, instead I was getting &quot;Resource not found for segment &#39;Property&#39;&quot; exception.&lt;br /&gt;
&lt;br /&gt;
After doing some investigation I found out that the exception was due to the fact that I was using primary key field in my data service query.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var query = DataContext.Items.Where( x =&amp;gt; x.SpecId == specID );&lt;br /&gt;
&lt;br /&gt;
Here the field SpecId was a primary key. In Entity Framework if your data service query is performed on a primary key, then SingleOrDefault() and FirstOrDefault() methods will throw an exception if no matching records were found.&lt;br /&gt;
&lt;br /&gt;
To resolve this issue, I set the following property to TRUE on the data service DataContext. This line will&amp;nbsp;suppress&amp;nbsp;the &quot;Resource Not Found&quot; exception.&lt;br /&gt;
&lt;br /&gt;
DataConext.IgnoreResourceNotFoundException = true;&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/2518049472186346053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2011/08/entity-framework-error-resource-not.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/2518049472186346053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/2518049472186346053'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2011/08/entity-framework-error-resource-not.html' title='Entity Framework Error: Resource not found for segment &#39;Property&#39;'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-491110708716732527</id><published>2011-07-13T14:13:00.000-07:00</published><updated>2011-07-13T14:13:51.216-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>SQL: Deleting duplicate records from table</title><content type='html'>Here is one way to delete duplicate records from a table:&lt;br /&gt;
&lt;br /&gt;
Consider we have some duplicate records in TempTable which has a unique identifier column called &quot;RowId&quot;.&lt;br /&gt;
&lt;br /&gt;
delete from TempTable&lt;br /&gt;
where RowId not in&lt;br /&gt;
(&lt;br /&gt;
select min(ROWID)&lt;br /&gt;
from TempTable&lt;br /&gt;
group by column1, column2,...&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
For each duplicate set of duplicate records, the above query retains one row with minimum RowId and deletes all other duplicate records. If you want to retain row with maximum RowId and delete all other duplicate records, then just replace the min() method with max().&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/491110708716732527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2011/07/sql-deleting-duplicate-records-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/491110708716732527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/491110708716732527'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2011/07/sql-deleting-duplicate-records-from.html' title='SQL: Deleting duplicate records from table'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-4767192754239072113</id><published>2011-06-07T16:48:00.000-07:00</published><updated>2011-06-07T16:49:51.014-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>SQL Error: None of the result expressions in a CASE specification can be NULL</title><content type='html'>I got this error when my CASE statement in SQL returned NULL and did not have any ELSE section in the CASE statement:&amp;nbsp;&quot;None of the result expressions in a CASE specification can be NULL&quot;&lt;br /&gt;
&lt;div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;The CASE statement which resulted in error was like this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;SELECT&amp;nbsp;&lt;/div&gt;&lt;div&gt;CASE WHEN StudentId = 0 THEN null END&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;I wanted to return NULL when StudentId = 0; else return the StudentId.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;The above query did not work without the ELSE part. After adding the ELSE section like below the query executed without error:&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;SELECT&amp;nbsp;&lt;/div&gt;&lt;div&gt;CASE WHEN StudentId = 0 THEN null ELSE StudentId&amp;nbsp;END&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/4767192754239072113/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2011/06/sql-error-none-of-result-expressions-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/4767192754239072113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/4767192754239072113'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2011/06/sql-error-none-of-result-expressions-in.html' title='SQL Error: None of the result expressions in a CASE specification can be NULL'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-8909069439659790613</id><published>2011-05-05T22:45:00.000-07:00</published><updated>2011-05-05T22:45:14.718-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Silverlight/WPF"/><title type='text'>Creating DataGridTemplateColumn from code behind</title><content type='html'>We can create DataGridTemplateColumn from code behind by defining a DataTemplate in the ResourceDictionary xaml and then use the DataTemplate to create the DataGridTemplateColumn.&lt;br /&gt;
&lt;br /&gt;
In the below sample code, I am creating a data grid column with checkbox.&lt;br /&gt;
&lt;br /&gt;
In the ResourceDictionary xaml, add DataTemplate for the checkbox:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DataTemplate x:Key=&quot;CheckboxTemplate&quot;&amp;gt;&lt;br /&gt;
&amp;lt;CheckBox IsChecked=&quot;{Binding IsSelected, Mode=TwoWay}&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/DataTemplate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the code behind create the DataGridTemplateColumn for the checkbox:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DataGridTemplateColumn checkboxColumn = new DataGridTemplateColumn()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; CellTemplate = App.Current.Resources[&quot;CheckboxTemplate&quot;] as DataTemplate&lt;br /&gt;
};</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/8909069439659790613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2011/05/creating-datagridtemplatecolumn-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/8909069439659790613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/8909069439659790613'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2011/05/creating-datagridtemplatecolumn-from.html' title='Creating DataGridTemplateColumn from code behind'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-4245994544607845614</id><published>2011-05-05T16:14:00.000-07:00</published><updated>2011-05-05T16:14:59.985-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Silverlight/WPF"/><title type='text'>Double click issue with DataGridCheckbox column</title><content type='html'>DataGridCheckboxColumn in DataGrid seems to have double click issue. One has to click twice to check or uncheck, first click to select the row and the second click for the checkbox. We can use DataGridTemplateColumn instead for the checkbox which does not have double click issue.&amp;nbsp;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;sample code:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;lt;DataGridTemplateColumn Header=&quot;Name&quot;&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;lt;controlsData:DataGridTemplateColumn.CellTemplate&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;DataTemplate&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;CheckBox Content=&quot;{Binding Name}&quot;&amp;nbsp;IsChecked=&quot;{Binding Path=IsSelected,Mode=TwoWay}&quot; /&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/DataTemplate&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/controlsData:DataGridTemplateColumn.CellTemplat&amp;gt;&lt;/div&gt;&lt;div&gt;&amp;lt;/DataGridTemplateColumn&amp;gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/4245994544607845614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2011/05/double-click-issue-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/4245994544607845614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/4245994544607845614'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2011/05/double-click-issue-with.html' title='Double click issue with DataGridCheckbox column'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-5259576853812941478</id><published>2011-02-28T13:56:00.000-08:00</published><updated>2011-02-28T13:56:24.000-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>IIS version on Windows versions</title><content type='html'>&lt;div&gt;Every Windows version has it&#39;s own IIS version. Here are some Windows versions:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;Windows Server 2000 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;- IIS version 5.0&lt;br /&gt;
Windows XP Professional&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;- IIS version 5.1&lt;br /&gt;
Windows Server 2003 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;- IIS version 6.0&lt;br /&gt;
Windows Vista &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;- IIS version 7.0&lt;br /&gt;
Windows Server 2008&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;- IIS version       7.0</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/5259576853812941478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2011/02/iis-version-on-windows-versions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/5259576853812941478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/5259576853812941478'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2011/02/iis-version-on-windows-versions.html' title='IIS version on Windows versions'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-8078351410469296747</id><published>2011-02-22T14:34:00.000-08:00</published><updated>2011-02-22T14:34:48.753-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'>Using WebGet and WebInvoke</title><content type='html'>nice article on WebGet and WebInvoke attributes: &lt;a href=&quot;http://www.c-sharpcorner.com/uploadfile/freebookarticles/addisonwesley/2009aug25051629am/ProgrammableWeb/4.aspx&quot;&gt;Using WebGet and WebInvoke&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/8078351410469296747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2011/02/using-webget-and-webinvoke.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/8078351410469296747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/8078351410469296747'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2011/02/using-webget-and-webinvoke.html' title='Using WebGet and WebInvoke'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-286696332216579109</id><published>2011-02-17T09:41:00.000-08:00</published><updated>2011-02-17T10:02:21.918-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINQ to Entities"/><title type='text'>LINQ to Entities does not support Contains() method</title><content type='html'>We are using .NET Entity Framework in our project and today I wrote a LINQ to Entities query to fetch records from table A if corresponding records are not found in table B. Let us take example of customer orders scenario. I want to get all the customers who don&#39;t have a order in the Orders table. What I needed was &quot;NOT IN&quot; or &quot;NOT EXISTS&quot; SQL equivalent in LINQ to Entities. I knew that we have Contains() method in LINQ to SQL which is equivalent to NOT EXISTS in SQL. So, I tried following LINQ to Entities query to return all the costumers who don&#39;t have a order in the Orders table:&lt;br /&gt;&lt;br /&gt;from c in context.Customers&lt;br /&gt;where !( from o in context.Orders select o.CustomerId ).Contains( c.CustomerId )&lt;br /&gt;select c&lt;br /&gt;&lt;br /&gt;I was confident this would work, but no the above query did not work!!. I got an error that LINQ to Entities does not support Contains() method. It is frustrating to know that the same Contains() method works in LINQ to SQL but not in LINQ to Entities. Why not support such basic functionality.&lt;br /&gt;&lt;br /&gt;I had other frustrating moments with LINQ to Entities too. I prefer to just use LINQ to SQL and stay away from LINQ to Entities.</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/286696332216579109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2011/02/linq-to-entities-does-not-support.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/286696332216579109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/286696332216579109'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2011/02/linq-to-entities-does-not-support.html' title='LINQ to Entities does not support Contains() method'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-8846949273861691898</id><published>2011-02-16T14:11:00.000-08:00</published><updated>2011-02-16T14:24:51.617-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="LINQ to SQL"/><title type='text'>The NOT EXISTS equivalent in LINQ to SQL</title><content type='html'>Here is a sample LINQ to SQL query to return all the customers who don&#39;t have an order in the Orders table:&lt;br /&gt;&lt;br /&gt;var query = &lt;br /&gt;from c in Customers&lt;br /&gt;where !( from o in Orders select o.CustomerId ).Contains( c.CustomerId )&lt;br /&gt;select c;</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/8846949273861691898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2011/02/not-exists-equivalent-in-linq-to-sql.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/8846949273861691898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/8846949273861691898'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2011/02/not-exists-equivalent-in-linq-to-sql.html' title='The NOT EXISTS equivalent in LINQ to SQL'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-8922554483983105338</id><published>2011-02-08T15:42:00.000-08:00</published><updated>2011-02-08T15:57:21.550-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Development Tools"/><title type='text'>Useful Keyboard Shortcuts for Microsoft Visual Studio</title><content type='html'>Here are some useful keyboard shortcuts for Microsoft Visual Studio:&lt;br /&gt;&lt;br /&gt;F5            =&gt;     Build&lt;br /&gt;CTRL+F5       =&gt;     Execute&lt;br /&gt;F9            =&gt;     Breakpoint for debugging&lt;br /&gt;F10           =&gt;     Single step during debugging&lt;br /&gt;F11           =&gt;     Get into function or method during debugging&lt;br /&gt;&lt;br /&gt;CTRL+K+K      =&gt;     Book Mark&lt;br /&gt;CTRL+K+N      =&gt;     Go to next book mark&lt;br /&gt;CTRL+K+P      =&gt;     Go to previous book mark&lt;br /&gt;&lt;br /&gt;CTRL-C        =&gt;     Copy&lt;br /&gt;CTRL-V        =&gt;     Paste&lt;br /&gt;CTRL-X        =&gt;     Cut&lt;br /&gt;CTRL-A        =&gt;     Select All&lt;br /&gt;CTRL-Z        =&gt;     Undo&lt;br /&gt;ALT-TAB       =&gt;     Switch between open programs&lt;br /&gt;CTRL-TAB      =&gt;     Switch between windows in the current program&lt;br /&gt;CTRL-END      =&gt;     Go to the end of the document&lt;br /&gt;CTRL-HOME     =&gt;     Go to the start of the document&lt;br /&gt;END           =&gt;     Go to the end of the line&lt;br /&gt;HOME          =&gt;     Go to the start of the line&lt;br /&gt;SHIFT-END     =&gt;     Select from the current cursor position to the end of the line&lt;br /&gt;SHIFT-HOME    =&gt;     Select from the current cursor position to the start of the line&lt;br /&gt;&lt;br /&gt;F4            =&gt;     Repeat the last action (only works in most Microsoft Office &lt;br /&gt;applications, such as Excel/Visio/ Word, but very powerful in those)&lt;br /&gt;&lt;br /&gt;CTRL-SHIFT-RightArrow  =&gt;  Select from the current cursor position to the end of the current word (including space)&lt;br /&gt;&lt;br /&gt;CTRL-SHIFT-LeftArrow   =&gt;  Select from the current cursor position to the start of the prior word&lt;br /&gt;&lt;br /&gt;CTRL-F        =&gt;     Find (open the Find dialog in many applications)&lt;br /&gt;&lt;br /&gt;CTRL-H        =&gt;     Find and Replace (open the Find and Replace dialog in many &lt;br /&gt;applications)&lt;br /&gt;&lt;br /&gt;CTRL-SHIFT-UpArrow     =&gt;  Select from the current cursor position to the start of the current line of next line up&lt;br /&gt;&lt;br /&gt;CTRL-SHIFT-DownArrow   =&gt;  Select from the current cursor position to the end of the current or next line down&lt;br /&gt;&lt;br /&gt;CTRL-G        =&gt;     Go to a specific line number (works in notepad, Visual Studio, &lt;br /&gt;other editing programs)</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/8922554483983105338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2011/02/useful-keyboard-shortcuts-for-microsoft.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/8922554483983105338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/8922554483983105338'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2011/02/useful-keyboard-shortcuts-for-microsoft.html' title='Useful Keyboard Shortcuts for Microsoft Visual Studio'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-7312335775087415400</id><published>2011-02-08T15:33:00.000-08:00</published><updated>2011-02-08T23:03:49.385-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Development Tools"/><title type='text'>Firebug for Firefox</title><content type='html'>Firebug integrates with Firefox to put a wealth of web development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page. &lt;br /&gt;&lt;br /&gt;Download Firebug from here: http://getfirebug.com/</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/7312335775087415400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2011/02/firebug-for-firefox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/7312335775087415400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/7312335775087415400'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2011/02/firebug-for-firefox.html' title='Firebug for Firefox'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-4715916180251389651</id><published>2011-02-08T15:03:00.001-08:00</published><updated>2011-02-08T23:04:41.531-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Development Tools"/><title type='text'>Internet Explorer Developer Toolbar</title><content type='html'>The Microsoft Internet Explorer Developer Toolbar provides a variety of tools for quickly creating, understanding, and troubleshooting Web pages.&lt;br /&gt;&lt;br /&gt;Download the IE Developer Toolbar here: &lt;a href=&quot;http://www.microsoft.com/downloads/en/details.aspx?FamilyID=95e06cbe-4940-4218-b75d-b8856fced535&quot;&gt;http://www.microsoft.com/downloads/en/details.aspx?FamilyID=95e06cbe-4940-4218-b75d-b8856fced535&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/4715916180251389651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2011/02/internet-explorer-developer-toolbar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/4715916180251389651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/4715916180251389651'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2011/02/internet-explorer-developer-toolbar.html' title='Internet Explorer Developer Toolbar'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-2963506231678492810</id><published>2011-01-25T10:49:00.001-08:00</published><updated>2011-01-25T11:07:24.640-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Silverlight/WPF"/><title type='text'>Silverlight error: The debugger cannot continue running the process.</title><content type='html'>Today I got this error while debugging my silverlight application and the debugger just crashed without any useful error information. I got this error when the debugger crashed:&lt;br /&gt;&lt;br /&gt;&quot;The debugger cannot continue running the process.  Process was terminated.&quot;&lt;br /&gt;&lt;br /&gt;After doing some debugging and research I found this thread online where in many people had the same issue because of recursive call in class property:&lt;br /&gt;&lt;br /&gt;http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/f9b08dd4-8d20-4104-9a24-9f002caceb48/&lt;br /&gt;&lt;br /&gt;I looked at my code and indeed I had a recursive call in one of my property by mistake. &lt;br /&gt;&lt;br /&gt;private bool isUser;&lt;br /&gt;public bool IsUser&lt;br /&gt;{&lt;br /&gt;   get { return IsUser; }&lt;br /&gt;   set&lt;br /&gt;   {&lt;br /&gt;      IsUser = value;&lt;br /&gt;      OnPropertyChanged( &quot;IsUser&quot; );&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;As you can see in the above code my getter was recursively referring to IsUser property itself instead of the field isUser. This was just coding error but it took some time to figure out the root cause as the debugger was crashing without proper error information.</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/2963506231678492810/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2011/01/silverlight-error-debugger-cannot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/2963506231678492810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/2963506231678492810'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2011/01/silverlight-error-debugger-cannot.html' title='Silverlight error: The debugger cannot continue running the process.'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-9018339388093400589</id><published>2010-10-26T16:38:00.000-07:00</published><updated>2011-01-26T22:57:22.502-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Silverlight/WPF"/><title type='text'>Date format in WPF/Silverlight</title><content type='html'>Here is an example for formatting date in WPF (Format: MM/DD/YYYY):&lt;br /&gt;&lt;br /&gt;&amp;ltTextBlock Text=&quot;{Binding CreationDate, StringFormat=\{0:MM/dd/yyyy\}}&quot; /&amp;gt</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/9018339388093400589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2010/10/date-format-in-wpfsilverlight.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/9018339388093400589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/9018339388093400589'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2010/10/date-format-in-wpfsilverlight.html' title='Date format in WPF/Silverlight'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-4180041573151739329</id><published>2010-09-22T11:00:00.000-07:00</published><updated>2011-01-30T00:37:42.124-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Silverlight/WPF"/><title type='text'>Error when referencing assembly from network share - Silverlight 4 (.NET Framework 4.0)</title><content type='html'>I got this error today when I added reference to an assembly from network share:&lt;br /&gt;&lt;br /&gt;&quot;Error 3 Could not load the assembly file://\\CM\libraries\Microsoft\Rx\Reactive Extensions v1.0.2677.0\SL4\System.Observable.dll. This assembly may have been downloaded from the Web.  If an assembly has been downloaded from the Web, it is flagged by Windows as being a Web file, even if it resides on the local computer. This may prevent it from being used in your project. You can change this designation by changing the file properties. Only unblock assemblies that you trust&quot;.&lt;br /&gt;&lt;br /&gt;I am using Silverlight 4 (.NET Framework 4.0).&lt;br /&gt;&lt;br /&gt;To fix this issue I added following entry in the Visual Studio 2010 devenv.config file.&lt;br /&gt;&lt;br /&gt;&amp;lt loadFromRemoteSources enabled=&quot;true&quot; /&amp;gt&lt;br /&gt;To the runtime section of:&lt;br /&gt;C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.config</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/4180041573151739329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2010/09/error-when-referencing-assembly-from.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/4180041573151739329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/4180041573151739329'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2010/09/error-when-referencing-assembly-from.html' title='Error when referencing assembly from network share - Silverlight 4 (.NET Framework 4.0)'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8372279489364423861.post-1155459558532728042</id><published>2010-08-18T10:33:00.000-07:00</published><updated>2010-08-18T10:43:36.958-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>SQL Script to Create a Database</title><content type='html'>Note: You will need to modify lines 2 and 4 to adjust the file paths for the data and log files to land the database on your files system wherever you want it.  That should be the only modifications needed.&lt;br /&gt;&lt;br /&gt;----------------------------------------&lt;br /&gt;&lt;br /&gt;CREATE DATABASE [MyDatabase] ON  PRIMARY &lt;br /&gt;( NAME = N&#39;MyDatabase_data&#39;, FILENAME = N&#39;C:\SQL\Data\MyDatabase.mdf&#39; , SIZE = 1048576KB , FILEGROWTH = 10%)&lt;br /&gt; LOG ON &lt;br /&gt;( NAME = N&#39;MyDatabase_log&#39;, FILENAME = N&#39;C:\SQL\Log\MyDatabase.ldf&#39; , SIZE = 220160KB , FILEGROWTH = 10%)&lt;br /&gt;GO&lt;br /&gt;EXEC dbo.sp_dbcmptlevel @dbname=N&#39;MyDatabase&#39;, @new_cmptlevel=90&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;ALTER DATABASE [MyDatabase] SET ANSI_NULL_DEFAULT OFF &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET ANSI_NULLS OFF &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET ANSI_PADDING OFF &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET ANSI_WARNINGS OFF &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET ARITHABORT OFF &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET AUTO_CLOSE OFF &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET AUTO_CREATE_STATISTICS ON &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET AUTO_SHRINK OFF &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET AUTO_UPDATE_STATISTICS ON &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET CURSOR_CLOSE_ON_COMMIT OFF &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET CURSOR_DEFAULT  GLOBAL &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET CONCAT_NULL_YIELDS_NULL OFF &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET NUMERIC_ROUNDABORT OFF &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET QUOTED_IDENTIFIER OFF &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET RECURSIVE_TRIGGERS OFF &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET AUTO_UPDATE_STATISTICS_ASYNC OFF &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET DATE_CORRELATION_OPTIMIZATION OFF &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET PARAMETERIZATION SIMPLE &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET  READ_WRITE &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET RECOVERY SIMPLE &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET  MULTI_USER &lt;br /&gt;GO&lt;br /&gt;ALTER DATABASE [MyDatabase] SET PAGE_VERIFY CHECKSUM  &lt;br /&gt;GO&lt;br /&gt;USE [MyDatabase]&lt;br /&gt;GO&lt;br /&gt;IF NOT EXISTS (SELECT name FROM sys.filegroups WHERE is_default=1 AND name = N&#39;PRIMARY&#39;) ALTER DATABASE [MyDatabase] MODIFY FILEGROUP [PRIMARY] DEFAULT&lt;br /&gt;GO</content><link rel='replies' type='application/atom+xml' href='http://guru-dotnet.blogspot.com/feeds/1155459558532728042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://guru-dotnet.blogspot.com/2010/08/sql-script-to-create-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/1155459558532728042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8372279489364423861/posts/default/1155459558532728042'/><link rel='alternate' type='text/html' href='http://guru-dotnet.blogspot.com/2010/08/sql-script-to-create-database.html' title='SQL Script to Create a Database'/><author><name>Guru</name><uri>http://www.blogger.com/profile/10727538705021601002</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT_54C-_74vuC-bQR6ydweKkZFFvZUVr432Wxq2-TLBLAmNWaplIF_dOFG5iIv_pPw7_gjIVjVN7gvJ1r0bL05XBwd4gohWa22cpvIqhb8euzFMLAFlL_6MhHvWCI/s220/Guru_Profile_Pic.JPG'/></author><thr:total>0</thr:total></entry></feed>