Sunday, November 21, 2010

INSURANCE: STRUCTURED SETTLEMENT ANNUITY

Hello, I am here again with a new topic 'Structured Settlement Annuity' and today I am going to tell you what Structured Settlement Annuity is. The reason behind choosing this I have choosing this topic is that I have found many people asking about it over the internet, however; it is not related to IT but it is informative. So I did my R&D and decide to share this information you people.

Structured Settlement Annuity is more often a result of legal action which happens between parties where financial award is given to one party by another party as a result court action. Generally it is in the form of payments because a court has stated up so that based on the life span of the person who won this settlement usually from the car accident or some form cause physical injury.

After legal fee are paid whatever balance of the insurance companies settlement will go into annuity and insurance company will then pay the party a payment over time. Sometimes this can be a lump sum payment (large chunk of money given o the individual), however; more often it is monthly income stream designed to replace income that may have been lost as a result of the action, as a result of legal action. This is called a Structured Settlement Annuity.

This was the short introduction about Structured Settlement Annuity. I'll cover it in detail in my upcoming posts.

DOT NET FRAMEWORK: PROVIDERS IN DOT NET

It has always been a problem when it comes to understand provider in .Net and most of the people miss conceptualized it specially beginners, same was the case with me. So I decide to a post on it. I am writing this post for beginner and intermediate level audience.
What is provider in .Net implementation?
At grass root level provider is a dll (class library) which contains the some specific implementation. For instance:
ActiveDirectoryMembershipProvider this provider is used for authenticating user from active directory in domain environment. We refer to this provider by using its fully qualified name.
System.Web.Security.ActiveDirectoryMembershipProvider

SqlMembershipProvider this provider is used for user authentication from the database created by aspnet_regsql.exe command. We refer to this provider by using its fully qualified name.
System.Web.Security.SqlMembershipProvider


This dll knows the schema of the database created by aspnet_regsql.exe command. It also contains methods to authenticate user, create user, edit user, delete user etc.
When using these providers we don’t need to worry about writing code because Microsoft has already done that job for us. All we need to do is:

1.  Specify the provider and it configuration in web.config.
2.  Specify the provider in the ASP.Net login controls so that they can utilize this provider.

You can even write your own provider let’s say you want to authenticate users from Linux domain, so u can write your own provider which has the implementation for authenticating user from Linux domain.

There are several other providers shipped with .Net framework and all of them server different purpose.


Site map                     --   System.Web.XmlSiteMapProvider

Profile                         --   System.Web.Profile.SqlProfileProvider

Session state              --   System.Web.SessionState.InProcSessionStateStore
                                    --   System.Web.SessionState.OutOfProcSessionStateStore
                                    --   System.Web.SessionState.SqlSessionStateStore


So the rule of thumb is provider is nothing but a dll which server what it is written for. Hope this post help you people, have a nice day :).

Saturday, November 20, 2010

ASP.NET: CONFIGURING MEMBERSHIP PROVIDER FOR ACTIVE DIRECTORY

With the release of Visual Studio 2005 Microsoft introduce new login controls in .Net framework 2.0 so that developers do not need to write same code again and again. Microsoft has provided different providers for them to connect with different user data sources.

In this post I am going to discuss how to configure membership provider for active directory. It very common scenario that you need to create an intranet application and provide the functionality to the office employees to connect the application using domain user.

In order to connect to active directory you need to have active directory deployed. If you don’t have active directory deployed please referrer to installing active directory.

After installing active directory follow the following steps.

1.    Add the following connection string under </configSections> tag.

<connectionStrings>
      <add
                name="ADConnectionString"
connectionString="LDAP://techerz.com/CN=Users,DC=techerz,DC=com"/>
</connectionStrings>

The above connection string is pointing to our active directory and its name is ADConnectionString.

NOTE: if connection element right under the <configuration> tag following exception will occur

Parser Error Message: Only one <configSections> element allowed per config file and if present must be the first child of the root <configuration> element.

2.    Now add following membership provider under <system.web> tag.

<membership defaultProvider="DomainLoginMembershipProvider">
        <providers>
          <add name="DomainLoginMembershipProvider"
               type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
               connectionStringName="ADConnectionString"
               connectionUsername="techerz.com\administrator"
               connectionPassword="123"/>
        </providers>
      </membership>

In the above membership provider we mentioned defaultProvider as we can use more the one providers.
In the type we mentioned that we are going to use active directory membership provider by specifying ActiveDirectoryMembershipProvider assembly information.
Note that in the connectionStringName I have use the same name I mentioned while creating connection string.
In the connectionUsername and connectionPassword I am specifying that this is the service account I am going to use while connecting to the active directory.

