By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,165 Members | 1,916 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,165 IT Pros & Developers. It's quick & easy.

Error while executing .NET remoing security dlls

P: n/a
Hi
I am a newbie to .NET remoting, I am trying to implementauthorization using SSPI example provided by Michael Barnett. Ihave included the required dll(Microsoft.Samples.Security.SSPI.dll andMicrosoft.Samples.Runtime.Remoting. Security in both my clientand server. I have have defined my config files as follows
for client

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application>
<channels>
<channel ref="http" >
<clientProviders>
<formatter ref="binary" />
<provider type="Microsoft.Samples.Runtime.Remoting.Security. SecurityClientChannelSinkProvider, Mircosoft.Samples.Runtime.Remoting.Security"securi tyPackage="negotiate" impersonationLevel="identify"authenticationLevel=" packetPrivacy"/>
</clientProviders>
</channel>
</channels>
<client>
<wellknown type="General.IPersonFactory, General"url="http://localhost:1235/MyPersonManager.rem" />
</client>
</application>
</system.runtime.remoting>

</configuration>

and for the server
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application>
<channels>
<channel ref="http" port="1235">
<serverProviders>
<providertype="Microsoft.Samples.Runtime.Remoting. Security.SecurityServerChannelSinkProvider, Mircosoft.Samples.Runtime.Remoting.Security"securi tyPackage="negotiate" authenticationLevel="packetPrivacy"/>
<formatter ref="binary" />
</serverProviders>
</channel>
</channels>
<service>
<wellknown
type="Server.PersonManager, Server"ObjectUri="MyPersonManager.rem" mode="Singleton" />
</service>
</application>
</system.runtime.remoting>

</configuration>

It compiles fine but when I execute the exe I get the followingerror

Additional information: Remoting configuration failed with theexception System.IO.FileNotFoundException: File or assembly nameMircosoft.Samples.Runtime.Remoting.Security, or one of itsdependencies, was not found.
File name: "Mircosoft.Samples.Runtime.Remoting.Security"
at System.Reflection.Assembly.nLoad(AssemblyName fileName,String codeBase, Boolean isStringized, EvidenceassemblySecurity, Boolean throwOnFileNotFound, AssemblylocationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa meassemblyRef, Boolean stringized, Evidence assemblySecurity,StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(Stringasse mblyString, Evidence assemblySecurity, StackCrawlMark&stackMark)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Runtime.Remoting.RemotingConfigInfo.LoadTyp e(StringtypeName, String assemblyName)
atSystem.Runtime.Remoting.RemotingConfigHandler.Cr eateChannelSinkProvider(SinkProviderEntry entry, Boolean bServer)
atSystem.Runtime.Remoting.RemotingConfigHandler.Cr eateClientChannelSinkProviderChain(ArrayList entries)
atSystem.Runtime.Remoting.RemotingConfigHandler.Cr eateChannelFromConfigEntry(ChannelEntry entry)
atSystem.Runtime.Remoting.RemotingConfigHandler.Co nfigureChannels(RemotingXmlConfigFileData configData)
atSystem.Runtime.Remoting.RemotingConfigHandler.Co nfigureRemoting(RemotingXmlConfigFileData configData)

=== Pre-bind state information ===
LOG: DisplayName = Mircosoft.Samples.Runtime.Remoting.Security
(Partial)
LOG: Appbase = D:\work\Securityclient\bin\Debug\
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private,custom, partial, or location-based assembly bind).
LOG: Post-policy reference:Mircosoft.Samples.Runtime.Remoting.Secur ity
LOG: Attempting download of new URLfile:///D:/work/Securityclient/bin/Debug/Mircosoft.Samples.Runtime.Remoting.Security.DLL.
LOG: Attempting download of new URLfile:///D:/work/Securityclient/bin/Debug/Mircosoft.Samples.Runtime.Remoting.Security/Mircosoft.Samples.Runtime.Remoting.Security.DLL.
LOG: Attempting download of new URLfile:///D:/work/Securityclient/bin/Debug/Mircosoft.Samples.Runtime.Remoting.Security.EXE.
LOG: Attempting download of new URLfile:///D:/work/Securityclient/bin/Debug/Mircosoft.Samples.Runtime.Remoting.Security/Mircosoft.Samples.Runtime.Remoting.Security.EXE.
..

Any help is highly appreciated.

--------------------------------
From: prithvi g

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>DrgL5qjRnk2k1gvSm4cNSg==</Id>
Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.