Wednesday 9 November 2011

Beware of recursion on getter/setter methods

Question Received:
      The Application is not responding apparently.

Solution:
     Check the code for any defects like recursion in the statement and methods.
     Defect I have found from the getter/setter methods.
     private string _mail;
     public string Mail
     {
          get
          {
               return _mail;
          }
          set
          {
              if(condition)
              {
                   Mail="mail@daemon.com";
              }
          }
     }
     public DataSource()
     {
          Mail="mail@daemon.com";
     }

[Note:]
The culprit is,
       In setter method, Mail="mail@daemon.com" makes it call the setter method recursively.

How to add the extender to Silverlight TextBox

Question Received:
         To add the extender to validate any value typed in the TextBox.

Solution:
        i. Create DataSource.cs which contains the getter/setter methods for evaluating the value in the TextBox.
        ii.Integrate it with the Page.xaml.cs using instance to point the DataContext in the LayoutRoot.
        iii.Bind the Data to the necessary controls (ie.,TextBox).
        iv.Throw the error on exception and make it to be caught from 'LayoutRoot'.
        v. Add the necessary handler in the 'page.xaml.cs'.
        vi.However, all the handlers will be coded in the 'page.xaml.cs'.
        vii.Alright, Compile and execute it will be working.
        viii.Download the detailed document from, ExtenderToSilverLightControls.docx.
        ix.Download the source from, SilverlightDataValidation.

[Note:]
    --> Make sure that the DataSource to initialize the value, that will not throw the error on Page_init() or page_Load().
    --> If so, silverlight application will not be starting.

Deploying the Web Application or Web Service in IIS.

Question Received:
       How to publish the Web Components into the IIS Server 7.0
from 'MicrosoftVisualStudio2010'.

Solution:
      i. Build the Entire Project and solution.
      ii.Right-Click on the project, select 'Build Deployment Package'.
      iii.Right-Click on the project, select 'Publish'.
      iv.Select 'FileSystem' to deploy.
      v. Browse for Target Location.
      vi. Click 'OK' to publish.
      vii.Go to target location and copy the path.
      viii.Start IIS Manager 7.0 ('inetmgr.exe')
      ix.Right-Click 'DefaultWebSite'-->Add Application.
      x. Give the Application Name and TargetPath.
      xi.Browse the Application from InternetExplorer
      
    That's it. Finished.
[Note:] Best Practices,
              --> Choose 'Delete the files in the targetFolder prior to publish'.
              --> Conform building the project and solution prior to publish.

Adding the 'YesNo' MessageBox in the ASP.NetWebApplication

Questions Received:
       How to add the 'YesNo' MessageBox in the ASP.Net WebApplication.

Solution:
       In the 'default.aspx.cs' page,
        private void callMessageBox()
        {
            uscMessageBox.AddMessage("Are you sure that you want update the database?", 
[NameSpace].MessageBox.enmMessageType.Attention, true, true, string.Empty);
        }

        public void MessageAnswered(object sender, [NameSpace].MessageBox.MsgBoxEventArgs e)
        {
            if (e.Answer == [NameSpace].MessageBox.enmAnswer.OK)
            {
            }
            else
            {
            }
        }
      
        In the 'page_load()' method,
             Add, uscMessageBox.MsgBoxAnswered += MessageAnswered; //Event HandlerCaller
       
[Note:] The UpdatePanel will be rendered after the method ends. Parent page control will be lost.
           when the UpdatePanel is displayed.

Tuesday 8 November 2011

How to add the MessageBox in the ASP.Net WebApplication

Question Received:
       How to add the popup messageBox in the ASP.Net Web Page.

Solution:
       First, Add a new panel over the current page. Panel should hold the
