Category Archives: Troubeleshoot

javascript changes does not take effect in asp.net

I have this problem where I changed javascript and when I looked at the generated code, the change would not appear! Where is the problem? 1. Empty cache and then refresh page should fix the problem. Or simply hit Ctrl+ … Continue reading

Posted in Troubeleshoot | Tagged , | Leave a comment

Error loading player: Offline playback not supported : JWPlayer

Funny I did not get this error on my local html file with jw player, but when I copied it to another server, I got this error. I copied the whole directory so there wasn’t anything missing. I coped that … Continue reading

Posted in Software Development, Troubeleshoot | Leave a comment

specified cast is not valid linq

The error specified cast is not valid linq can come from the fact the column types do not match between the class and the name attribute of that class. Example : NorthWnd Database The territories table in NorthWnd database has … Continue reading

Posted in Troubeleshoot | Leave a comment

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