I recently began using Visual Studio 2012 for new projects. I ran into a Visual Studio 2012 ASP.NET 4.5 Custom Membership Provider Error for my application using MVC 4. After adding the custom membership provider and hooking up the Web.config, the web application failed to load with the following Yellow Screen of Death error. This method cannot
I worked with a customer recently who ran into an error with one of our products on Windows Server 2008. It was a System.Security.SecurityException Writing to the Application Event Log on Windows Server 2008 with ASP.NET 4.0. We tracked the source of the error to a permissions issue with the Security event log key in
I am working with a customer who reported an issue recently with one of our applications they deployed to a hardware load balanced web farm. The error itself is quite straightforward. Exception occurred in System.Web: Invalid viewstate This obviously has something to do with the load balancing switching between servers but what’s the best way
We have a product that runs on .NET 4.0 and our InstallShield installer for the product uses the DotNetCoCreateObject() method to run some installation actions in an InstallScript custom action. The DotNetCoCreateObject() method works fine in our .NET 2.0 (and 3.0/3.5 by extension) products but we kept getting a run-time exception (-2147219705) when trying the same InstallScript with our
Microsoft released the beta of Visual Studio 11 last week and I wanted to take a spin around it. My development machine currently runs Windows XP SP3 and I didn’t think twice to download the .NET 4.5 Developer Preview to install as a prerequisite for Visual Studio 11. Alas, though, I ran into the following
While working on a project recently, I ran into the very undescriptive COM Unknown error (0x80005000) trying to instantiate a PrincipalContext to use for some Active Directory management needs. To support a number of directory connection scenarios—including AD, AD LDS and the local machine SAM—our application allows admins to configure any set of relevant parameters used
I came across an interesting compiler error message when working on an MVC3 Razor view the other day. I needed to bind model data from a type in the .NET System.DirectoryServices.AccountManagement namespace but received the following error when the View rendered. Compiler Error Message: CS0012: The type ‘System.DirectoryServices.AccountManagement.ContextType’ is defined in an assembly that is not referenced.
I recently was working on a customer implementation of our PeopleProvision solution and I needed to create a new Exchange mailbox for new user accounts in Active Directory. Our customer uses Exchange 2007 and, after installing the Exchange Management Shell that includes PowerShell cmdlets used to create mailboxes, the system seemed ready to go. I kept
We are working with a customer who needs to set some values for the Remote Desktop Services (RDS) Profile (formerly Terminal Services) attributes in Active Directory. Even after working with Active Directory and programming for it for more than 10 years, I’ve never had the need to access these attributes until now. Easy enough, right?