messageBox. It will be refreshed or updated whenever it renders the
messageBox.
       In the 'default.aspx' page, Register the Control Page by,
       <%@ Register 
                      Src="~/MessageBox.ascx" 
                      TagName="uscMsgBox" 
                      TagPrefix="usc" %>
       <asp:Content 
                      ID="BodyContent" 
                      runat="server" 
                      ContentPlaceHolderID="MainContent">
             <usc:uscMsgBox 
                            ID="uscMessageBox" 
                            runat="server" />
       </asp:Content>
       In the 'default.aspx.cs' page, Use the methods like,
        --> uscMessageBox.AddMessage(message [NameSpace].MessageBox.enmMessageType.Error);
        --> uscMessageBox.AddMessage(message [NameSpace].MessageBox.enmMessageType.Info);
       Add the App_Themes with default.css, icons.

       Now compile, It will work.
If Need, You can give the handler to 'OK' Button.
       i. First, write control code in the 'MessageBox.ascx.cs' page.
               protected void btnOK_Click(object sender, EventArgs e)
               {
                  if (ClickedOK != null)
                  {
                      ClickedOK(this, new MsgBoxEventArgs(enmAnswer.OK, Args));
                      Args = "";
                  }
               }
       ii. Add the Handler Event to the 'default.aspx.cs' page.
               uscMessageBox.ClickedOK += OKClick;
       iii. Write handler in the 'default.aspx.cs' page.
               public void OKClick(object sender, [NameSpace].MessageBox.
MsgBoxEventArgs e)
               {
                   if (confirmContinue)
                   {
                        confirmContinue = false;
                        Response.Redirect("default.aspx");               
                   }
               }
        iv. Please make changes in the 'Message.ascx.cs' page.
            OnPreRender()
                //ModalPopUpExtender_OKButton
                     mpeMsg.OkControlID = "btnD2";


  Download source from, YaBu.MessageBox.zip
[Note:] Do above four steps if You want any handler to 'OK' Button.

How to break the connection string into elements

Question Received:
        How to split the connection string into individual elements
like InitialCatalog, DBName, UserName, Passwd..

Solution:
       To break the conn. String, use the SQLConnectionBuilder as,
        SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder("");
        builder="AnyConnectionString";
        String DBName = builder.IntialCatalog.ToString();

Extender to any control in the WebApplication

Question Received:
       To add an extender to any control in the web page.

Solution:
       Add it like,
        <asp:RegularExpressionValidator
                                        ID="RegExValidatorCommonGroup"
                                        runat="server"
                                        ControlToValidate="anyTxtBox"
                                        ErrorMessage="Requires valid Text"
                                        ValidationExpression="(Expression_)+[1234]$" 
                                        ValidationGroup="CommonGroup">
       </asp:RegularExpressionValidator>
       <asp:TextBox
                       ID="anyTxtBox"
                       runat="server"
                       Width="250px"
                       ValidationGroup="CommonGroup">
      </asp:TextBox>
     <asp:Button
                   ID="AnyBtn"
                   runat="server"
                   Text="OK"
                   onclick="AnyBtn_Click"
                   ValidationGroup="CommonGroup">  
    </asp:Button>

All Controls in the same group will be triggered for validation.
[Note:] Please do care about the ValidationGroup. Else, All controls in the
page will be triggered for validation.

How to give style to different components in the ASP

Question Received:
        How to give style to the components implicitly without
giving it explicitly in the CSS file.

Solution:
       It can be marked up in the header content as,
    <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .styleForComponent
        {
            position: absolute;
            right: 4px;
            width: 17px;
            height: 18px;
        }
    </style>
    </asp:Content>
    It can be used in the asp BodyContent as,
    <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="BodyContent">
    <table style="styleForComponent">
    </asp:Content>

How to register the component or server page

Question Received:
        How to use the AjaxControlToolkit or Control WebPages into ActiveServerPages(.aspx)

Solution:
       First, Register the controls into asp by,
       For any Toolkit,
           <%@ Register 
                           Assembly="AjaxControlToolkit" 
                           Namespace="AjaxControlToolkit" 
                           TagPrefix="asp" %>
       For any Control page,
           <%@ Register 
                           Src="~/MessageBox.ascx" 
                           TagName="uscMsgBox" 
                           TagPrefix="usc" %>

