Reconnect and fix Exchange/Windows 2003 issues after DC crash.

Today, I had the pleasure to start the week with a SAN crash that lasted 45 minutes; well beyond the acceptable boundaries of Active Directory. After recovering from the crash, all my VMs started normally except my Exchange servers. On one of them, IIS Worker was always crashing on startup. To fix this, I did the following:

– Switch all applications pools identities under Application Pool in IIS Manager to Network Service.

– Verifythe special permissions for Network Service on HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ASP.NET_2.0.50727\Names to: Query Value, Set Value, Create Subkey, Enumerate Subkeys, Notify, Read Control

– Restart the server

– Change The ExchangeApplicationPool Identity back to Local System

Next, on all of my Exchange servers, I began getting the Application event ID MSExchangeDSAccess 2114 {Service Name, PID}, Topology Discovery failed, error 0x8007077f. The 0x8007077f points to a subnet misconfiguration in DSSITE.msc. After adding my subnet to the Default-First-Name-Site, the error never came back.

Finally, the domain was pinging properly and everything seemed to be fine except that on all my Exchange servers: System Attendant, Information Store and MTA Stacks services would not start.  After running the command “nltest /sc_reset:{DomainName}, all the services successfully started .

Import Exchange Online Powershell cmdlets in your Powershell Profile

January 12, 2012 Leave a comment

Here’s a handy powershell function I found online to manage exchange online. Perfect to integrate into your powershell profile:

function Connect-ExchangeOnline
{
$LiveCred = Get-Credential
$global:Session365 = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

Import-PSSession $global:Session365
}

function Disconnect-ExchangeOnline
{
Remove-PSSession $global:Session365
}

Next time you need to issues exchange online cmdlets, from a powershell prompt just type

Connect-ExchangeOnline

Fix recurring .NET Framework updates on Windows 2003 SP2

December 12, 2011 Leave a comment

It’s a known fact, Microsoft .NET framework updates can get corrupted overtime. As a result, Windows Update will show the same updates over and over. For instance, I have some servers asking to install the 3 updates below.

*Note: The proposed solution will work with any recurring .NET frameworks updates.

Even if the installation is successful, Windows Update will display them again after it checks with the WSUS server. The strange thing is that these updates are properly installed; I made sure of it by looking at the registry keys and verifying if the updated file were matching the version described in the knowledge base article. So after reading pretty much all Microsoft articles I could find on the matter I decided to what they recommended…uninstalling all versions of Framework. Since I’m lazy, I’ve used the .NET Framework Cleanup Tool by Aaron Stebner, by the way thank you Aaron for such a great tool! So 25 reboots later all versions of .NET Frameworks were reinstalled with all the latest hotfixes and unfortunately the same hotfixes kept reappearing. 😦

Since I found no easy solution I went nutz and decided to install every .NET Framework hotfix I could find and it did the trick! My guess is that because I installed .NET Framework hotfixes, some LDR branch files overwrites corrupted ones and from there, I was able to install the remaining updates proposed by WSUS. Keep in mind that those hotfixes are not available through Windows Updates because Microsoft mostly releases security patches via Windows Updates. Hotfixes are usually included in upcoming Service Packs when the products are still supported and since its Windows 2003 it’s not going to happen. Uunless they find a new security issue involving one of the files listed below, these fix will never be released via WSUS. So my advice with Microsoft hotfixes is to ALWAYS INSTALL AND TEST THEM because you can’t afford waiting for Service Packs that might never come.

So here’s a list of all .NET Framework 2.0 Service Pack 2 hotfixes I used:

.NET Framework 2.0 Service Pack 2
KB Article Description File(s) version
KB974620 Error message when you try to deploy a .NET Framework 2.0-based ClickOnce application that is signed with a chained certificate: “The application is improperly formatted”. Syste.deployment.dll
2.0.50727.4401
KB974893 FIX: An unexpected Failure Audit event is logged for the local credential when you run a .NET Framework 2.0-based application that tries to connect to a remote computer. System.management.dll
2.0.50727.4065
Wminet_utils.dll
2.0.50727.4065
KB2260240 FIX: “The requested mode is invalid” error message when you run a managed application that uses the .NET Framework 3.5 SP1 or an earlier version to access a Windows Server 2008 R2 domain or forest. System.directoryservices.dll
2.0.50727.4467
KB975410
FIX: Exception error message in an ASP.NET 2.0 website when you use a control that has the ToolboxBitmap attribute defined: “GDI+ is not properly initialized (internal GDI+ error)”. System.drawing.dll
2.0.50727.4413
KB2255379 Error message when you run an ADO.NET Framework application to remotely perform read or write operations on FILESTREAM data on a SQL Server 2008 server. System.data.dll
2.0.50727.4461
KB980833 An “ArgumentException” exception occurs when a .NET Framework 3.5-based application uses the “DataTable.Select” method. System.data.resources.dll
2.0.50727.4016
System.data.dll
2.0.50727.4452
KB976814 FIX: A System.InvalidOperationException exception occurs when you use a WCF client proxy that is generated by the ServiceModel Metadata Utility tool from the service metadata that is in the .NET Framework 3.5. System.xml.dll
2.0.50727.4425
KB974031 FIX: A System.StackOverFlowException exception is thrown when the Accessibility interfaces of a DataGridView control are accessed after you programmatically set the Visible property of rows in the control to false. System.windows.forms.dll
2.0.50727.5008
KB2254512 FIX: The TextFieldParser.EndOfData method returns True when the TextFieldParser object does not reach the end of text data in a Microsoft .NET Framework 2.0-based application or a Microsoft .NET Framework 3.5 SP1-based application. Microsoft.visualbasic.dll
8.0.50727.4463
KB971521 A System.Runtime.Remoting.RemotingException exception is thrown when you deploy a SharePoint solution on a SharePoint Web server that is running the .NET Framework 2.0 SP2. System.runtime.remoting.dll
2.0.50727.4056
KB960754 FIX: You receive the ObjectDisposedException exception when you refer to the Transaction.Current.TransactionInformation object. System.data.dll
System.data.oracleclient.dll
2.0.50727.4020

