Items filtered by date: December 2014

Thursday, 25 February 2010 12:34

COM+ and DCOM Troubleshooting

DCOM. I'm sure it sounded like a good idea at the time, but in the real world it generates a lot of headaches. Here's some common DCOM, COM+ and WMI errors along with some fixes. There's also some scripts and registry keys at the end of article to help automate the fixes.


CoCreateInstance Errors

Error: CoCreateInstance for APPLICATION.NAME returned 80070005

Cause: This is an access denied error. Usually this is a result of not being to launch the application on the remote server.

Resolution: You'll need to open Component Services on the remote server/workstation and modify the Access, Launch, and Configuration permissions for the particular application. If you're getting this locally, do the same.


Windows Errors

Error: You do not have access rights to Logical Disk Manager on computer

Cause: This error is the result of incorrect DCOM permissions and/or Windows Firewall settings.

Resolution: Option A If you're connecting to a remote computer, make sure you have port 135 set as an exception on both firewalls. You may also need to add dmremote.exe to the exceptions list.

  1. Start-->Run, type firewall.cpl and press OK
  2. Click on the Exceptions and add C:WINDOWS\system32\dmremote.exe and port 135

If that doesn't resolve it, you'll need to add some additional permissions.

  1. Start-->Run, type dcomcnfg and press OK
  2. Expand Component Services and then click on Computers
  3. Right click on My Computer and click on Properties
  4. Click on the COM Security tab
  5. Under Access Permissions click on Edit Limits
  6. Grant ANONYMOUS LOGON the Remote Access permission
  7. Under Launch and Activation Permissions, click Edit Limits
  8. Grant Everyone Remote Activation and Remote Launch permissions
  9. Click OK twice and reboot the computer

Option B If its you're local PC, you'll need to correct the DCOM permissions.

  1. Start-->Run, type dcomcnfg and press OK
  2. Expand Component Services and then click on Computers
  3. Right click on My Computer and click on Properties
  4. Click on the Default Properties tab
  5. Set the Default Authentication Level to Connect
  6. Set the Default Impersonation Level to Identify
  7. Click OK and reboot

Error: Unable to open Component Services (dcomcnfg). The MMC closes instantly as you expand Computers. This also resolves the Win32: Access Denied WMI error (see Option B above).

Cause: This is a combination of bad DCOM permissions and a messed up COM+ system. Usually this is accompanied by several COM+ errors in the event log.

Resolution: Reinstall COM+ and reset the DCOM permissions. Its a simple process.

  1. Open a command prompt
  2. Type ren %WinDir%\System32\Clbcatq.dll %WinDir%\System32\~Clbcatq.dll
  3. Reboot the computer
  4. Open regedit
  5. Delete the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\COM3
  6. Open a command prompt
  7. Type cd %windir%
  8. Type rmdir /s Registration
  9. Open Control Panel
  10. Open Add/Remove Programs and then click on Add/Remove Windows Components
  11. Simply click next to start the reinstall. You may need your Windows CD. If you have IIS installed, run the following command: rundll32 %windir%\system32\inetsrvwamreg.dll, CreateIISPackage
  12. Reboot the computer

Useful Registry Keys

Reset DCOM Permissions - [HKEY_LOCAL_MACHINESOFTWAREMicrosoftOle]
"EnableDCOM"="Y" "LegacyAuthenticationLevel"=dword:00000002
"LegacyImpersonationLevel"=dword:00000002

Reference Articles


If you get the error The COM+ event classes could not be registered then do the following:

 

  1. REGSVR32 ole32.dll
  2. After that, reinstall the COM+ event classes with the control panel.

There is a wiki article with mor info if required.

Published in Windows XP
Sunday, 21 February 2010 01:41

Enable mod rewrite on XAMPP

If mod_rewrite module is not enabled on xammp do the following.

Also to note this procedure should be the same for many other modules.


  1. Edit the httpd.conf that is located in ..\xampp\apache\conf
  2. Search for "mod_rewrite". You should come to a line like this

    #LoadModule rewrite_module modules/mod_rewrite.so
     
  3. Remove the hash sign (#) from the line. The # indicates the line is not in effect. The changed line should looks like this:

    LoadModule rewrite_module modules/mod_rewrite.so
     
  4. Stop and restart Apache if required
Published in xampp
Sunday, 21 February 2010 01:02

Installing ionCube Loader for Xampp

The following instructions tell you how to installed Ioncube on xammp


  1. Find your PHP version. You will need to know the version when you download the ionCube loaders.
  2. Download ionCube loader from: http://www.ionCube.com/loaders.php

    Download this version: Windows (x86) -- Windows Installer  (for windows etc..)
     
  3. Create a folder in ../xammp/apache/ioncube (can be any folder of your choice)
  4. Extract contents of the Ioncube Loader archive in to the folder above
  5. Open ../xammp/php/php.ini
  6. Add the following line before any other zend_extension statements.

    zend_extension_ts = "D:\xampp\apache\ioncube\ioncube_loader_win_5.2.dll"
     
  7. Stop and restart xammp

If successful you should now see a section in your PHP Info page that says: (just do a  page search for ioncube)

Additional Modules
Module Name ionCube Loader


These slightly revised instructions allow you to run ioncude successfully on xampp 1.7.3 and on Windows 7 64-bit

I found the solution...

This should be added to the php.ini regardless of the thread safety status:

    zend_extension = "C:\xampp\ioncube\ioncube_loader_win_5.3.dll"

This is wrong but it is in the documentation:

    zend_extension_ts = "C:\xampp\ioncube\ioncube_loader_win_5.3.dll"

It seems like zend_extension_ts does not work anymore.

Published in xampp
Sunday, 21 February 2010 01:00

Getting cURL to Work in XAMPP

Everything you need to run CURL on a XAMPP install is included in the download. Just do the following

 


  1. Go to xampp install directory.
  2. Go to ../xampp/php/php.ini (for old versions ../xammp/apache/bin/php.ini)
  3. Search for curl
  4. uncomment extension=php_curl.dll (remove ;)
  5. Stop and start xammp if required

 

Published in xampp
Saturday, 20 February 2010 23:39

How to Enable Windows 7 GodMode

 

Here’s a neat Windows 7 trick that’s been doing the rounds on the Internet. It enables “GodMode,” a term devised by the Microsoft development team, which provides a single place to access all Windows settings without needing to browse options and folders in the Control Panel.


 

  1. Create a new folder.
  2. Rename the folder to

    GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}

    (note that you can change the “GodMode” text, but the following period and code number are essential).

  3. The folder icon will change — double click it to show the GodMode window:
Published in Windows 7
Saturday, 20 February 2010 22:27

Country Codes