TagName:
      'TagName' is the class that implements the necessary methods.
       For Toolkit,
                  Menu, TabContainer, TabPanel,... are predefined
       For Control page,
                   It is the object created to class implemented in the ctrl page.
              Methods should be implemented for using it explicitly.

Wednesday 2 November 2011

Download File Synchronously

Questions Received:
        How to download a file synchronously.

Solution:
     The following is the logic to download a file from Web URL,      
        webClient webClient = new WebClient(); 
        webClient.DownloadFile("http://mysite.com/myfile.txt", @"c:\myfile.txt");
 
[Note:] Reference Namespace,                  
          using System.Net;

Download File Asynchronously

Questions Received:
          How to download a file asynchronously using C sharp Client.



Solution:
      Here is the business logic for download a file from website URL,

        private void btnDownload_Click(object sender, EventArgs e)
        {
            WebClient webClient = new WebClient();
            webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed);
            webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged);
            webClient.DownloadFileAsync(new Uri("http://education.vnu.edu.vn/eng/pic_upload/1252901905~Master_Mathematics.doc"), @"d:\Files.doc");
        }

        private void ProgressChanged(object sender, System.Net.DownloadProgressChangedEventArgs e)
        {
            progressBar.Value = e.ProgressPercentage;
        }

        private void Completed(object sender, AsyncCompletedEventArgs e)
        {
            MessageBox.Show("Download completed!");
        }

[Note:] The Namespaces are,
                            using System.Deployment.Application;
                            using System.Net;

Wednesday 19 October 2011

To Rename the nameSpace(FolderContainer), ProjectFile, solutionFile constructively

Question Received:
       How to Rename the nameSpace(FolderContainer), ProjectFile,
solutionFile undestructively.


To Rename the nameSpace(FolderContainer), 
ProjectFile, solutionFile
   i. Rename the SolutionFile.
   ii.Open the VS SolutionFile in the MSVisualStudio
   iii.Rename the projectFile.
   iv.Build the solution.
   v. Rename the 'cs' Files, if Yo need
   vi.Re-Build the solution
   vii.Finally, Build the Entire solution once.
   viii.For renaming the namespace, unload and remove the project
        from the solution.
   ix. Rename the projectFolder(nameSpace)
   x. GoTo MSVisualStudio, Add-->ExistingProject-->
      BrowseForProjectFile-->'OK'
   xi.Re-Build the Solution.
   xii.Cheers, It's done.

[Note:] Follow the steps in order, and taking the backup of Entire Project is more advisable.

Thursday 13 October 2011

Settings the controls in Windows Form

Questions Received:
        How to set/unset the controls in the Windows Form

Solution:
        To find the required using the accessible name of the controls, use the 'find' method in
Form.Controls.find().
        public static void set(Control form,string ctrlName,string DBName)
        {
            foreach (Control ctrl in form.Controls.Find(ctrlName, true))
            {
                if (ctrl is CheckBox)
                {
                    CheckBox chk = (CheckBox)ctrl;
                    if (chk != null)
                    {
                        chk.Checked = true;
                    }
                }
                if (ctrl is TextBox)
                {
                    TextBox tb = (TextBox)ctrl;
                    if (tb != null)
                    {
                        tb.Text = DBName;
                    }
                }
            }
        }

[Note:] Assume, Form-->this, ctrlName-->AccessibleCtrlName, DBName-->TextFieldEntry
           You can use this function to manage different controls in the Form

Tuesday 11 October 2011

rmdir command for removing directories[Force Mode]

Questions Received:
        I cannot delete a folder which says, "Access is denied" while trying to delete it thru
GUI mode or thru Command Prompt.

Solution:
       Change the permissions for directories by using the commands,
                           * cacls.exe
                           * icacls.exe
Cacls.exe
   [NOTE:] i. Cacls is now deprecated, please use Icacls.
                ii. Wildcards can be used to specify more than one file in a command.
                    You can specify more than one user in a command.

