Problem compiling part 2

Mar 13, 2009 at 4:45 PM
I ran into a problem compiling because I'm working on a WinXP machine. My version of the Microsoft.Interop.Security.AzRole is the 1.2.00 version. When i google the problem I see two solutions

1) Upgrade to Vista
2) Redirect to the older version of the dll

      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Interop.Security.AzRoles" publicKeyToken="31bf3856ad364e35"
            culture="neutral" />
        <bindingRedirect oldVersion="2.0.0.0" newVersion="1.2.0.0"/>
      </dependentAssembly>

both of these solutions seem, pretty "hack-like" to me. Does anyone else have a better suggestion?

Thanks
Mar 13, 2009 at 11:50 PM

Hi cmacholz,

just delete the pfx and create a new one.

The pfx in my source code is password protected to guarantee that only the orginal source code (me) can produce NetSqlAzMan.dll signed with the original private key token.

If the private/public key token change (because the pfx is changed) ... NetSqlAzMan.dll is generated from different developers (custom versions) .

 

You can delete and re-create a new .pfx without any problems.

 

Regards,

Andrea.

Mar 16, 2009 at 10:18 PM
Once I got (by installing the Admin pack on a vista machine) the 2.0 version of the AzRoles and added a reference to it the solution compiled.  (My development machine is and XP box and it only has the 1.2 version installed.)
Mar 17, 2009 at 9:09 AM
Add a reference to the DLL with the lowest available version.

Regards,

Andrea.