AD   Andorra
AE   United Arab Emirates
AF   Afghanistan
AG   Antigua and Barbuda
AI   Anguilla
AL   Albania
AM   Armenia
AN   Netherlands Antilles
AO   Angola
AQ   Antarctica
AR   Argentina
AS   American Samoa
AT   Austria
AU   Australia
AW   Aruba
AX   Aland Islands
AZ   Azerbaijan
BA   Bosnia and Herzegovina
BB   Barbados
BD   Bangladesh
BE   Belgium
BF   Burkina Faso
BG   Bulgaria
BH   Bahrain
BI   Burundi
BJ   Benin
BM   Bermuda
BN   Brunei Darussalam
BO   Bolivia
BR   Brazil
BS   Bahamas
BT   Bhutan
BV   Bouvet Island
BW   Botswana
BY   Belarus
BZ   Belize
CA   Canada
CC   Cocos (Keeling) Islands
CD   Democratic Republic of the Congo
CF   Central African Republic
CG   Congo
CH   Switzerland
CI   Cote D'Ivoire (Ivory Coast)
CK   Cook Islands
CL   Chile
CM   Cameroon
CN   China
CO   Colombia
CR   Costa Rica
CS   Serbia and Montenegro
CU   Cuba
CV   Cape Verde
CX   Christmas Island
CY   Cyprus
CZ   Czech Republic
DE   Germany
DJ   Djibouti
DK   Denmark
DM   Dominica
DO   Dominican Republic
DZ   Algeria
EC   Ecuador
EE   Estonia
EG   Egypt
EH   Western Sahara
ER   Eritrea
ES   Spain
ET   Ethiopia
FI   Finland
FJ   Fiji
FK   Falkland Islands (Malvinas)
FM   Federated States of Micronesia
FO   Faroe Islands
FR   France
FX   France, Metropolitan
GA   Gabon
GB   Great Britain (UK)
GD   Grenada
GE   Georgia
GF   French Guiana
GH   Ghana
GI   Gibraltar
GL   Greenland
GM   Gambia
GN   Guinea
GP   Guadeloupe
GQ   Equatorial Guinea
GR   Greece
GS   S. Georgia and S. Sandwich Islands
GT   Guatemala
GU   Guam
GW   Guinea-Bissau
GY   Guyana
HK   Hong Kong
HM   Heard Island and McDonald Islands
HN   Honduras
HR   Croatia (Hrvatska)
HT   Haiti
HU   Hungary
ID   Indonesia
IE   Ireland
IL   Israel
IN   India
IO   British Indian Ocean Territory
IQ   Iraq
IR   Iran
IS   Iceland
IT   Italy
JM   Jamaica
JO   Jordan
JP   Japan
KE   Kenya
KG   Kyrgyzstan
KH   Cambodia
KI   Kiribati
KM   Comoros
KN   Saint Kitts and Nevis
KP   Korea (North)
KR   Korea (South)
KW   Kuwait
KY   Cayman Islands
KZ   Kazakhstan
LA   Laos
LB   Lebanon
LC   Saint Lucia
LI   Liechtenstein
LK   Sri Lanka
LR   Liberia
LS   Lesotho
LT   Lithuania
LU   Luxembourg
LV   Latvia
LY   Libya
MA   Morocco
MC   Monaco
MD   Moldova
MG   Madagascar
MH   Marshall Islands
MK   Macedonia
ML   Mali
MM   Myanmar
MN   Mongolia
MO   Macao
MP   Northern Mariana Islands
MQ   Martinique
MR   Mauritania
MS   Montserrat
MT   Malta
MU   Mauritius
MV   Maldives
MW   Malawi
MX   Mexico
MY   Malaysia
MZ   Mozambique
NA   Namibia
NC   New Caledonia
NE   Niger
NF   Norfolk Island
NG   Nigeria
NI   Nicaragua
NL   Netherlands
NO   Norway
NP   Nepal
NR   Nauru
NU   Niue
NZ   New Zealand (Aotearoa)
OM   Oman
PA   Panama
PE   Peru
PF   French Polynesia
PG   Papua New Guinea
PH   Philippines
PK   Pakistan
PL   Poland
PM   Saint Pierre and Miquelon
PN   Pitcairn
PR   Puerto Rico
PS   Palestinian Territory
PT   Portugal
PW   Palau
PY   Paraguay
QA   Qatar
RE   Reunion
RO   Romania
RU   Russian Federation
RW   Rwanda
SA   Saudi Arabia
SB   Solomon Islands
SC   Seychelles
SD   Sudan
SE   Sweden
SG   Singapore
SH   Saint Helena
SI   Slovenia
SJ   Svalbard and Jan Mayen
SK   Slovakia
SL   Sierra Leone
SM   San Marino
SN   Senegal
SO   Somalia
SR   Suriname
ST   Sao Tome and Principe
SU   USSR (former)
SV   El Salvador
SY   Syria
SZ   Swaziland
TC   Turks and Caicos Islands
TD   Chad
TF   French Southern Territories
TG   Togo
TH   Thailand
TJ   Tajikistan
TK   Tokelau
TL   Timor-Leste
TM   Turkmenistan
TN   Tunisia
TO   Tonga
TP   East Timor
TR   Turkey
TT   Trinidad and Tobago
TV   Tuvalu
TW   Taiwan
TZ   Tanzania
UA   Ukraine
UG   Uganda
UK   United Kingdom
UM   United States Minor Outlying Islands
US   United States
UY   Uruguay
UZ   Uzbekistan
VA   Vatican City State (Holy See)
VC   Saint Vincent and the Grenadines
VE   Venezuela
VG   Virgin Islands (British)
VI   Virgin Islands (U.S.)
VN   Viet Nam
VU   Vanuatu
WF   Wallis and Futuna
WS   Samoa
YE   Yemen
YT   Mayotte
YU   Yugoslavia (former)
ZA   South Africa
ZM   Zambia
ZR   Zaire (former)
ZW   Zimbabwe
BIZ   Business
COM   Commercial
EDU   US Educational
GOV   US Government
INT   International
MIL   US Military
NET   Network
ORG   Nonprofit Organization
PRO   Professional Services
AERO   Aeronautic
ARPA   Arpanet Technical Infrastructure
COOP   Cooperative
INFO   Info Domain
NAME   Personal Name
NATO   North Atlantic Treaty Organization
Published in Windows Family

Read the following articles first

DMA reverts to PIO - The stuttering DVD drive or the lame hard disk

Troubleshooting: Enabling/Checking DMA in Windows Vista, XP, 2000, Me, 9x


CD-ROM, DVD-ROM and Hard drives can revert to using PIO mode, despite being set to use “DMA if Available.” Here’s how to make Windows XP redetect the DMA capabilities of the drives.

This behaviour occurs with the following conditions:

  • Windows XP is the operating system
  • A CD-ROM or DVD-ROM drive, which is known to support DMA mode now works only in PIO mode.
  • The drive controller is set to use “DMA if available” but reports to be only in PIO mode.
  • 6 or more CRC errors occur in one session

Other symptoms might be:

  • the PC takes a lot longer to load
  • Crackling sound epecially when trying to watch a video.
  • High CPU might be present because PIO does not use a CPU offload technique like DMA

Then try these solutions below. (This assumes you had the right drivers on in the first place.)


  • Go into device manager
  • Select the primary / secondary channel, select properties
  • make sure 'DMA if available' option is selected
  • delete the primary and secondary channel
  • delete the controller
  • reboot

