Why am I getting a TypeLoadException when defining a custom profile?

Posted by Jedidja on Stack Overflow See other posts from Stack Overflow or by Jedidja
Published on 2010-03-29T08:04:03Z Indexed on 2010/03/29 8:13 UTC
Read the original article Hit count: 405

I'm writing a .NET command-line application that will migrate users from an existing database into aspnetdb. To simplify the user-specific settings, I'm using the profile class that Joel Spolsky wrote about here.

It works great in the ASP.NET MVC website, but for some reason it's throwing a TypeLoadException when being used from this new application. I'm not sure why the framework is trying to load the new class from System.Web.

© Stack Overflow or respective owner

Related posts about asp.net-membership

Related posts about profile