Skip to main content

Posts

Great EBooks available for free on Microsoft Technologies

Download content for ASP.NET, Office, SQL Server, Windows Azure, SharePoint Server and other Microsoft technologies in e-book formats. Reference, guide, and step-by-step information are all available. All the e-books are free. http://social.technet.microsoft.com/wiki/contents/articles/11608.e-book-gallery-for-microsoft-technologies.aspx?WT.mc_id=CIC_TWITTER_Azure%20Blogs_20130402_20130402054742_37166_WindowsAzure#OwnYourFuture  

Unable to remote desktop to Hyper-V VM

I recently tried to help someone remote desktop into Hyper-V VM as the person wasnt comfortable working with the resolution offered by the Hyper-V Console. However for some reason RDP was not working. I checked port no 3389 through netstat -na|more command and found that it was listening I checked that remote desktop was enabled however still RDP wasnt working Finally with the help a colleague i found that in the VM Settings-> a checkbox Enable virtual LAN identification was checked and this needed to be unchecked in order for the RDP to work. Why would you want to use RDP to connect to your VM? Well for a much better display resolution and seamless clipboard access  

DatePicker Control - CustomFormat

If you want to apply a custom format to the datepicker control in Windows Forms, an important thing to do is to set its Format property to "Custom" e.g. If you want to set the DatePickers custom date format to "mm/dd/yyyy" you need to write following in the designer's code- this .DatePicker1.Format = System.Windows.Forms. DateTimePickerFormat .Custom; this .DatePicker1.CustomFormat = "MM/dd/yyyy" ;  

Adobe Flash- Displays Green Band in Videos

I recently came across an irritating issue while watching videos on youtube. A green band intermittently appeared on the videos. After some research found this post reporting the bug on Adobe site. https://bugbase.adobe.com/index.cfm?event=bug&id=3158029 The solution is to access the adobe flash menu by right clicking on the video (played in adobe flash) Then click on settings and ensure that enable hardware acceleration is turned off Then restart the browser and the issue should be solved.

The server process could not be started

I was getting following issues in Windows 7 Attempts to start Explorer causes this error message: EXPLORER.EXE The server process could not be started because the configured identity is incorrect. Check the username and password. -- Attempt to start Control Panel results in the following dialog box: Window title: {some GUID} Message: {some GUID} The server process could not be started because the configured identity is incorrect. Check the username and password. The resolution was simply to restart the OS - windows installed and configured some updates post which the error disappeared

DOTNET - Tips and Tricks

Been a while since I blogged on dot net and cant wait any more- I would like to highlight a couple of things that can be very handy and you should be aware of if you are not- 1. Taking a site offline- When you make an ASP.NET website offline, many developers simply stop the website using IIS after informing the stake holders. A neater way of doing this is to place a file named "app_offline.htm" in the root directory of the website. This will force IIS to display contents of this page instead of any other page requested from your website. Note: The size of the file should exceed 532 KB. This is a know limitation 2. In Visual Studio while working on any file, if you need to indent the code, you can let Visual Studio do the job by using the shortcut Ctrl+K+D. Visual Studio automatically indents the code for you (assuming you have no syntax errors in your code) and it does a neat job. This tip can be very handy and save you lot of time. 3. Some important keyboar...

Annoying pop-ups

I was recently working on a tool which gave an annoying popup that some error has occurred and had to click "OK" to get rid of it and continue the process. This proved really cumbersome as I had to monitor the process too often to be able to get rid of the blocking popup. I looked up on the web and found an answer to this issue- http://stackoverflow.com/questions/5868801/tools-code-to-automatically-click-ok-on-dialogs I used BuzOf a very handy utility that can get rid of annoying popups - http://www.basta.com/Product.aspx?pid=13 Just teach BuzOf which window to handle and which button to click and it will make things easy for you. Until next post c ya Hitesh