Tip #50: Did you know…How to absolute position the controls in Visual Studio Designer?

Absolute positioning control(s) in the designer can seem confusing at first until you learn the visual cues. You can do one of the following two possible actions by dragging the control in the designer. Re-parent the control Change the controls position. When you drag the body of the control, you are changing the parent of…

5

Tip #48 Did you know… that IIS7 application pool’s “Ping” settings may affect IIS7 based website or application debugging?

IIS7 app pool by default only can only have 1.5 minutes window for a non-responsive application.  During IIS web application or website debugging time, we may want to change its corresponding application Pool advanced setting’s “Ping Maximum Response Time” to a time much longer, or turn off “Ping Enabled” setting.   Xinyang Qiu SDETII |…

7

Tip #47 Did you know… that front page script remote debugging requires turning off IE’s Enhanced Security Configuration in windows 2003 and windows 2008?

When doing remote front page debugging using visual studio 2008 in windows 2003 or windows 2008, one might found the breakpoint in the script cannot be hit.  A likely reason is that we need to turn off Internet Explorer Enhanced Security Configuration on the machine.   To turn off the IE Enhanced Security Configuration in…

3

Tip #45: Did you know…How to change the DynamicData folder location?

ASP.NET Dynamic Data is a framework that lets you create data-driven ASP.NET Web applications easily. It does this by automatically discovering data-model metadata at run time and deriving UI behavior from it. By default for a Dynamic data Web Application the dynamic data folder is created in the root folder. Your application might require it…

2

Tip #44: Did you know…How to view the Project File while still in Visual Studio?

If you are developing a web site using the Web Application Project model, then you know that the Project File is an integral part of this model.  In order for a file to be considered part of the Web Application Project, it must be included within the project file.  This is also true of Assembly…

2

Tip #43: Did you know… The way you register your IHttpModule depends on the request processing pipeline in which your module will run?

To get your custom IHttpModule up and running you need three simple things: Source code compiled into dll Registration in .Net Registration in IIS config system Suppose, you have a simple module that raises an event with HttpContext as an argument before authentication happens, on BeginRequest: public void Init(HttpApplication context) { context.BeginRequest += new System.EventHandler(context_BeginRequest);…

5

Tip #42: Did you know… ConfigurationEditor allows you to generate C#, JavaScript or AppCmd script to update configuration?

If you want to write a script to add new or update existing configuration, no matter what configuration file it belongs to (e.g. administration.config, applicationHost.config or website or application specific web.config), you can install Configuration Editor, which is a part of the IIS Admin Pack and use “Generate script” feature, just of its numerous great…

5

Tip #41: Did you know… establishing a remote connection to a IIS server with self-issued certificate will require a certificate validation delegate?

Either through WMSvc or through your own script, whenever you try to establish a connection with a remote server, which doesn’t provide a trusted certificate you need to provide a delegate for this certificate validation check to validate untrusted certificates. The signature for this delegate is as follows Namespace: System.Net.Security Assembly:  System (in System.dll) public…

4