Description:
        Displays or modifies access control lists (ACLs) of files
Syntax:
 CACLS filename [/T] [/M] [/L] [/S[:SDDL]] [/E] [/C] [/G user:perm]
        [/R user [...]] [/P user:perm [...]] [/D user [...]]
    filename      Displays ACLs.
    /T            Changes ACLs of specified files in
                  the current directory and all subdirectories.
    /L            Work on the Symbolic Link itself versus the target
    /M            Changes ACLs of volumes mounted to a directory
    /S            Displays the SDDL string for the DACL.
    /S:SDDL       Replaces the ACLs with those specified in the SDDL string
                  (not valid with /E, /G, /R, /P, or /D).
    /E            Edit ACL instead of replacing it.
    /C            Continue on access denied errors.
    /G user:perm  Grant specified user access rights.
                  Perm can be: R  Read
                               W  Write
                               C  Change (write)
                               F  Full control
    /R user       Revoke specified user's access rights (only valid with /E).
    /P user:perm  Replace specified user's access rights.
                  Perm can be: N  None
                               R  Read
                               W  Write
                               C  Change (write)
                               F  Full control
    /D user       Deny specified user access.

iCacls.exe
 
ICACLS name /save aclfile [/T] [/C] [/L] [/Q]
    stores the DACLs for the files and folders that match the name
    into aclfile for later use with /restore. Note that SACLs,
    owner, or integrity labels are not saved.

ICACLS directory [/substitute SidOld SidNew [...]] /restore aclfile
                 [/C] [/L] [/Q]
    applies the stored DACLs to files in directory.

ICACLS name /setowner user [/T] [/C] [/L] [/Q]
    changes the owner of all matching names. This option does not
    force a change of ownership; use the takeown.exe utility for
    that purpose.

ICACLS name /findsid Sid [/T] [/C] [/L] [/Q]
    finds all matching names that contain an ACL
    explicitly mentioning Sid.

ICACLS name /verify [/T] [/C] [/L] [/Q]
    finds all files whose ACL is not in canonical form or whose
    lengths are inconsistent with ACE counts.

ICACLS name /reset [/T] [/C] [/L] [/Q]
    replaces ACLs with default inherited ACLs for all matching files.

ICACLS name [/grant[:r] Sid:perm[...]]
       [/deny Sid:perm [...]]
       [/remove[:g|:d]] Sid[...]] [/T] [/C] [/L] [/Q]
       [/setintegritylevel Level:policy[...]]

Say,
To delete the victim folder,
       cacls <FilePath> /T /C /E /G User:Perm
Example, cacls "C:\Folder\*.*" /T /C /E /G User:<F|N|RX|W|R>
And, rmdir /s /d "C:\Folder"

rmdir command for removing directories

Questions Received:
       Removing the directories thru GUI takes much downtime.

Solution:
       Remove the directories thru the command prompt in quiet mode.



'rmdir' command
       Removes (deletes) a directory.

       RMDIR [drive:]path
       RD [drive:]path

Windows 2000 and Windows XP Syntax.

RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path
/S    Removes all directories and files in the specified directory in addition to the directory itself. Used to remove a directory tree.
/Q    Quiet mode, do not ask if ok to remove a directory tree with /S.

Examples

rmdir c:\test

Remove the test directory, if empty. If you want to delete directories that are full, use the deltree command or if you're using Windows 2000 or later use the below example.

rmdir c:\test /s

Windows 2000, Windows XP and later versions of Windows can use this option with a prompt to permanently delete the test directory and all subdirectories and files. Adding the /q switch would suppress the prompt.

[Note:] Run the command as Administrator, if needed.

Delete the files thru Command Prompt

Questions received:
        Deleting the file thru GUI takes much downtime.

Solution:
       Deleting the files thru the command prompt makes it passive and quiet.


'DEL' Command
       Delete one or more files.

