NULL SID Error (Event ID: 4625) and Application Pool Identity

September 18th, 2009 4 comments

Issue:

  • Environment:A medium server farm.
  • Identity:A brand new custom domain account with no special permissions assigned.
  • Action : Assigning the domain account as the application pool identity when creating a new Web application.
  • Error Message: Invalid Username or password.
  • Point of confusion: The same credentials work like a champ when logging to a test box in the domain. I can also add the user to a SharePoint group.
  • Event Log and ULS Log : Nope,nothing!
  • Googling (mmmm…Binging) : No dice!

Steps to find the real error:

  • Tried a simpler password by taking out the “!” because I was aware of some issues with usual culprits -%,&,$ etc used in app pool password.
  • Added  the user to a test site and tried to login – Yup… the user can NOT login to any SharePoint sites ; so there was something wrong! DUH!
  • Checked the Event log and that was where the following nasty little error rears its ugly head all over.This event was generated when actual logon request of the last step failed not when the central admin “Create or extend Web Application” was throwing “invalid username or password”. It was generated on the WFE where access was attempted.
  1. Log Name: Security
  2. Source: Microsoft-Windows-Security-Auditing
  3. Date: 18.09.2009 12:34:06
  4. Event ID: 4625
  5. Task Category: Logon
  6. Level: Information
  7. Keywords: Audit Failure
  8. User: N/A
  9. Computer: xxx.ch
  10. Description:
  11. An account failed to log on.
  12.  
  13. Subject:
  14. Security ID: NULL SID
  15. Account Name: -
  16. Account Domain: -
  17. Logon ID: 0x0
  18. ....

Resolution (or Workaround!):

  • Deleted the account and recreated it.
Categories: MOSS 2007 Tags:

How I Benefit from Native Boot From VHD

August 18th, 2009 12 comments

One of the neat features introduced in Windows 7 and Windows Server 2008 R2 (Read it Windows 7 Server!) is the support for native VHD boot right out of the box. This feature allows you to setup multi-boot scenarios on your machine a lot easier and safer than the traditional way of provisioning multiple OS partitions on your hard drive – something that we all have been doing for a long long time! All you need to do is to make a VHD as a bootable drive that contains its own OS (Win 7 or Win 2008) and then make your computer to boot from it. Snazzy!

Ever since the beta bits of Win7 and Windows Server 2008 R2 came out, some folks have written great blog posts, tweets and articles that walk you through the steps to prepare a VHD image for native booting and everyone is approaching this from a different angle – see References section later in this blog post.

The problem is that if you are not an administrator or you have no familiarity with the tools included in Windows 7, Windows Server 2008 R2 or WAIK , it’s quite challenging to follow most of those articles that are filled with technical or administrative jargons and involves lots of commands, utilities( For example WIM2VHD or PowerShell script) and various tools. Too much complexity for a dev guy, IMO!

My requirement for the use of native boot from vhd thing is so simple:

Scenario: SharePoint Dev,Demo and Validation Machine

Goals:

  1. To build a common , reusable SharePoint image that can be immediately used for dev, demo & testing purposes.
  2. To build this image using available user interfaces (i.e. Hyper-V Manager) with minimal use of command line and funky scripts or utilities.

Background: People who have worked with me know me as a person who loves virtualization! I run Windows Server 2008 on all my computers and don’t do anything except in virtual machines. However, in order to test my applications (for performance,stability and etc), I’d rather be on a real hardware.Although, there are techniques to even virtualize test resources, the safety net of having everything up and running and fully tested on a real box always gives me an extra level of comfort before any attempts to deploy my stuff to a customer’s environment.

Additionally, I do a lot of presentations, so that would be nice if I could demo on real hardware too with no emulation layer that may degrade the performance of my presentations. By leveraging native boot from VHD, now I can have either Windows 7 or Windows Server 2008 R2 as my main OS and spin up extra bootable VHDs and multiboot them in a blink of an eye.

I think the ability to boot from VHD (natively) is like having a heap of computers sitting around at your disposal! Use them when you need them; otherwise leave them in your garage or throw them in the garbage bin if you will.

All right, enough talking. Let’s just go ahead and get busy.

Read more…

Categories: MOSS 2007, SharePoint 2010 Tags:

Speaking at TechDays Canada 2009

August 13th, 2009 No comments

Still working out on session details, but so far, it’s confirmed that I will be presenting one session in the Developing For Microsoft-Based Platform track at Techdays Canada 2009. My session is titled Developing and Consuming Services for SharePoint.

Try to buy your ticket while the early-bird deal is still in effect! The regular Price is $599 , but They’re offering $299 for early registrants <– oh boy, it’s well worth the cost! Here are the dates, cities and venues information:

City Date Venue
VANCOUVER SEPTEMBER 14-15 Vancouver Convention Centre
TORONTO SEPTEMBER 29-30 Metro Toronto Convention Centre
HALIFAX NOVEMBER 2-3 World Trade & Convention Centre
CALGARY NOVEMBER 17-18 Calgary Stampede
MONTREAL DECEMBER 2-3 Mont-Royal Centre
OTTAWA DECEMBER 9-10 Hampton Inn & Convention Centre
WINNIPEG DECEMBER 15-16 Winnipeg Convention Centre

For more information , please visit Techdays 2009 official Web site here.I will update this post about other sessions I will be presenting at a later date when I get the full details. Looking forward to seeing you’ll there!

Categories: MOSS 2007 Tags:

A PG blog Dedicated to SSRS Integration with SharePoint

August 10th, 2009 No comments

I just came across this blog that is promissed to be focused on SSRS integration and SharePoint. Awsome Idea and so needed!

Bookmark it NOW: http://blogs.msdn.com/prash/default.aspx.

Categories: MOSS 2007, SSRS Tags:

SharePoint Saturday Toronto Session Materials

July 15th, 2009 No comments

SharePoint Saturday Toronto has come to an end,but it was a very successful event IMO. Almost 200 attendees were able to make it to the Microsoft Campus in Mississuaga, GTA from all over Toronto and beyond…and boy , did you see the rain storm?!

First off – I would like to thank all of the attendees who showed up at my session – Best Practices for Developing SharePoint Applications. I had a blast and a great turnout, with some fantastic feedback and  follow-up questions on my presentation!

Next, I’m so sorry that some folks in the back of the room had to stand up through the entire thing cause there were not enough chairs available! Next year, I will bring a couple of portable chairs just in case 🙂

Last – Here are the code and PPT slides from my presentation at SharePoint Saturday this past weekend in Toronto.
arrow-ico12.gif PowerPoint Slides
arrow-ico12.gif Code

Remember, the safety net of following best practices lets us do our job without an “oops, what the heck should I do now?” kinda moment (See the guy on the second slide!).

Kudo’s to Kanwal, Muhsin and Hasan Shahid to put this event together!

Categories: MOSS 2007, UG/CodeCamp Tags: