Tuesday, November 18, 2008

What's installed in a Windows box?

See here for downloading and use msiinv.exe.

Wednesday, November 12, 2008

IIS7: COM 0x800703E3 error

Problem: when requesting static files against IIS7, following error was reported to event viewer

0x800703E3
at System.Web.Hosting.IIS7WorkerRequest.FlushCore(Boolean keepConnected, Int32 numBodyFragments, IntPtr[] bodyFragments, Int32[] bodyFragmentLengths, Int32[] bodyFragmentTypes)
at System.Web.Hosting.IIS7WorkerRequest.FlushCachedResponse(Boolean isFinal)
at System.Web.HttpResponse.UpdateNativeResponse(Boolean sendHeaders)
at System.Web.HttpRuntime.FinishRequestNotification(IIS7WorkerRequest wr, HttpContext context, RequestNotificationStatus& status)

Solution: known issue in IIS7, fixed by Microsoft .NET Framework 3.5 Service Pack 1

SQL: Excessive SQL Compilations/Sec

Problem: SQL Compilations/Sec greater than 50 sec in a mid-end backend.
Cause: Store procedures not being fully parameterized. If they were, their plans could have been cached and reused for same runs with different parameters.

Some related links:

http://www.sql-server-performance.com/tips/stored_procedures_p1.aspx
http://www.sql-server-performance.com/tips/sql_server_performance_monitor_coutners_p1.aspx
http://support.microsoft.com/kb/243588
http://msdn.microsoft.com/en-us/library/aa212698(SQL.80).aspx

Wednesday, November 5, 2008

Tuesday, September 23, 2008

Sansa m250: How to see it as a drive on XP

Menu, Settings, USB, choose the one that is not Autodetect ☺

Tuesday, September 16, 2008

SharePoint: Output caching not retrieving pages from cache

Symptom:

for subsequent requests, you see the date in the output page (right click IE page, View Source, etc) updated (it should remain constant for the period of time page in cache is not invalidated):

>>> Rendered using cache profile:Public Internet (Purely Anonymous) at: 2008-09-16T12:59:31

Solution:

This issue may happen for requests that include query strings, like '?var=val'.

Go to http://your%20server/cache%20profiles/allitems.aspx, and set 'Vary by Query String Parameters' to the value of the query param (in the example above, 'var') for the appropriate cache profiles.

Thursday, September 11, 2008

SharePoint: Root folder element not returned through SPList.GetItems(SPQuery)

Problem: a query like this

                SPQuery q = new SPQuery();
q.Query = "<Where><Eq><FieldRef Name='MyField'/><Value Type='Text'>ABC</Value></Eq></Where>";
q.ViewAttributes = "Scope=\"Recursive\"";
SPListItemCollection c = l.GetItems(q);
Console.WriteLine(c.Count);

on a list like with one element like

Folder, MyField='ABC'

was not returning the element.

Solution:

q.ViewAttributes = "Scope=\"RecursiveAll\"";

See here why ☺