Subscribe to Feed

Posts Tagged ‘Windows

There usually are several occasions where you might want to loop through all the controls in a container like a panel or a form etc.. looking for a particular type of control. For example, lets say you have a panel on your form which has several CheckBoxes in it, and you wish to find out [...]

If you are trying to troubleshoot problems occurred in you .Net application, especially if they are caused by ASP.net, you are now in luck. Microsoft recently released an extension for WinDbg that will allow you to diagnose high-memory issues, high-CPU issues, crashes, hangs and many other problems that might occur in a Asp.NET application. This [...]

When you create a new ATL project in Visual Studio 2010, IDE generated StdAfx.h does not include the ATL namespace by default. Because of this behavior, when you try to use any ATL API (Like CComBstr for example) in your main cpp file, the build will fail with several “Undeclared Identifier” errors. Any existing project [...]

You can use Microsoft.Web.Administration namespace to create a binding and set the certificate hash. Let us say you are trying to add a new binding to a website “MySite” with a new SSL certificate hash “MyCertHash”, here is what you have to do to achieve this
ServerManager serverManager = new ServerManager();
serverManager.Sites["MySite"].Bindings.Add("*.443:", MyCertHash, "MyCert");
The bindings member configures [...]

On some occasions you might want to use retail versions of Asp.Net JavaScript libraries while debugging your code. (For starters, when in debug mode in Visual Studio, you are not using the release versions, instead you are using debug versions of the libraries). To achieve this all you have do is set the ScriptMode property [...]

On some occasions you would want to run some code for every change in the configuration file, like reload the cache etc.. A change in web.config prompts the app domain to reload. So one should be able to look for application domain shutdown reason to verify a configuration change. Here is how you do can [...]

In a code behind file (like .cs file), one can use aliases for the namespaces like
using myAlias = System.MyNamespace;
But to achieve the same functionality in an .aspx page you can use something like this
<%@ Import Namespace="myAlias=System.MyNamespace" %>
Note: There should not be any spaces in the namespace value. For example you cannot use something like Namespce=”myalias [...]

Windows SDK installation fails with following error
A problem occurred while installing selected Windows SDK components.
Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information.
Please attempt to resolve the problem and then start Windows SDK setup again. If you continue to have problems [...]

If your RSS feeds re not updating properly in Internet Explorer 7 or Internet Explorer 8 (most probably in Windows Vista or Windows 7), there are couple of things you can try.
Problem Type1: Feed Synchronization Issue
Fir and fore most verify if the feed synchronization is corrupted. Here is how you do it.

Open a command prompt [...]

Problem Steps Recorder is a cool Windows 7 tool that can record your actions as a series of images.  Refer earlier post here for more information about the tool. In this post I will explain how to use this tool from a command line window (cmd.exe).
 

psr.exe [/start |/stop][/output <fullfilepath>] [/sc (0|1)] [/maxsc <value>]
[...]


 

 

Subscribe to Feed

Categories

Links

Dev Jobs