Syntax
      DEL [options] [/A:file_attributes] files_to_delete

Key
   files_to_delete : This may be a filename, a list of files or a Wildcard

options
   /P  Give a Yes/No Prompt before deleting.
   /F  Ignore read-only setting and delete anyway (FORCE)
   /S  Delete from all Subfolders (DELTREE)
   /Q  Quiet mode, do not give a Yes/No Prompt before deleting.

   /A  Select files to delete based on file_attributes

file_attributes:
   R  Read-only    -R  NOT Read-only
   S  System       -S  NOT System
   H  Hidden       -H  NOT Hidden
   A  Archive      -A  NOT Archive

Wildcards: These can be combined with part of a filename

   *  Match any characters
   ?  Match any ONE character

Examples:

To delete HelloWorld.TXT
DEL HelloWorld.TXT

To delete "Hello Big World.TXT"
DEL "Hello Big World.TXT"

To delete all files that start with the letter A
DEL A*

To delete all files that end with the letter A
DEL *A.*

To delete all files with a .DOC extension
DEL *.DOC

To delete all read only files
DEL /a:R *

To delete all files including any that are read only
DEL /F *

[Note:] Run these commands as Administrator, if needed.

Saturday 1 October 2011

Unblock Wupload in India


Unblock Wupload Blocked In India

Hello all users, as you know that many Internet Service Providers in India are agreed to block file sharing sites in order to prevent piracy as much as possible so I thought of sharing this info with you This topic concerns all wupload.com users form India using BSNL or Tata Photon as their Internet Service Provider. As most of you have noticed, Wupload is not opening. But if you run a check with isup.me, you will find that the site is perfectly working.


What's the solution? 
Wupload is working fine. All you need to do is change your PC or Laptop's DNS server to Google's DNS server i.e. 8.8.8.8 and 8.8.4.4. Once done, you'll find that Wupload is working absolutely fine. Huge thanks to awaiz007.
 How to change the DNS? (Source)

1) Open Network Connections. Start menu > My Computer > My Network Places > View Network Connections.

2) Locate the network connection that is associated with your Internet connection. This may be labeled something like Local Area Connection or Wireless Network Connection. If you have more than one connection to choose from, be sure you determine the right one before proceeding.

 3) Right click on the appropriate connection and select Properties.

 4) In the list that appears under the General tab, double click on Internet Protocol (TCP/IP).

 5) In the window that appears, you want to select the option to Use the following DNS server addresses.

 6) Enter 8.8.8.8 in Preferred DNS Server.

 7) Enter 8.8.4.4 in Alternate DNS Server.

 8) Press OK out of all windows until you are back to the Network Connections window.

    Now open your preferred web browser to find out that Wupload is working!

Reset Form Fields to default NULL Values

Question Received:
         How to reset form fields and controls thru programming?

Solution: 
         To reset the form controls and fields with NULL (or) Empty String,
          Call function ResetFields(this) from any function,
              public static void ResetFields(Control form)
             {
                   foreach (Control ctrl in form.Controls)
                  {
                       if (ctrl.Controls.Count > 0)
                       ResetFields(ctrl);
                       Reset(ctrl);
                  }
             }
             public static void Reset(Control ctrl)
            {
                  if (ctrl is TextBox)
                  {
                       TextBox tb = (TextBox)ctrl;
                       if (tb != null)
                      {
                           tb.ResetText();
                      }
                  }
                  else if (ctrl is ComboBox)
                  {
                       ComboBox cb = (ComboBox)ctrl;
                       if (cb != null)
                      {
                           cb.ResetText();
                      }
                  }
                  else if (ctrl is CheckBox)
                  {
                       CheckBox chk = (CheckBox)ctrl;
                       if (chk != null)
                       {
                           chk.Checked = false;
                       }
                  }
                  else if (ctrl is RadioButton)
                  {
                       RadioButton rb = (RadioButton)ctrl;
                       if (rb != null)
                       {
                           rb.Enabled = true;
                       }
                  }
             }


