none
WCF hosted in a restricted appdomain RRS feed

  • Question

  • Hello,

    I've got a problem with a wcf service hosted in a restricted appdomain.

    This appdomain have a net.pipe service, that allows client to communicate with the application. It provides a simple contract with 2 operations, both are OneWay.

    My probleme is that the ReceiveMessage operation does not fail, but SendMessage fails with this exception :

    "A first chance exception of type 'System.Runtime.CallbackException' occurred in System.ServiceModel.dll"

    The inner Exception is the basic security exception :  "Request failed." , saying that the assembly needs full trust.

    The assembly has been added to the trust list of the app domain and allows partialy trust caller.

    The strange part is that one operation works, not the other one.

    Here is the interface contract :

    [ServiceContract(
            Name = "DuplexExtendedService",
            Namespace = "http://schemas.contoso.com/tech/2011/07/28/WSSOAP/DuplexExtendedService",
            SessionMode = SessionMode.Required,
            CallbackContract = typeof(IDuplexExtendedServiceClient))]
        public interface IDuplexExtendedService : IConnectionService
        {
            [OperationContract(Name = "SendMessage", IsOneWay = true)]
            void ReceivedMessage(Message message);
        }
    
        [ServiceContract(
            Name = "DuplexExtendedServiceClient",
            Namespace = "http://schemas.contoso.com/tech/2011/07/28/WSSOAP/DuplexExtendedServiceClient",
            SessionMode = SessionMode.Required)]
        public interface IDuplexExtendedServiceClient
        {
            [OperationContract(Name="ReceivedMessage", IsOneWay = true)]
            void SendMessage(Message message);
        }

    Anyone have an idea about this ?

    Thanks


    Tuesday, July 16, 2013 1:25 PM

Answers

