TechBubbles

Archive for the 'Uncategorized' Category

Log Parser usage

Log parser is a free tool from Microsoft where developers and support technicians can use to parse the IIS logs, Event Logs and Active Directory logs. This tool helps the developers to find the root cause for the site related issues. This post explains common commands that we use to look for specific information in IIS logs.

The tool can be downloaded from here

The default location for IIS logs is %windir%\System32\LogFiles\W3SVC<SiteID>.

Read more

Related Posts:

  • No Related Posts
3 comments

Google Chrome Web Browser Features

Introduction

Today Google has released its first new open source browser named Google Chrome Beta. In this post I am going to explain about Chrome Features with examples.

Download link for Google chrome

First Look:

GoogleChrome   

Features

1. We got classic tab system which are appearing above the URL bar which is new style that you do not fine in other browsers which is new in chrome. A new tab button to add the tabs in the browser.

Tabs 

Under the tabs you had the forward, back buttons and Reloadbutton, bookmark button and address bar. Using the address bar you can navigate to site and can use it for searching the Internet.

2. You can find the following option by clicking the control the current page button

control

With New incognito window feature is like IE 8 private browsing feature where people can do private browsing and Google can not view what the user browsing.

 

3. You can see the source of the of the page from the developer and you can debug the java script through task manager you can view the CPU usage,memory and network bandwidth of the sites that you are browsing.

Developer 

task

4.  You can find the following options under  customize button.

settings

When you click on the History you can see all the sites you browsed and you can even search the history.

History

Similarly downloads feature

Downloads

 

By clicking the Google Chrome options you will see the following dialogue box

Options

on start up we can specify the pages to be open by adding the favorite pages. It restores the session like the option in fire fox. you can specify your default search engine google,yahoo and MSN.

Performance point of view browser is faster than Fire fox and IE  and pretty much complained to Web 2.0 standards.

Here is comparison report

02-09-2008-20-51-06

The best test of Google Chrome is to try it yourself.

Download link for Google chrome

Related Posts:

  • No Related Posts
2 comments

Web services security

Introduction

Securing a Web service is possible using WSE (Web Services Enhancements) for .NET. We can define the security requirements for both incoming and outgoing SOAP Messages this we can call it is a policy.

We can define the policy in two ways

1. Using WSE Settings 3.0 Tool

2. Adding the policy element to the XML file

Alternatively we can define the policy file either in development or deployment environment. It is more easy for an administrator to define a policy for an application when it is deployed using policy file.

Related Posts:

1 comment

WSE Policy element in the policy file

Web services enhancements 3.0

<policy> Element

specifies one or more SOAP Message requirements. A policy element can have one or more child elements.

<policy name="unique policy name">
    <anonymousForCertificateSecurity />
    <mutualCertificate10Security />
    <kerberosSecurity />
    <mutualCertificate11Security />
    <requireActionHeader />
    <requireSoapHeader name="" namespace="" actor="" />
    <usernameForCertificateSecurity />
    <usernameOverTransportSecurity />
  </policy>

name Required attribute which uniquely identifies the policy in policy file.

requireSoapHeader

Represents a security assertion that requires the presence of the specified SOAP header in the SOAP message.

Related Posts:

No comments

Extension Methods Feature in C# 3.0

It is one of the new feature introduced in C# 3.0 “As the name implies, extension methods extend existing .NET types with new methods.”

Here i am going to extend the String type to write an extension method.

Example Adding a IsValidEmailAddress method onto an instance of string class:

namespace Extensions

{

class TestProgram

{

     static  void  Main(string[] args)

     {

          string strEmployeeEmail  = “kalyan@techbubbles.com”;

          if (strEmployeeEmail.IsValidEmail() ) // IsValidEmail is extension method

{

 //Do something 

           }

     }

}

 

public static class Extensions

{

   public static bool

     IsValidEmail( this string s )

     {

       // Do something 

       return;

     }

}// this key word in front of the parameter makes this an extension method

}

The extension methods should be static methods in a static class with in same  namespace as shown above. The this keyword in front of the parameter makes an extension method.

Related Posts:

2 comments

Configuring ASP.NET 1.1 websites on IIS 7.0

If you want to run your existing ASP.NET 1.1 websites under .NET Framework v1.1  please read this post Configuring .NET Framework 1.1 on windows vista and follow the below steps.

1. Open IIS 7 by going through Control Panel/Administrative Tools and please select the ISAPI and CGI Restrictions option from IIS section.

IISMain

2. Allow the ASP.NET 1.1 in the ISAPI/CGI restrictions.

IISallow 

3. Make sure that your application pool should run in a 32-bit mode + v1.1 + classic mode.

Below are the commands using appcmd.exe tool which would do this.

appcmd.exe can be found under C:\Windows\System32\inetsrv.

  • appcmd apppool set /apppool.name:”ASP.NET 1.1” /enable32BitAppOnWin64:true
  • appcmd apppool set /apppool.name:"ASP.NET 1.1" /managedRuntimeVersion="v1.1"
  • appcmd apppool    set   /apppool.name:"ASP.NET 1.1" /managedPipelineMode:"Classic"
  • appcmd apppool set /apppool.name:"ASP.NET 1.1" /autoStart:true  (optional)

4. Alternatively you can also use this option to run your application pool under .NET FW v1.1

IISpoolconfig

Related Posts:

1 comment