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.

String feed Literals

String Literals:
      \n - new line
      \b - backspace
      \0 - null space
      \r - carriage return
      \a - alarm

[Note:]
     These can be used in the string for indented alignment and arrangement of the text
in the string.

One or more Activex Controls is not running....


Issue: 
One or more activex controls could not be displayed because either:
1. your current security settings prohibit running activex
controls on this page, or
2. you have blocked a publisher of one of the controls.
as a result, the page may not display correctly.

Soln: 
    i. Go-->Run-->regedit.exe
    ii. Go-->HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\
    iii. Find the key 'L' and take a backup.
    iv. Delete the extra the key and its subkeys with no mercy.
    v. Press 'F10' to refresh the registry.
    vi. Go-->Run-->services.msc
    vii. Cheers!! It works.