Security in .Net Remoting on Itanium
Microsoft.Samples.Security.SSPI.dll
Microsoft.Samples.Runtime.Remoting.Security.dll
An aplication run fine on my Itanium if I use .Net Framework 1.1 with these DLLs.
But when i try to run the same aplication in .Net Framework 2.0 appears the next error:System.BadImageFormatException: is not a valid Win32 application.
Unhandled Exception: System.Runtime.Remoting.RemotingException: Remoting configu
ration failed with the exception 'System.Reflection.TargetInvocationException: E
xception has been thrown by the target of an invocation. > System.BadImageFor
matException: is not a valid Win32 application. (Exception from HRESULT: 0x8007
00C1)
at Microsoft.Samples.Runtime.Remoting.Security.SecurityServerChannelSinkProvi
der..ctor(IDictionary properties, ICollection providerData)
End of inner exception stack trace
at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStru
ct& signature, IntPtr declaringType)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, B
inder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder bin
der, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Runtime.Remoting.RemotingConfigHandler.CreateChannelSinkProvider(Si
nkProviderEntry entry, Boolean bServer)
at System.Runtime.Remoting.RemotingConfigHandler.CreateServerChannelSinkProvi
derChain(ArrayList entries)
at System.Runtime.Remoting.RemotingConfigHandler.CreateChannelFromConfigEntry
(ChannelEntry entry)
at System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXm
lConfigFileData configData, Boolean ensureSecurity)
at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXm
lConfigFileData configData, Boolean ensureSecurity)'.
at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXm
lConfigFileData configData, Boolean ensureSecurity)
at System.Runtime.Remoting.RemotingConfiguration.Configure(String filename, B
oolean ensureSecurity)
at System.Runtime.Remoting.RemotingConfiguration.Configure(String filename)
at Servidor.Class1.Main(String[] args) in C:\ITANIUM\ClienteRemoting .net 2.0
\Servidor\Class1.cs:line 19
Also the same aplication (with .Net Framework run fin on 32bit SO)
I try to compile the source on my Itanium but I have an error when link:
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
Generating Code...
link.exe /NOLOGO /NODEFAULTLIB:msvcrt.lib /INCREMENTAL:NO /INCLUDE:"__Dl
lMainCRTStartup@12" /DLL /DEBUG /OUT:D:\Jul12\SSPI\Microsoft\Samples\Security\SS
PI\bin\Microsoft.Samples.Security.SSPI.dll /PDB:D:\Jul12\SSPI\Microsoft\Samples\
Security\SSPI\bin\Microsoft.Samples.Security.SSPI.pdb msvcrt.lib Secur32.lib ***
emblyAttributes.obj AssemblyInfo.obj Stdafx.obj SSPI.obj Exception.obj
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; u
se /NODEFAULTLIB:library
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
D:\Jul12\SSPI\Microsoft\Samples\Security\SSPI\bin\Microsoft.Samples.Security.SSP
I.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\bin\l
ink.exe"' : return code '0x460'
Stop.
****************** ERROR ERROR ERROR ******************
NMAKE : fatal error U1077: 'for' : return code '0x2'
Stop.
My questions:
1) Can I use these DLLs on Itanium?
2) Exists an version of these DLLs for .Net Framework 2.0, because the
code compile fine in .Net Framework 1.1, but exists some error when try
to compile in .Net 2.0 (SSPI)
3) Do you know other library (comercial) that do the same things that these DLLS
Thanks a lot.