You can get find and download the hotfixes on Microsoft Connect and The Hotfix Share websites.

High Memory Usage – Windows Server 2008 R2 File Server

I recently reinstalled my file server on Windows Server 2008 R2 on VMware ESXi 4.1.1 and I noticed something very strange and very alarming. Couple hours after booting up, the server would use all of the physical memory as shown on the screenshots below.

By design, some services in 2008 R2 like Lsass.exe and dfs-replication will cache memory for future utilization. Exchange has the same behavior but on much bigger scale as it can eat all available memory. This cache is not a problem because the cached memory can be released and given to the OS or applications if needed be and doesn’t create any performance related issues. Note that this behavior is new to 2008 R2. In previous versions of Windows Server, you had to install Dynamic Cache Service to throttle the cache growth but it is no longer needed in the current version of Windows due to some kernel improvement. I then found a very useful tool  from Sysinternals called RamMap. This tool creates a map of the memory allocated by the operating system.

This is where I found the cause of the “memory leak”. As per Technet ” Metafile is part of the system cache and consists of NTFS metadata. NTFS metadata includes the MFT as well as the other various NTFS metadata files (see How NTFS Works for more details, and of course Windows Internals is a great reference). In the MFT each file attribute record takes 1k and each file has at least one attribute record. Add to this the other NTFS metadata files and you can see why the Metafile category can grow quite large on servers with lots of files.” After adding 1 GB of RAM to my server, the Metafile stabilized to 1.5 GB of allocated memory.

Citrix Monitoring Script Event 2 0x80070005 error

February 25, 2010 Leave a comment

Symptoms: XenApp users cannot connect to the server and this event is logged in the Event Viewer every 5 minutes.

Resolution: Reinstall the XenApp WMI providers

Go to Start-> RUN -> type appwiz.cpl and press ENTER, select Citrix XenApp for Windows and click Change

Select the WMI Providers and choose Entire feature will be unavailable, click next and when the change is done reboot.

When the machine has done rebooting, repeat the same steps except this time choose Entire feature will be installed on local hard drive.

Then Open CMD, change the directory to %ProgramFiles%\Citrix\System32\Citrix\WMI and run for /f %s in (‘dir /b *.mof *.mfl’) do mofcomp %s command.

This should re-register all the WMI providers and the errors should disappear.

Source:
http://forums.citrix.com/thread.jspa?threadID=95449&tstart=0



Categories: Citrix, XenApp

Hotfix Rollup Pack 6 Beta Release for XenApp 5/4.5

February 23, 2010 Leave a comment

Citrix just released Rollup Pack 6 Beta for XenApp 5/4.5, you can get it here. You need a mycitrix account to download the hotfix. The prerequisites are the same as Rollup Pack 5.

Categories: Citrix, XenApp

The IMA service failed to start after Rollup Pack 5 update

February 23, 2010 Leave a comment

I recently updated a bunch of XenApp 4.5 servers to Rollup Pack 5 and it went smoothly except on only one server…so far. I noticed that the IMA and SMA failed to start after the upgrade. Here’s the errors I was getting in the Event Viewer.

The first is eventID 3609 IMAService
Failed to load plugin MfSrvSs.dll with error IMA_RESULT_REGISTRY_ERROR

The second is eventID 3601 IMAService
Failed to load initial plugins with error IMA_RESULT_REGISTRY_ERROR

The third is eventID 7024 Service Control Manager
The Independent Management Architecture service terminated with service-specific error 2147483690 (0x8000002A).

The fourth is eventID 7001 Service Control Manager
The Citrix SMA Service service depends on the Independent Management Architecture service which failed to start because of the following error:
The service has returned a service-specific error code.

After some research in the Citrix forums, I found that sometimes the PSRequired regedit value is reset to 0 after a Rollup Pack upgrade.

There is an official Citrix KB, which is still valid for the latest rollup packs even if it says differently… that explains why it was hard to find in first place.

Update: The issue is adressed in the Rollup Pack 6 (#209308) which is still beta. You can download it here.

Categories: Citrix, XenApp
Create your own website, free on WordPress.com.Create your own website.
Start free