An additonal reboot might be required to iniate the DMA mode


  • change the controller type to standard IDE controller

  1. Open RegEdit
  2. Find the following KEY:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\000x
     
  3. The last four digits will be 0000, 0001, 0002, 0003, and so on.
  4. Under each key, delete all occurences of the following values:

    MasterIdDataChecksum
    SlaveIdDataChecksum

     
  5. Reboot the computer. Windows will now redetect DMA settings.

  1. Edit the key

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0000
     
  2. Then add a new DWORD value called

    EnableUDMA66
    with a value of 1.
     

Or Save the text  below as a .reg file and execute it

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0000]
“EnableUDMA66”=dword:00000001

Published in Windows Family

 

If you use Windows Live Messenger (previously known as MSN Messenger) you should know by now that you can not download it as standalone program anymore.

As a matter of fact WLM is now part of the suite best known as Windows Live package which embeds a lot of different applications such as: Windows Live Writer, Windows Live Mail, Windows Live Toolbar, Windows Live Messenger 2009 etc.

This installer called wlsetup-all.exe  and whose size is more than 100 MB can not be uncompressed, unpacked or extracted into single installers, so if you want a single application out of it, you have just to download and install the whole bunch.

If you are craving to get the single Windows Live Messenger application 2009 (Messenger.msi) or  other single applications out of  Windows Live package, just follow this easy hack.


  1. Download Windows Live Installer from download.live.com.
  2. Install Windows Live Messenger 2009 (or just upgrade, if you already have it on your PC).
  3. Now, on your Windows Vista, open Windows Explorer (make sure to run it with  Administrator rights) and set it to show hidden files and folders and protected operating system files. Here is a micro-guide to do it: Click Start – Type Windows Explorer on the Search box and hit Enter – Click Organize – Click Folder and Search options – Under the View tab tick the following setting: Show hidden files and folders. Now untick the following setting: Hide protected operating system files. Done!
  4. Now browse to this folder: C:\Program Files\Common Files\Windows Live\.cache\
  5. Now you should face a lot of folders named with a lot of characters and numbers. Open all of them and look for: Messenger.msi
  6. Messenger.msi is the standalone setup installer for Windows Live Messenger 2009. Just copy-and-paste it wherever you want on your computer.
  7. If you get errors or issues after installing WLM as standalone, just retrieve the following files which are located in the same folders named with a lot of characters and numbers: Contacts.msi, dw20shared.msi, crt.msi
  8. After getting the above files install them.
  9. Now you should be able to run your WIndows Live Messenger smoothly.

By the way, this hack also works for all of the other applications contained in the Windows Live package.


Published in Windows XP
Saturday, 20 February 2010 11:41

Office 2007 SP1 Slipstream Guide

 

As you may know, Office 2007 makes use of the Updates folder in the installation media to install any new updates that it finds in the folder however the updates need to be in the .msp file format for them to be recognized. Since the Office 2007 SP1 update file is delivered in the .exe format, an extra step is required before being able to proceed:

First, you should copy the contents of the Office 2007 RTM image to a temporary folder. For our example we're using C:\O2007Temp\. We have also copied the Office 2007 SP1 Update file (office2007sp1-kb936982-fullfile-en-us.exe) to the D:\ drive.

Then, using the Run command in Windows XP/Vista (WinKey+R), run the following command:

    D:\office2007sp1-kb936982-fullfile-en-us.exe /extract:C:\O2007Temp\Updates\

replacing D:\ with wherever you stored the Office 2007 SP1 update file and C:\O2007Temp\ with wherever you stored the Office 2007 RTM files. After agreeing to the Microsoft Software License Terms, SP1 will be extracted to C:\O2007Temp\Updates\.

That's it! Just start the setup for Office 2007 and the updates for SP1 will then be picked up and installed during the setup. The same method applies to any other Office 2007 SP1 update.
 

Published in Windows Family
Saturday, 20 February 2010 11:21

Get the Security Permissions Tab in XP Home

How to get  the Security or Permissions Tab restored to XP Home, just like XP Pro.


Download the x86 (Intel) version of the Windows NT SP4 Security Configuration Manager from Microsoft.

Windows NT SP4 Security Configuration Manager from Microsoft.
ftp://ftp.microsoft.com/bussys/winnt/winnt-public/tools/SCM

  1. Double click the SCESP4I.EXE file and extract the contents to a temporary location on your hard disk
  2. Open the folder
  3. Find the file named "setup" or "setup.inf"
  4. Right click Setup.inf and select Install
  5. The installation will occur.
  6. Reboot the system when prompted.

Now when you right-click on a file/or folder and select "Properties" you will see the "Security" tab. so you will now be able to Add users and permissions, remove users and permissions, change permissions for users.

 

 

Published in Windows Family
Page 84 of 95