After porting C# code to 64 bit Vista, I get a BadFormatException when attempting to use .net remoting with security turned on. The assumption is that the .NET remoting code is calling into a 32 bit security module.

I am attempting to turn security on by including the following fragment in the <system.runtime.remoting> section of app.config file. This is a direct port from the functioning 32 bit code.

<clientProviders>
<formatter ref="binary" />
<provider type="Microsoft.Runtime.Remoting.Security.SecurityClientChannelSinkProvider, Microsoft.Runtime.Remoting.Security, Culture=neutral, Version=2.0.18.0"
securityPackage="ntlm" impersonationLevel="identify" authenticationLevel="call" />
</clientProviders>

So, the questions are: Is there .net remoting provider type that IS 64 bit compatible? Am I just using the wrong provider type?