Saturday, April 3, 2010

Error 1606: Could Not Access Network Location %APPDATA%\

I was installing Symantec Antivirus on one of the client machines today when it prompted me the error (noticed on Windows Vista). I then Bing'd it to find out that this issue appears when the Shell folder of the logged on user has incorrect entries.
It might be the case with any installation and not just Symantec. I recommend you to backup the registry before trying this out.
These are the steps to fix it:
  1. Click Start > Run > regedit.exe
  2. Locate the registry key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\
  3. Delete the entry which shows the error message

Thursday, April 1, 2010

Cyberoam: It's Powered, Still Cannot Ping Cyberoam

Navigate to Firewall > Local ACLs
Tick the ICMP check box in the LAN zone under Network Services

Cyberoam: Does It Act Funny?

You are trying to login to the Cyberoam client using the web browser and it goes into an endless "please wait logging you in" session


Sometimes restarting the Cyberoam appliance will do the magic.

Monday, February 8, 2010

Breakpoint Will Not Currently Be Hit

Ever hit a hurdle debugging a .Net Application? Especially "Breakpoint will not currently be hit. No symbols have been loaded for this document." This is the most deadliest of all. I say this not because it is tough to overcome it, but because it really destroys your productivity. I usually call such hurdles "Productivity Roadblocks"

What CAUSES the Breakpoint will not currently be hit?

This happens primarily because either the .pdb file is not present, there is a mismatch between the .pdb file and the source, or the .dll file that you wish to be debugged has not been loaded.

Is there a RESOLUTION?
Of course there is there are. You may want to try these in sequence as mentioned:

  1. Set the configuration option to Debug in the Configuration Manager
  2. Delete the .pdb files in your bin folders > Recompile the project > Run
  3. Delete and reload all referenced .dlls
  4. Delete all .pdbs and .dlls from the bin and obj folder. Reload the .dlls > Recompile > Run
  5. Close Visual Studio IDE and restart. Rebuild and Run. Surprisingly it works
  6. Restart your computer. Rebuild and Run. I refer to this as the "Windows Magic"
  7. Make sure that the XML Element "compilation" tag in your web.config file has an attribute with debug = "true". Only if this is enabled, web apps and services have their .pdb files generated with the .dlls

Another Tip

  • While debugging in Visual Studio, click on Debug > Windows > Modules. The IDE will dock a Modules window, showing all the modules that have been loaded for your project.
  • Look for your project's DLL, and check the Symbol Status for it.
  • If it says Symbols Loaded, then you're golden. If it says something like Cannot find or open the PDB file, right-click on your module, select Load Symbols, and browse to the path of your PDB.

I've reached as far as this. There might be other ways to overcome this. If there are, drop in a comment below. I don't want developers to suffer their debugging process. That's the only way they can spy on every single variable and other declarations.

Happy coding!!

Friday, January 15, 2010

Database is in Transition. Try the Statement Later.

I was recently trying to take the Database Offline when I encountered this error :

Database is in Transition. Try the Statement Later.

How did I resolve this problem? I just re-started SQL Server Management Studio and the Database was accessible again.

Wednesday, September 16, 2009

DNS Server unable to Open Active Directory

I was on a maintenance check couple of days back, when I noticed Windows Server 2008 Event Viewer had all red crosses.

DNS Server unable to Open Active Directory
When I tried to open the Active Directory, the below error popped up.
The Server is not operational

The server is not operational
Bing'ing / Google'ing did not help much. I thought for a while, went for a restart and everything seemed happy.

Thursday, July 16, 2009

Registry editing has been disabled by your administrator

2 methods to enable registry editing. Choice is yours or you might be forced.

1st Method
  1. Click Start > Run and type gpedit.msc
  2. Navigate to User Configuration > Administrative Templates > System
  3. Double click Prevent access to registry editing tools
  4. If it's Not Configured then Enable it and Disable it. If already Enabled then just Disable it.
  5. Now try regedit.exe
2nd Method
  1. Click Start > Run and type in
    REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableRegistryTools /t REG_DWORD /d 0 /f
  2. Now try regedit.exe
Note: You might have to restart the computer for changes to take effect.