Category Archives

Visual Studio 2012 ASP.NET 4.5 Custom Membership Provider Error

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

Comments Off on Visual Studio 2012 ASP.NET 4.5 Custom Membership Provider Error

System.Security.SecurityException Writing to the Application Event Log on Windows Server 2008 with ASP.NET 4.0

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

Comments Off on System.Security.SecurityException Writing to the Application Event Log on Windows Server 2008 with ASP.NET 4.0

Configure ASP.NET with Load Balancing on a Web Farm to Avoid ViewState Errors

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

Comments Off on Configure ASP.NET with Load Balancing on a Web Farm to Avoid ViewState Errors

InstallShield Error -2147219705 with .NET 4.0 and DotNetCoCreateObject() in InstallScript

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

Comments Off on InstallShield Error -2147219705 with .NET 4.0 and DotNetCoCreateObject() in InstallScript

.NET 4.5 Developer Preview Installation Error on Windows XP

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

Comments Off on .NET 4.5 Developer Preview Installation Error on Windows XP

COM Unknown error (0x80005000) with PrincipalContext in the System.DirectoryServices.AccountManagement .NET Namespace

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

Comments Off on COM Unknown error (0x80005000) with PrincipalContext in the System.DirectoryServices.AccountManagement .NET Namespace

ASP.NET MVC3 Razor Error CS0012: The type is defined in an assembly that is not referenced

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.

Comments Off on ASP.NET MVC3 Razor Error CS0012: The type is defined in an assembly that is not referenced

ASP.NET Error: Could not load file or assembly ‘Some.dll’ or one of its dependencies. An attempt was made to load a program with an incorrect format.

I was testing an ASP.NET application installation on a test server recently and ran into the following error when I ran the application. Could not load file or assembly ‘Some.dll” or one of its dependencies. An attempt was made to load a program with an incorrect format. I hadn’t seen this during development on my

Comments Off on ASP.NET Error: Could not load file or assembly ‘Some.dll’ or one of its dependencies. An attempt was made to load a program with an incorrect format.

Exchange 2007 PowerShell Errors with New-Mailbox Cmdlet and IIS with ASP.NET

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

Comments Off on Exchange 2007 PowerShell Errors with New-Mailbox Cmdlet and IIS with ASP.NET

Active Directory Attributes for Remote Desktop Services

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?

Sign in
classic
Forgot password?
×
Sign up

(*) Required fields

I agree with OptimaSales Terms & Privacy Policy

×