All replies

  • Hi,

    The First chance exception messages are not errors and it most often do not mean there is a problem in the code. You can just ignore them.

    If you have met some other error, please post the detail error message here.

    And you can enable the wcf tracing to find the cause about the error:

    #How to enable the wcf tracing:
    http://msdn.microsoft.com/en-us/library/ms733025.aspx .

    Hope it can help you.

    Best Regards.


    Amy Peng
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, July 17, 2013 3:17 AM
    Moderator
  • Hello, the wcf tracing system does not provide more information. Here are the different elements :

    Here are all the details, from top to down :

    1

    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    <EventID>524299</EventID>
    <Type>3</Type>
    <SubType Name="Warning">0</SubType>
    <Level>4</Level>
    <TimeCreated SystemTime="2013-07-17T08:19:08.8068717Z" />
    <Source Name="System.ServiceModel" />
    <Correlation ActivityID="{b035c7fa-4afc-497c-b568-37a5b7d15307}" />
    <Execution ProcessName="WygBot.Launcher.vshost" ProcessID="14652" ThreadID="6" />
    <Channel />
    <Computer>DEVNET44</Computer>
    </System>
    <ApplicationData>
    <TraceData>
    <DataItem>
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Warning">
    <TraceIdentifier>http://msdn.microsoft.com/fr-FR/library/System.ServiceModel.CommunicationObjectFaulted.aspx</TraceIdentifier>
    <Description>Faulted System.ServiceModel.Channels.ServerSessionPreambleConnectionReader+ServerFramingDuplexSessionChannel</Description>
    <AppDomain>MyBot</AppDomain>
    <Source>System.ServiceModel.Channels.ServerSessionPreambleConnectionReader+ServerFramingDuplexSessionChannel/53631174</Source>
    </TraceRecord>
    </DataItem>
    </TraceData>
    </ApplicationData>
    </E2ETraceEvent>


    2

    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    <EventID>524299</EventID>
    <Type>3</Type>
    <SubType Name="Warning">0</SubType>
    <Level>4</Level>
    <TimeCreated SystemTime="2013-07-17T08:19:08.8108713Z" />
    <Source Name="System.ServiceModel" />
    <Correlation ActivityID="{b035c7fa-4afc-497c-b568-37a5b7d15307}" />
    <Execution ProcessName="WygBot.Launcher.vshost" ProcessID="14652" ThreadID="6" />
    <Channel />
    <Computer>DEVNET44</Computer>
    </System>
    <ApplicationData>
    <TraceData>
    <DataItem>
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Warning">
    <TraceIdentifier>http://msdn.microsoft.com/fr-FR/library/System.ServiceModel.CommunicationObjectFaulted.aspx</TraceIdentifier>
    <Description>Faulted System.ServiceModel.Channels.ServiceChannel</Description>
    <AppDomain>MyBot</AppDomain>
    <Source>System.ServiceModel.Channels.ServiceChannel/35959736</Source>
    </TraceRecord>
    </DataItem>
    </TraceData>
    </ApplicationData>
    </E2ETraceEvent>

    3

    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    <EventID>524291</EventID>
    <Type>3</Type>
    <SubType Name="Warning">0</SubType>
    <Level>4</Level>
    <TimeCreated SystemTime="2013-07-17T08:19:09.1899204Z" />
    <Source Name="System.ServiceModel" />
    <Correlation ActivityID="{b035c7fa-4afc-497c-b568-37a5b7d15307}" />
    <Execution ProcessName="WygBot.Launcher.vshost" ProcessID="14652" ThreadID="6" />
    <Channel />
    <Computer>DEVNET44</Computer>
    </System>
    <ApplicationData>
    <TraceData>
    <DataItem>
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Warning">
    <TraceIdentifier>http://msdn.microsoft.com/fr-FR/library/System.ServiceModel.CommunicationObjectAbortFailed.aspx</TraceIdentifier>
    <Description>Failed to abort System.ServiceModel.Channels.ServerSessionPreambleConnectionReader+ServerFramingDuplexSessionChannel</Description>
    <AppDomain>MyBot</AppDomain>
    <Source>System.ServiceModel.Channels.ServerSessionPreambleConnectionReader+ServerFramingDuplexSessionChannel/53631174</Source>
    </TraceRecord>
    </DataItem>
    </TraceData>
    </ApplicationData>
    </E2ETraceEvent>


    4

    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    <EventID>524291</EventID>
    <Type>3</Type>
    <SubType Name="Warning">0</SubType>
    <Level>4</Level>
    <TimeCreated SystemTime="2013-07-17T08:19:09.1899204Z" />
    <Source Name="System.ServiceModel" />
    <Correlation ActivityID="{b035c7fa-4afc-497c-b568-37a5b7d15307}" />
    <Execution ProcessName="WygBot.Launcher.vshost" ProcessID="14652" ThreadID="6" />
    <Channel />
    <Computer>DEVNET44</Computer>
    </System>
    <ApplicationData>
    <TraceData>
    <DataItem>
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Warning">
    <TraceIdentifier>http://msdn.microsoft.com/fr-FR/library/System.ServiceModel.CommunicationObjectAbortFailed.aspx</TraceIdentifier>
    <Description>Failed to abort System.ServiceModel.Channels.ServiceChannel</Description>
    <AppDomain>MyBot</AppDomain>
    <Source>System.ServiceModel.Channels.ServiceChannel/35959736</Source>
    </TraceRecord>
    </DataItem>
    </TraceData>
    </ApplicationData>
    </E2ETraceEvent>

    5 (error)

    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    <EventID>131075</EventID>
    <Type>3</Type>
    <SubType Name="Critical">0</SubType>
    <Level>1</Level>
    <TimeCreated SystemTime="2013-07-17T08:19:09.1979486Z" />
    <Source Name="System.ServiceModel" />
    <Correlation ActivityID="{b035c7fa-4afc-497c-b568-37a5b7d15307}" />
    <Execution ProcessName="WygBot.Launcher.vshost" ProcessID="14652" ThreadID="6" />
    <Channel />
    <Computer>DEVNET44</Computer>
    </System>
    <ApplicationData>
    <TraceData>
    <DataItem>
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical">
    <TraceIdentifier>http://msdn.microsoft.com/fr-FR/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier>
    <Description>Throwing an exception.</Description>
    <AppDomain>MyBot</AppDomain>
    <Exception>
    <ExceptionType>System.Runtime.CallbackException, System.ServiceModel.Internals, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35</ExceptionType>
    <Message>A user callback threw an exception.  Check the exception stack and inner exception to determine the callback that failed.</Message>
    <StackTrace>
    at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
    at System.ServiceModel.Channels.TransportDuplexSessionChannel.OnFaulted()
    at System.ServiceModel.Channels.CommunicationObject.Fault()
    at System.ServiceModel.Channels.TransportDuplexSessionChannel.OnSend(Message message, TimeSpan timeout)
    at System.ServiceModel.Channels.OutputChannel.Send(Message message, TimeSpan timeout)
    at System.ServiceModel.Dispatcher.DuplexChannelBinder.Send(Message message, TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)
    at WygBot.IM.WSSOAP.Contacts.IDuplexExtendedServiceClient.SendMessage(Message message)
    at WygBot.IM.WSSOAP.Services.DualService.SendMessage(WygMessage message)
    at WygBot.IM.WSSOAP.Services.ServiceBase.Connector_MessageToSend(Object sender, WygMessage e)
    at WygBot.Engine.Interfaces.MessageReceivedHandler.Invoke(Object sender, WygMessage e)
    at WygBot.IM.WSSOAP.Connector.SendMessage(WygMessage message)
    at WygBot.Engine.Engine.SendMessage(String sessionId, WygMessage message)
    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]&amp; outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(IMessage reqMsg)
    at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(IMessage reqMsg)
    at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(Object[] args)
    at System.Threading.Thread.InternalCrossContextCallback(Context ctx, IntPtr ctxID, Int32 appDomainID, InternalCrossContextDelegate ftnToCall, Object[] args)
    at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage(IMessage reqMsg)
    at System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(IMessage msg)
    at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(Byte[] reqStmBuff, SmuggledMethodCallMessage smuggledMcm, SmuggledMethodReturnMessage&amp; smuggledMrm)
    at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatchCallback(Object[] args)
    </StackTrace>
    <ExceptionString>System.Runtime.CallbackException: A user callback threw an exception.  Check the exception stack and inner exception to determine the callback that failed. ---&gt; System.Security.SecurityException: Request failed.
       at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(RuntimeAssembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed)
       at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandleInternal rmh, Object assemblyOrString, SecurityAction action, Boolean throwException)
       at System.Security.PermissionListSet.CheckSetDemandWithModification(PermissionSet pset, PermissionSet&amp; alteredDemandSet, RuntimeMethodHandleInternal rmh)
       at System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandleInternal rmh)
       at System.ServiceModel.Channels.PipeConnection.CloseHandle(Boolean abort, String timeoutErrorString, TransferOperation transferOperation)
       at System.ServiceModel.Channels.PipeConnection.Abort(String timeoutErrorString, TransferOperation transferOperation)
       at System.ServiceModel.Channels.PipeConnection.Abort()
       at System.ServiceModel.Channels.DelegatingConnection.Abort()
       at System.ServiceModel.Channels.DelegatingConnection.Abort()
       at System.ServiceModel.Channels.TracingConnection.Abort()
       at System.ServiceModel.Channels.ServerSessionPreambleConnectionReader.ServerFramingDuplexSessionChannel.ReturnConnectionIfNecessary(Boolean abort, TimeSpan timeout)
       at System.ServiceModel.Channels.TransportDuplexSessionChannel.OnAbort()
       at System.ServiceModel.Channels.CommunicationObject.Abort()
       at System.ServiceModel.Dispatcher.DuplexChannelBinder.Abort()
       at System.ServiceModel.Channels.ServiceChannel.OnAbort()
       at System.ServiceModel.Channels.CommunicationObject.Abort()
       at System.ServiceModel.Channels.ServiceChannel.OnInnerChannelFaulted(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
       --- End of inner exception stack trace ---</ExceptionString>
    <InnerException>
    <ExceptionType>System.Security.SecurityException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
    <Message>Request failed.</Message>
    <StackTrace>
    at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(RuntimeAssembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed)
    at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandleInternal rmh, Object assemblyOrString, SecurityAction action, Boolean throwException)
    at System.Security.PermissionListSet.CheckSetDemandWithModification(PermissionSet pset, PermissionSet&amp; alteredDemandSet, RuntimeMethodHandleInternal rmh)
    at System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandleInternal rmh)
    at System.ServiceModel.Channels.PipeConnection.CloseHandle(Boolean abort, String timeoutErrorString, TransferOperation transferOperation)
    at System.ServiceModel.Channels.PipeConnection.Abort(String timeoutErrorString, TransferOperation transferOperation)
    at System.ServiceModel.Channels.PipeConnection.Abort()
    at System.ServiceModel.Channels.DelegatingConnection.Abort()
    at System.ServiceModel.Channels.DelegatingConnection.Abort()
    at System.ServiceModel.Channels.TracingConnection.Abort()
    at System.ServiceModel.Channels.ServerSessionPreambleConnectionReader.ServerFramingDuplexSessionChannel.ReturnConnectionIfNecessary(Boolean abort, TimeSpan timeout)
    at System.ServiceModel.Channels.TransportDuplexSessionChannel.OnAbort()
    at System.ServiceModel.Channels.CommunicationObject.Abort()
    at System.ServiceModel.Dispatcher.DuplexChannelBinder.Abort()
    at System.ServiceModel.Channels.ServiceChannel.OnAbort()
    at System.ServiceModel.Channels.CommunicationObject.Abort()
    at System.ServiceModel.Channels.ServiceChannel.OnInnerChannelFaulted(Object sender, EventArgs e)
    at System.EventHandler.Invoke(Object sender, EventArgs e)
    at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
    </StackTrace>
    <ExceptionString>System.Security.SecurityException: Request failed.
       at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(RuntimeAssembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed)
       at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandleInternal rmh, Object assemblyOrString, SecurityAction action, Boolean throwException)
       at System.Security.PermissionListSet.CheckSetDemandWithModification(PermissionSet pset, PermissionSet&amp; alteredDemandSet, RuntimeMethodHandleInternal rmh)
       at System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandleInternal rmh)
       at System.ServiceModel.Channels.PipeConnection.CloseHandle(Boolean abort, String timeoutErrorString, TransferOperation transferOperation)
       at System.ServiceModel.Channels.PipeConnection.Abort(String timeoutErrorString, TransferOperation transferOperation)
       at System.ServiceModel.Channels.PipeConnection.Abort()
       at System.ServiceModel.Channels.DelegatingConnection.Abort()
       at System.ServiceModel.Channels.DelegatingConnection.Abort()
       at System.ServiceModel.Channels.TracingConnection.Abort()
       at System.ServiceModel.Channels.ServerSessionPreambleConnectionReader.ServerFramingDuplexSessionChannel.ReturnConnectionIfNecessary(Boolean abort, TimeSpan timeout)
       at System.ServiceModel.Channels.TransportDuplexSessionChannel.OnAbort()
       at System.ServiceModel.Channels.CommunicationObject.Abort()
       at System.ServiceModel.Dispatcher.DuplexChannelBinder.Abort()
       at System.ServiceModel.Channels.ServiceChannel.OnAbort()
       at System.ServiceModel.Channels.CommunicationObject.Abort()
       at System.ServiceModel.Channels.ServiceChannel.OnInnerChannelFaulted(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
    The action that failed was:
    Demand
    The type of the first permission that failed was:
    System.Security.PermissionSet
    The demand was for:
    &lt;PermissionSet class="System.Security.PermissionSet"
    version="1"
    Unrestricted="true"/&gt;
    
    The granted set of the failing assembly was:
    &lt;PermissionSet class="System.Security.PermissionSet"
    version="1"&gt;
    &lt;IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Unrestricted="true"/&gt;
    &lt;IPermission class="System.Security.Permissions.FileDialogPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Access="Open"/&gt;
    &lt;IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Read="C:\IAS\IAS Core\Development\OUTPUT\Debug\Bots\MyBot;C:\Windows\Microsoft.NET\assembly;C:\Users\mathias.herbaux\AppData\Local\Temp\;C:\Windows\Microsoft.NET\Framework64"
    Write="C:\IAS\IAS Core\Development\OUTPUT\Debug\Bots\MyBot;C:\Users\mathias.herbaux\AppData\Local\Temp\"
    Append="C:\IAS\IAS Core\Development\OUTPUT\Debug\Bots\MyBot;C:\Users\mathias.herbaux\AppData\Local\Temp\"
    PathDiscovery="C:\IAS\IAS Core\Development\OUTPUT\Debug\Bots\MyBot;C:\Windows\Microsoft.NET\assembly;C:\Users\mathias.herbaux\AppData\Local\Temp\;C:\Windows\Microsoft.NET\Framework64;C:\Windows\assembly"/&gt;
    &lt;IPermission class="System.Security.Permissions.IsolatedStorageFilePermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Allowed="ApplicationIsolationByUser"
    UserQuota="1024000"/&gt;
    &lt;IPermission class="System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Unrestricted="true"/&gt;
    &lt;IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Flags="UnmanagedCode, Execution, ControlEvidence, ControlPolicy, SerializationFormatter, Infrastructure"/&gt;
    &lt;IPermission class="System.Security.Permissions.UIPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Window="SafeTopLevelWindows"
    Clipboard="OwnClipboard"/&gt;
    &lt;IPermission class="System.Data.SqlClient.SqlClientPermission, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Unrestricted="true"/&gt;
    &lt;IPermission class="System.Drawing.Printing.PrintingPermission, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    version="1"
    Level="SafePrinting"/&gt;
    &lt;IPermission class="System.Security.Permissions.MediaPermission, WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    version="1"
    Audio="SafeAudio"
    Video="SafeVideo"
    Image="SafeImage"/&gt;
    &lt;IPermission class="System.Security.Permissions.WebBrowserPermission, WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    version="1"
    Level="Safe"/&gt;
    &lt;/PermissionSet&gt;
    </ExceptionString>
    </InnerException>
    </Exception>
    </TraceRecord>
    </DataItem>
    </TraceData>
    </ApplicationData>
    </E2ETraceEvent>

    Wednesday, July 17, 2013 8:28 AM
  • Hi,

    You said that the appdomain have a net.pipe service, are you using the NetNamedPipeBinding?

    The NetNamedPipeBinding is not supported when running in a partial trust environment. 


    For more information, please try to refer to:

    #Partial Trust:
    http://msdn.microsoft.com/en-us/library/bb412186.aspx.

    Hope it can help you.

    Best Regards.


    Amy Peng
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.






    Thursday, July 18, 2013 7:28 AM
    Moderator
  • I just read the documentation, and thanks to you i understand better.

    But there's one thing strange. The service is "callable", so the client can send a message to the service that is in the partial trust app domain, and this works great. The point that does not work, is the partial trust cannot emit messages to the client.

    Does that mean that using named pipes in a partial trust environment allows clients to send informations to the partial trust appdomain ? even if it's noticed in the documentation that's not possible.

    Thanks

    Thursday, July 18, 2013 10:09 AM
  • Hi,

    I think so.

    Tuesday, July 23, 2013 2:40 AM
  • Is there an answer to my last question, and not "I think so" ?

    Thanks

    Thursday, July 25, 2013 7:26 AM