An error occurred while processing the incoming e-mail The error was: Value cannot be null. Parameter name: stream.

January 30, 2013 3 Comments

  Happen to have a calendar that is email enabled on SharePoint but calendar items aren’t being created from an email? Check your ULS logs on your SharePoint server that and see if you have something similar to this error below: An error occurred while processing the incoming e-mail file C:\Inetpub\mailroot\Drop\86d3c93401cab0ba0000002b.eml. The error was: Value …

Get username and domain of Foreign Security Principal from domain trust

January 14, 2013 2 Comments

You can use this code to determine the DOMAIN\username from the Foreign Security Principal which is really the SID of the account. Pass the full distinguishedName of the ForeignSecurityPrincipal. static string GetUserNameOfFSP(string ForeignSecurityPrincipal) { //Returns with syntax of "DOMAIN\logonname" try { DirectoryEntry user = new DirectoryEntry("LDAP://" + ForeignSecurityPrincipal); SecurityIdentifier sid = new SecurityIdentifier((byte[])user.InvokeGet("objectSid"), 0); NTAccount …

Authenticate a user against Active Directory including domain trust

January 14, 2013 0 Comments

Authenticate a user’s credentials with this code against a domain. This also works with a domain trust. static bool AuthenticateUser(string userName, string password, string domain) { bool authentic = false; try { DirectoryEntry entry = new DirectoryEntry("LDAP://" + domain, userName, password); object nativeObject = entry.NativeObject; authentic = true; } catch (DirectoryServicesCOMException e) { Console.Write(e.Message); } …

SharePoint 2010 Alerts – Daylight Savings Time (DST)

November 7, 2012 9 Comments

  Are your alerts behind or ahead by an hour? Microsoft has created a PowerShell script to automatically update your alerts for daylight savings time. http://technet.microsoft.com/en-us/library/cc508847.aspx You’ll want to make sure you’re running the script as a SharePoint administration from within the SharePoint Management Shell. Add the PowerShell script to the scope . ./Invoke-AlertFixup.ps1 (make …

SharePoint 2010: Unable to Display This Web Part. Error while executing web part: System.StackOverflowException: Operation caused a stack overflow.

June 28, 2012 0 Comments

  This was caused by the XsltTransformTimeout when using an Xslt list view. This is corrected by installing the February 2012 Cumulative Update and by making the following change via PowerShell. Check Current Setting $farm = Get-SPFarm $farm.XsltTransformTimeOut The default setting is 1 second. The PowerShell code below changes it to 5 seconds which should …

OABGen will skip user entry…SMTP address is invalid

January 13, 2012 3 Comments

  Receiving an error message on your mailbox server… Source:      MSExchangeSA Event ID:    9325, 9320, 9327 Message:   OABGen will skip user entry ‘Display Name’ in address list ‘\Address List’ because SMPT address ‘’ is invalid. This was happening on my server, however the names that were shown didn’t have mailboxes. This is how I fixed …

ASP.NET Web Application Uses Old User Name

December 28, 2011 0 Comments

Has a user’s name changed recently and they can no longer access a asp.net web application, or the information on the web application still reflects the old user name? This could be because of the server caching the old username and not looking it up each time. To confirm whether this is what is happening …

Trend Micro OfficeScan–Manual UnInstall–Automated

December 23, 2011 2 Comments

Recently I’ve been having issues on a few workstations where the Trend Micro OfficeScan installation became corrupt. Attempting to re-install OfficeScan again would result in an error message saying it was already installed. All the tools that Trend Micro provided wouldn’t remove the remnants. Trend does offer a manual uninstallation method (http://esupport.trendmicro.com/solution/en-us/1039283.aspx), but takes too …

Outlook Social Connector–Missing GAL Photo

December 22, 2011 4 Comments

  If your Outlook Social Connector is missing photos for contacts that are in the global address list, it could be because OSC is looking at your personal contacts. To force it to look at the GAL for the photo, set this registry key.   HKCU\Software\Microsoft\Office\14.0\Outlook Create DWORD PreferADPhotos with decimal value 1

WindowsIdentity Impersonation – An attempt was made to reference a token that does not exist

October 18, 2011 0 Comments

  Was working on a ASP.NET app to impersonate a domain user to access a network resource and came across the error “An attempt was made to reference a token that does not exist”. When defining the domain for the following function, make sure it is in the FQDN format. domain.com and not DC=domain,DC=com  private …