Category Archives: Troubeleshoot

Can not log on locally to as user x with virtual directory password

If you look close at the error, it will say Module : IIS Web Core This means it is coming from IIS. The problem is you do not have permission to access the config file. The error actually quotes config … Continue reading

Posted in Troubeleshoot | 2 Comments

Fix ASP.NET Menu Layout Issue in Chrome and Safari

I had this menu issue which would not render properly in Chrome and Safari but run ok in Internet Explore and FireFox. The following is the fix. Put the following code at the top of your Page_load() function of the … Continue reading

Posted in Troubeleshoot | Leave a comment

Reading null values from datatabase in C# code

If you tried reading a null value from the database such as a null date, you might have across this exception Specified cast is not valid Casting Nullable Values The following code works unless a null datetime is returned. Note … Continue reading

Posted in Troubeleshoot | Tagged , , , , | Leave a comment

Condition on null does not work with =

What do you expect from the following code? Will the block inside if be executed? IF ( @ID != NULL )   BEGIN       UPDATE inventory       SET    count = 5       WHERE  id = @ID   END  The statments inside If will never be executed because it will always evaluate false. The reason it equal (=) … Continue reading

Posted in Troubeleshoot | Leave a comment

Object reference not set to an instance of an object.

How to troubleshoot Object reference not set to an instance of an object in C#. Put a break point in the code, execute the code Inspect the value where you are getting this error Inspect the value you are assigning … Continue reading

Posted in Troubeleshoot | Leave a comment

Database Vendor code: 229 – Crystal Report

If you get the below error in Crystal Report Failed to retrieve data from the database. Details: [Database Vendor Code: 229] This mean you do not have access to the data. This possibly occurred because you created your report on … Continue reading

Posted in Troubeleshoot | 4 Comments

Force GridView to Refresh in ASP.NET

You can force gridview to referesh its data by calling GridViews.DataBind() function in the code behind. GridView.DataBind(); /* this will referesh the gridview */ I have also come across a couple of others solutions that does the same. The one … Continue reading

Posted in Troubeleshoot | 2 Comments

Weird ASP Bug – Gridview update does not work if there is somethign in page_load function

In my Gridview, select, insert, delete all were working properly but not Update. Found out that my code in Page_load() was causing this not to work. I removed the code from page load where I as updating the Gridview. The … Continue reading

Posted in Weird ASP.NET Errors | Leave a comment

Weird ASP.NET Error – Insert does not work in FormView in ASP.NET

You have a FormView and an Insert Template inside it, if you put the insert template fields in an ASP.NET table for better formatting, the insert function will not work. This is very weird. In the above example, the fields … Continue reading

Posted in Weird ASP.NET Errors | Leave a comment

wordpress theme not displaying properly

You just installed a wordpress theme and when you activated it (or even previewed it), it does not show properly. It takes the whole page, there is only html contents, no formatting is applied. This happened to me when I … Continue reading

Posted in Troubeleshoot | Leave a comment