안녕하세요. Remoting 관련해서 질문이 있습니다.
리모팅으로 Server, Client 구성하여 작업중
Client 에서 Server쪽으로 접속시
"서버가 클라이언트 자격 증명을 거부했습니다."
라고 오류가 발생하는데요..
현재 설정파일을 사용중인데.. Remoting Activate 방식에서의 Framework 보안에서의 설정문제인거 같은데..
한참을 찾아도 해결방법이 안나오네요.
다음은 app.config 와 실사용쪽 구현 입니다.
*** Server App.Config ***
----------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<configuration>
<system.runtime.remoting>
<application>
<service>
<activated type="RemotingTest.Hello, Hello" />
<activated type="RemotingTest.MyRemote, Hello" />
<activated type="RemotingTest.MySerialized, Hello" />
</service>
<channels>
<channel type="System.Runtime.Remoting.Channels.Tcp.TcpChannel, System.Runtime.Remoting"
ref="tcp"
port="8086">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
<customErrors mode="Off"/>
</system.runtime.remoting>
</configuration>
*** Server 측 활성화 ***
HelloServer.cs
RemotingConfiguration.Configure(@"HelloServer.exe.config", true);
*** Client App.Config ***
<?xml version="1.0"?>
<configuration>
<system.runtime.remoting>
<application>
<client url="tcp://서버쪽IP:8086">
<activated type="RemotingTest.Hello, Hello" />
<activated type="RemotingTest.MyRemote, Hello" />
<activated type="RemotingTest.MySerialized, Hello" />
</client>
<channels>
<channel type="System.Runtime.Remoting.Channels.Tcp.TcpChannel, System.Runtime.Remoting"
ref="tcp"
port="8086"
impersonationLevel="Identify"
authenticationPolicy="Policy, policy">
<clientProviders>
<formatter ref="binary" />
</clientProviders>
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
<customErrors mode="Off"/>
</system.runtime.remoting>
</configuration>
*** Client 측 활성화 ***
RemotingConfiguration.Configure(@"HelloClient.exe.config", true);
Hello obj = new Hello();
if (obj == null)
{
Console.WriteLine("Could Not Locate Server");
return;
}
[최초 등록일: ]
[최종 수정일: 2/27/2008]