I have a membership provider assembly that I wish to add to IIS7. I was going to leave this in the App_Code file for the web app, but IIS7 has asked me to provide a strong name assembly, which I have. Now I get this when trying to acccess ASP.Net Users in IIS
The assembly name or codebase was invalid. Exception from HRESULT 0x80131047
The machine.config contains
<providers>
<add
name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider,
System.Web,
Version=2.0.0.0,
Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true" applicationName="/"
requiresUniqueEmail="false"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""/>
<add
name="AspNetReadOnlyXmlMembershipProvider"
type="AspNetReadOnlyXmlMembershipProvider,
Version=1.0.0.0,
Culture=neutral,
PublicKeyToken=63c37b63efdc6bcc,
processorArchitecture=x86"/>
</providers>
I am wondering if this has anything to do with using Visual Studio 2008 as the gacutil shows .Net Framework version 3.5. The code itself looks fine.