Category Archives: Configuration

Visual Studio VS 2010 not stopping at breakpoints

Ever wondered why suddenly you cannot debug because the compiler isnt breaking on your breakpoints.

There are several reasons for this.

make sure that.
1. Your project is compiling when you begin debugging (check this in build > configuration manager)
2. Ensure your projects are compiling in debug mode not release (check this in build >configuration manager)
3. In the Webconfig ensure you are in debug mode

4. The (project properties > startup options > debuggers has the ASP.NET checkbox checked)
5. Delete all pdb files in your bin folder
6. Ensure every project referenced is set to build under (build > configuration manager)
7. Do a full clean and rebuild. (build > clean solution) (build > rebuild solution)

Finally and this is the one that caught me out
8. Check you are not setting a cookie cache timeout of positive time, I was expiring my page after 1 day. The best way to check this is to load a page in debug, knowing your break point will not be stopped at. Once the page is fully loaded hit ctrl F5 to force full reload of the page. If your breakpoint is stopped at then you know its a cache problem.

Error 1310 Config.msi verify access

If you recieve the following error when trying to install or uninstall windows applications

Error 1310. Error writing to file: C:\Config.Msi\*******.rbf. System error 5. Verify that you have access to that directory.

You can try and resolve this by re registering windows installer

Open a command prompt Start > run > “cmd”

msiexec /unreg
msiexec /regserver

If this doesnt solve your problem try running your installer from the root of the C drive as an administrator in various compatibility modes.

How To Restore All Your HTC Widgets

Recently my htc widgets have not been available for my home screen (friend stream, mail music, twitter etc) Im not sure what caused it but none the less its happened.

To get them back is pretty simple.

Note: this will completely reset your home screen layouts and wipe any saved layouts
1. Make sure you have over 15mb free space2. Open Settings
3. Select Applications
4. Select Manage Applications5. Scroll to HTC Sense and select it
6. Hit Clear data
7. Press the home button and wait
8. You will now see your widgets available when trying to add via one of the home screens

MS Outlook Error when opening

If you recieve this error when you try to open your Microsoft Outloo client

cannot start microsoft outlook cannot open the outlook window

open a run command “Start > Run” and type this

outlook.exe /resetnavpane

Should fix most errors
Failing that try these references for outlook switches

http://www.petri.co.il/outlook_2003_command_line_switches.htm
http://www.techgalaxy.net/Docs/Exchange/OL2003_switches.htm
http://office.microsoft.com/en-us/outlook-help/command-line-switches-for-microsoft-office-outlook-2007-HP001218589.aspx

Execute denied for sp_send_dbmail

My backup email error handler noted a few errors in the windows event viewer, the specific error was

The EXECUTE permission was denied on the object ‘sp_send_dbmail’, database ‘msdb’, schema ‘dbo’.

If you have receieved this, then you need to add the user to the database by going to properties of the user and editing the “mapping” ensuring that said user is ticked next to the db “msdb”
Then run the follwing trasact against he msdb daabase replacing the word user here with the user you need to apply this to.

Offline Files and Folders not indexing or saving

Your are wondering why you cant add offline files to your seach index

When you look at your indexed locations and hover over your offline file locations you see the tooltip

indexing of offline files has been dsabled by your systems dministrator

or words to that effect

This implies that there is a policy restricting indexing of offline files being applied either locally or from the Domain Controller the computer is registered to (if at all).
Get your admin to check the group policies applied locally and from the DC, paying particular interest in the location
Computer Configuration/Administrative Templates/Windows Components/Windows Search

Ensure “Disable indexing of offline files cache” is not configured.

Another problem i encountered was, offline folder changes were not working, MS Excel and Word was hanging when trying to save to an offline location, yet notepad could happily save a txt doc to the location.
As it turns out, its an NT authentication issue, if you are able, set the security on the root folder of the offline folder so that Domain Users have full control, cascade these permissions to all child objects and then try your tests with excel word and folder changes. This worked for me.

Add a non indexed UNC as a library

Add a non-indexed UNC as a library
===========================
1. Create a folder on your hard drive for shares. i.e. c:\share
2. Create another folder in the above share. i.e. c:\share\music
2. Link the Library to this folder.
3. Delete the folder.
4. Use the mklink in an elevated command prompt to make a symbolic link. Name the link the same as the folder you created above.
i.e – mklink /d c:\share\music \\server\music
5. Done. Now you have non-indexed UNC path as a library.

source here

SQL Server error full-text filter daemon

We recently migrated from SQL server 2005 to SQL Server 2008 Web edition on our hosted servers, amongst several issues that were faced was the full text search error

SQL Server encountered error 0x80070218 while communicating with full-text filter daemon host (FDHost) process. Make sure that the FDHost process is running. To re-start the FDHost process, run the sp_fulltext_service ‘restart_all_fdhosts’ command or restart the SQL Server instance.

So when you execute the recomended SP

you receive this error

Msg 30046, Level 16, State 1, Procedure sp_fulltext_service, Line 163
SQL Server encountered error 0x80070218 while communicating with full-text filter daemon host (FDHost) process. Make sure that the FDHost process is running. To re-start the FDHost process, run the sp_fulltext_service ‘restart_all_fdhosts’ command or restart the SQL Server instance.

what you need to do is add the log on user the full text search service is running under, to the full text search security group on the box in question, it will look something ike this

SQLServerFDHostUser$lce-1$MSSQLSERVER

For me all i needed to do was add the “local service” account to the group – restart the sql service and re run the execute command

Problem solved

Diagnostics.PerformanceCounter Input string was not in a correct format

when you try to get performance information you receive the following error at the initialiser

Dim Ram As New Diagnostics.PerformanceCounter(“Memory”, “Available MBytes”)

Input string was not in a correct format

Starting “perfmon” from your run box to open the performance monitor presents you with a message box

—————————
Performance Monitor Control
—————————
Unable to add these counters:

\Memory\Available MBytes
\Memory\% Committed Bytes In Use
\Memory\Cache Faults/sec
\Memory\Cache Faults/sec
\PhysicalDisk(*)\% Idle Time
\PhysicalDisk(*)\Avg. Disk Queue Length
\Network Interface(*)\Bytes Total/sec
—————————
OK
—————————

Easy fix, you need to rebuild your performance counters. I copied c:\windows\system32\PerfStringBackup.ini from a machine whos counters were working, replaced the one on the broken machine. Open a command prompt, navigate to the same location and run the following

lodctr /R:PerfStringBackup.INI

This will reload your counters

If that fails try what microsoft suggest Here