Windows 10 says "Hello World" starting on 29th July, 2015. It is in the buzz since few months now and topping the charts everywhere on the release day and since then. I am sure most of you are now using brand new OS release from Microsoft - Windows 10. Reading this post on Microsoft Edge, newest browser that comes with Windows 10 release. All of us who decided to upgrade are excited about the new and better start menu, no more full screen store apps and redesigned control panel. Not to forget explorer and command prompt. Once you are on Windows 10 and decide to stay with it and not roll-back, one thing I recommend you should is claim your free space back. While you were upgrading or did a manual upgrade to Windows 10, the upgrade process should have created few hidden folders in your System drive » Read more

 Jsinh        

While I was working on some code today and found that some NuGet packages where out of date. So I went to update tab in Manage NuGet packages window and updated all of them. MySql.Data package (not important which package, just an example) was also updated in that from version 6.7.8 to current / latest (6.9.6). I tried to run the application to test the updates made in referring packages. I encountered following error: TypeInitializationException was unhandled An unhandled exception of type 'System.TypeInitializationException' occurred in Unknown Module. Additional information: The type initializer for '[Application Name]' threw an exception. Looking at this exception, it doesn't seems to be obvious what is going wrong here. There isn't even option for "View details". Many of you may get stuck on this and spent hours before you figure out that the AssemblyBinding.dependentAssembly.bindingRedirect are » Read more

 Jsinh        

Did you encountered following exception / error when trying to run ASP.NET MVC web application? The view must derive from WebViewPage, or WebViewPage or Type 'ASP._Page_Views__ViewStart_cshtml' does not inherit from 'System.Web.WebPages.StartPage'. I encountered while I was playing with MVC 5 (applies to MVC 3 and 4 also) application. Every razor page should inherit from System.Web.Mvc.WebViewPage. You can resolve this issue by adding following line at the top in each view razor (*.cshtml) page: @inherits System.Web.Mvc.WebViewPage and add following line at the top of _ViewStart.cshtml : @inherits System.Web.Mvc.ViewStartPage or you can add a web.config file and add following (in root of Views folder where the Razor pages reside) <?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="system.web.webPages.razor" type="System. » Read more

 Jsinh        

Small footprint Windows Server Images is not a myth anymore. Few weeks back Microsoft announced the availability of Windows Nano Server preview coming out as part of Windows Server 2016 Technical Preview 2. Nano Server as they call at the moment is a re-engineered, small footprint, hosting oriented, command-line only, minimal install option for Windows Server specifically designed for hosting applications, services and routines in cloud and data-centers. This one is specifically small in size and has only minimal required things to start with. I will walk you through setting up and installing Windows Nano Server in VM on Hyper-V Note: This guide is tested, works and applies to Windows Server 2016 Technical Preview 2. This may or may not work for any other version / variants of Windows Server or Nano. To obtain source image for Windows Nano Server you need to download latest build for Windows Server 2016 (current » Read more

 Jsinh        

Pretty exciting times for all developers. Microsoft is changing the course on how you can build application and not worry what platform you choose to achieve that. Every few months and at sessions / conference we see Microsoft teams making Frameworks, Libraries and Tools open source. As "No one is left behind, we are hearing you" is in the air you breath. .NET development / execution stack is reaching OS X and Linux. This love is growing more and more every day. In past we saw few eye catching deals like ASP.NET 5 / MVC 6 and "Develop using your favorite editor" - OmniSharp, today at Microsoft Build 2015 developer conference Visual Studio Code Editor was announced. One more edition of Visual Studio in the belt. This one is particular and different from the regular Visual Studio IDE that you use. It is Microsoft's offering that can be » Read more

 Jsinh