DCSIMG
September 2008 - Posts - justguy's

September 2008 - Posts

Debugging IIS: Identifying the Worker Process Process ID

Hi,

When working on a shared environment with several web applications, attaching to IIS processes may cause a problem.
Developers have a nasty habit of attaching to all IIS process, thus making it impossible for other users to work on the server.

Finding the required process ID is quite simple, enabling you to attach only to the process you require.

 

Here goes:

Run iisapp.vbs from command prompt (Start –> Run –> cmd).
You’ll get something like this:

image

Note you get the application name and the processs ID (PID).

Now you attach to the process you need and leave the rest alone:

image

 

Important note:
When doing a IISRESET or recycling the application pool, the process ID changes.

Posted by justguy | with no comments

SharePoint Data View - ddwrt Namespace: IfNew() and Friends

Ever wonder how that “New!” (new.gif) image appears next to list items?

SharePoint Data Views use the ddwrt XSL namespace generated automatically like so:

<xsl:if test="ddwrt:IfNew(string(@Created))">
    <img src="/_layouts/1033/images/new.gif" alt="New" />
</xsl:if> 
BTW, items are considered "new" if it was posted within the past 2 days…

Read more: MSDN: SharePoint Data View Web Part Extension Functions in the ddwrt Namespace

Posted by justguy | 1 comment(s)