NOTE:  in this example I have use techerz.com as domain name, you need to ‘techerz.com’ with your domain name. If you don’t know the domain name just ping the computer on which active directory is deployed.

Ping <computer name>

It’ll return fully codified domain name like [computer name].[domain name].com. use only [domain name].com




3.    Add a new web form and name it  Destination.aspx

4.    Now add the following markup on in the landing page of your website.

<asp:Login ID="lgnAppLogin" runat="server" DestinationPageUrl="~/Destination.aspx" />

You are done with connecting with active directory. Have a nice day :).

Wednesday, November 17, 2010

HOW TO INSTALL ACTIVE DIRECTORY ON WINDOWS SERVER 2008 R2

1. Go to run type dcpromo and press OK





After you press Ok, windows will start installing binaries, this may take some time


 2. When windows finished installing binaries. you would see a window like this, Click on Next



3. Click on Next



4. Put radio button on Create a new domain in a new forest, and than click on Next


 5. Now select a domain name like corp.contoso.com, in my case it is taqi.com, than click Next




After this windows will check your network to make sure that there is no domain name which you have selected.


6. Now Windows will assign you a NetBIOS name, but you can change it to whatever you want. Click on Next


 7. Now from the drop down menu select Windows server 2008 R2, and click on Next






8. Now put check mark on DNS Server, and than click on Next


9. Click on Yes


 10. You can change the default folder for your Database, Log files and SYSVOL, to change a folder click on Browse. If you don't want to change the folder than click on Next


11. Now Choose a strong password, and click on Next


12. We are almost done, on this page you can verify all the settings, if you think there is something wrong than you may click on Back and can correct them. If every thing is OK, than click on Next


 After you click Next, the wizard will start installing Active Directory.

(THIS CAN TAKE SOME MINUTES SO BE PATIENTS)





13. Upon successfully installation of Active directory you will see this window, click on Finish


14. You will be required to restart you windows, Save all your work and than click on Restart Now


Now You have successfully installed Active Directory

:)

Tuesday, November 16, 2010

WINDOWS XP: CONTROL PANEL SHORTCUTS

If you frequently use components in control panel, you might have noticed that every time in order to open an application you first have to open control panel than the application


Do you want a shorter way to access all these components, without open control panel ??


If so, than this post will be very useful for you. As today I am going to share some shortcuts.



Component Name
Icon
Shortcut

Accessibility Option



access.cpl

Add New Hardware



 Hdwwiz.cpl

Add and Remove Program


appwiz.cpl

Date and Time Properties


Control timedate.cpl

Display properties


Control desk.cpl

Fonts



Fonts

Internet properties


Inetcpl.cpl

Joystick properties


Joy.cpl

Keyboard properties


Main.cpl keyboard

Modem properties


telephon.cpl

Mouse properties


Main.cpl

Network properties


Ncpa.cpl

Regional Settings


Intl.cpl

Scanner and Cameras


Wiaacmgr.exe

Sound properties


Mmsys.cpl

System Properties


Sysdm.cpl

Monday, November 15, 2010

PAGEFILE : HOW TO DISABLE PAGE FILE

1. Go to run and type sysdm.cpl, and press OK




2. Now go to Adcance tab



3. Now Under Performance, Click on Setting



4. Now go to Advance tab
 

5. Under Virtual Memory click on Change


6. Now put radio button on No paging file, than click on Set, and than Click on OK


You will be required to restart your windows for the changes to take effect



Now You have Successfully disable Page file :)

Sunday, November 14, 2010

FTP: HOW TO UPLOAD CONTENTS ON FTP SERVER

1. Goto Run and type inetmgr and press OK


2. Now Expand local Computer, than expand FTP Sites, than right click on Default FTP Site and click on properties


You Should see the window like Below

3. Go to Home Directory tab


As you can see the default directory is c:\inetpub\ftproot

you can either put your contents in that directory, or you can manually choose a directory by clicking on Browse button.

4. Click on Browse to select directory


4. After you have choose a directory Click on OK

YOU ARE DONE :)

Friday, November 12, 2010

HOW TO INSTALL FTP ON WINDOWS XP

1. Goto Start click on Run and type appwiz.cpl and press OK


2. Now click on Add/Remove Windows components


3.  Now double click on Internet Information Service (IIS), this will open IIS components.


4. Now put check mark before File Transfer Protocol (FTP) Service.

(When you put check mark on FTP, windows will automatically put check mark on Common Files and Internet Information Services Snap-In. This is because these components are essential for FTP)


5. Click On OK and than Next.


After you click on Next, windows will start installing FTP.


During Installing Windows might ask you to provide some files, see the picture below.


So just browse to I386 folder, there you will be able to find the necessary file.

Upon completion, you should see like this, Click on Finish


Now You have successfully Installed FTP on your computer.

:)