Tuesday 27 September 2011

To debug cmd (or) bat files

Question Received:
       To debug the cmd (or) bat files with line by line debugger.

Solution:
        Running Steps V1.1 is a debugger tool that executes the batch files thru
Debugger IDE. Download the utility from the site,
        Running Steps V1.1

[Note:]  Add the macro for debugging the batch files thru IDE.
     

Thursday 22 September 2011

How to enable JavaScript in Internet Explorer


Issue:
    In Internet Explorer, the error 'JavaScript Enabled Browser required' received when loading the Oracle Applications.

Solution: 
    In Internet Explorer, Go to (Tab)Tools-->(Tab)Security-->(Button)Custom Level-->(Category)Scripting-->Enable Active Scripting.
    Then, restart the browser, it works.

Tuesday 20 September 2011

To Start, Stop, Suspend a process in C Sharp

Question received:
      How to start, stop, and suspend a process from c sharp client.

Solution:
      Start process
          System.Diagnostics.Process processObject =
                          Process.Start(<FullPathOfProcess>,<ProcessArguments>)
      Stop process
          System.Diagnostics.Process.Kill(<processObject>)
      Suspend process
          Thread.Sleep(<TimeInMilliseconds>)

[Note:] Add necessary dlls for above classes mentioned while doing for the client.

Installation Tips

Issue:
    To guide the installation.

Steps:
    i. If setup is multiple files like (Disk 1 Disk 2 Disk 3….), we can put it in the 
    common folder. So that the installer will not prompt for the new CD during installation.
    ii. JDK is available in the folder wherein the bin folder exists.
    iii. When you uninstall a software which is not having the entry in the 
    ‘Program and Features’, You need to delete that package/folder and clean the 
    related component. Fix registry issues or values with ‘CCleaner’. If issues remains
    persisting, go Registry Editor by typing the command ‘regedit’, manually clean the 
    component entry. But You need to backup the changes before changing the Registry.

How to extract and run a jar file:


Steps:

   i. Install the JDK in the Machine
   ii. Set the path of JDK to JAVA_HOME
   iii. Set JAVA_HOME=”address of the folder wherein  ‘bin’ folder exists”
   iv. Check whether it has been created in Environment Variables. Or, you should manually enter path
   for the JAVA_HOME on that.

   v. Check this by the command
      echo %JAVA_HOME%
   vi Check whether the JAVA is configured by the command.
       %JAVA_HOME%\bin\java –version
       %JAVA_HOME%\bin\java –jar <executable jar file>

[Note:]
     Run the command prompt with administrative privileges.

Saturday 17 September 2011

Internet Connection is not established

Issue: 
     Internet connectivity is lost in Internet Explorer but in Mozilla Firefox, is working.

Scenario:
     In Hyper-V Manager, I have added two network adapters with same Local Area Connection(LAN) .


Soln:
     Disable one of the Adapters makes the Internet Explorer to get its Connectivity.



Adding Network Adapter to Virtual Machine(Hyper-V)

Issue: 
    Local Area Connection is not detecting in the Virtual Machine.
    To add the Virtual Network, Network Adapter to the Virtual Machine thru Hyper-V Manager.

Soln:
    i. Creating New Virtual Network
            * Start Hyper-V Manager.
            * In the Right-Pane, select Virtual Network Manager
            * To Create New Connection, Go to New Connection, give details needed-->select the existing LAN, then confirm the action.
            * To find the existing Connection, Go--><Virtual Network>(Left Pane),edit the settings(if needed).
    ii. Adding the Network Adapter to Virtual Machine:
            * Start the Hyper-V Manager.
            * In the Right-Pane, select 'settings' for the Virtual Machine.
            * In the Left-Pane, Go to AddHardware, select any Network Adapter and confirm.

