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 [...]
On some occasions, you wish to initialize your Asp.net application even before it receives its first hit to get rid of any over heads like creating application domain, initializing the .net runtime environment etc.. To achieve this you can use aspnet_compiler to pre-compile ‘in-place’, so that in effect the application is primed. Compiling ‘in-place’ the [...]
For the starters, Adaptive control behavior is control behavior that is customized for target devices. ASP.NET provides an adaptive architecture that allows key life cycle stages of a control to be intercepted and substituted with custom behavior. A common example of adaptive control behavior is adaptive rendering where an ASP.NET Web page is rendered specific [...]
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 [...]
AES encryption is supported for machine key encryption in ASP.NET 2.0 and later. For more info read MSDN article http://msdn.microsoft.com/en-us/library/w8h3skw9.aspx). Here are answers couple of common questions related to AES encryption in ASP.NET:
what is the supported key length? ASP.Net supports any valid AES key. (AES key length usually [...]
You can determine the Name or ID of hosting IIS application from with in the ASP.Net web site or Web application by using “HostingEnvironment” class.
HostingEnvironment class is defined in the System.Web.Hosting namespace.
He is how you get the name of the application and its physical path.
And to get the unique identifier for the Web application,
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>]
There is cool hidden feature/tool in Windows 7 that can record your actions as screen shots and save it as .MHT file. This is very helpful if your trying to do a blog post and record series of screen shots.
The tool: PSR.exe (Problem Steps Recorder: Record Steps to reproduce problem)
How to Launch it
Just click [...]