Re: Remoting security error



Hello Mathai,

Thanks for your reply.

Regarding on your new test result and the questions, here are my
understanding on this:

1. Why sharing a printer solved the initial exception.
===============================
This is not the expected resolution since I can not find any relationship
between shared printer and the remoting application. One possible reason is
that the shared printer has enabled some certain network security setting
which is originally disabled. Anyway, this is still specific to the
machine. I would suggest you test on some other machine whether remoting
application and run correctly.


2. What should I do next to solve the current exception
===============================
From the exception message:

***************************
'A remote side security requirement was not fulfilled during
authentication.
Try increasing the ProtectionLevel and/or ImpersonationLevel.'
***************************

we can get that the runtime indicate the security requirement at
server-sideis beyond the allowed security setting at client. Based on my
experience, this is related to the "TokenImpersonationLevel" setting in
client channel(by default it is identification) while I've used Impersonate
at server-side (in my original code sample). However, I did manually adjust
the client "TokenImpersonateLevel" to "impersonation" at client (in my
original code) and it worked on my local test environments.

Anyway, I've done some further modification on the test solution(with the
following changes):

1) set the remoting client's "TokenImpersonateLevel" to Delegation which is
the highest one we can set.

2) turn off impersonate at server-side for the server channel.

You can try the modifed solution(recommend test on multiple environments)
to see whethe it helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.














.



Relevant Pages

  • Re: Exception message localization
    ... >>I am somewhat confused with Brad Abrahms' Exception Message Guidelines ... the server-side exception message should probably never ... > messages should be localized into a language that their eventual consumer ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Exception message localization
    ... >I am somewhat confused with Brad Abrahms' Exception Message Guidelines ... > "Do localize exception message". ... These guidelines are targeted at API developers. ... the server-side exception message should probably never be ...
    (microsoft.public.dotnet.framework.clr)
  • Re: EnableEventValidation exception when dynamically adding controls on client with JavaScript
    ... As for the exception you mentioned, it does be caused by the Event ... EnableEventValidation exception when dynamically adding controls ... I understand why this exception occurs (because I am creating new controls ... what I understand I cannot register them for event validation server-side ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How do I validate a WebMethods properties?
    ... You could throw an exception, but any exception you throw comes back as a ... SOAP exception. ... Throw a custom exception on the server-side, ... > // Validation Code ...
    (microsoft.public.dotnet.framework.aspnet.webservices)

Loading