Now start the Virtual Machine, Go to Start-->Control Panel-->Network Connections-->Select a LAN.
Then, go for properties-->set the IP address to your virtual machine.
    iii. Ping the  network to check the LAN is available.
    iv. Adding the machine to domain.
            * Right-Click 'My Computer', select 'Manage'-->Local Users and Groups-->Administrators
            * Add the administrator users for this virtual machine.
            * Go to Users, to add the Local Users from the machine-centric domain.
    v. Check the Remote access.

Friday 16 September 2011

Oracle apps: Failed to connect to the server

Issue:
    FRM<errorcode>:  Failed to connect to server, IOException, Negative Content Length.

Soln:
    The culprit is the settings of Internet Explorer 8. The XSS Filter is preventing the forms from loading
So in IE8, Go to InternerExplorerMenu-->(Options)Tools-->(Tab)Security-->(Button)CustomLevel-->(Category)Scripting-->Disable XSS Filter.
    Restart the browser(if needed) and reload the oracle apps
    Cheers!! Forms should be loading.

Updating the AMD BIOS

Updating the BIOS for make the machine with Hyper-V
Requirements:
 * Asus motherboard(To care)
 * Intel Motherboard(Fine)

For checking the compatibility of our machine to Hyper-V
Download this utility,

Download CPU Information Utility

ASUS Update 7.18.03:
Click this link, ASUS-Update-Utility-Download

Description:
An utility that allows you to save, manage and update the motherboard BIOS

The ASUS Update is an utility that allows you to save, manage and update the motherboard BIOS in Windows environment.

The ASUS Update utility allows you to:

· Save the current BIOS file
· Download the latest BIOS file from the Internet
· Update the BIOS from an updated BIOS file
· Update the BIOS directly from the Internet, and
· View the BIOS version information.

In order to install and run ASUS Update, you need an Asus motherboard in your system.

Rules for Safe BIOS update:
1. For safety reasons, always use the most updated BIOS utility!
2. Do not overclock the system/CPU during BIOS update!
3. Load "Setup Default" in BIOS menu before BIOS Update.
4. Make sure you have "Administator" privilege on your Windows system (WinNT4/2000/XP).
5. Close all application programs under Windows.
6. Disable any existing Anti-Virus applications in ASUS-Update-Utility-Download the system.
7. Reboot the PC after the BIOS update is complete.
8. Switch on the PC and load "Setup Default" in BIOS again.


[Note:] All utilities needs administrator privileges. So run the utilities as administrator.

Tuesday 13 September 2011

creating and consuming Web Service

Steps:
     i. Start the new Web Service project.
     ii. Create the web methods and private stubs which can be accessed only by the web service.
     iii. Build the Service in the release mode.
     iv. Host the Service in the IIS Web Server(IIS 7.0)
     v. Host by,
               a. Go-->Run-->inetmgr.exe
               b. Go--><Machine Name>-->Sites-->DefaultWebSites
               c. Right Click on DefaultWebsites, select 'AddApplication'
               d. Give WebService name and Path where the 'bin' folder is located
               e. Click OK.
               f. Refresh and start the IIS Web Server once.
     vi. To check whether the service is hosted properly, Go to hosted application in IIS Server.
               a. Go-->Sites-->DefaultWebsites--><ServiceName>
               b. Right Click and refresh(if needed), select 'Browse' it will redirect to web service.
     vii. If still not working, check default sites or document,
           for actual service say, service.asmx having business logic(center pane).
     viii. Else, add it manally to default documents.
     ix. Now, Web Service is ready.
Building a wrapper around it, say 'Consumer' for web Service:
     Wrapper for web service can be,
              * Windows application
              * Web application
     Thru Windows application:
              a. Add the Web Service to web reference, use it in the windows client.
     Thru Web application:
              a. Add the Web Service to web reference, use it the web client.

[Note:]
      Publishing the web service (say, release mode) to the respective repository is a good practice.
To Publish the Web service to a common resp. directory,
      i. In MS Visual Studio 2008, Go-->Build-->Publish <Project Name>
      ii. Follow the prompt, lead you to publish the service in the common directory.