public void SetPacAnd401KBenefits(string socSecNo, Int32 refNo)
{
string typeName = "UnionAdministratorWeb.Services.MemberService, UnionAdministratorWeb";
string methodName = "SetPacAnd401KBenefits";
Manager.InvokeServerMethod(typeName, methodName, new object[] {socSecNo, refNo});
}
and the start of the Remote Server Method
public static void SetPacAnd401KBenefits(IPrincipal principal, EntityManager entityManager, params Object[] args)
{
_entityManager = entityManager;
string socSecNo = (string) args[0];
Int32 refNo = (Int32)args[1];
When I run my app as a 2 tier app setting (the IsDistributed equals false) the server medthod works just fine.
When i changed the setting to true and use the BOS which is located on a server which i am connected to by a vpn i can
login into the app, access my data and everything is fine until I call the remote server method then i get an
System.ServiceModel.FaultException. "No credentials supplied"
Here is the last entry in the Debug.log from the BOS
Caught exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> IdeaBlade.EntityModel.LoginException: No credentials supplied at IdeaBlade.EntityModel.EntityManager.HandleEntityServerException(Exception ex, Boolean tryToHandle, PersistenceOperation operation, Boolean throwOnError) at IdeaBlade.EntityModel.EntityManager.LoginCore(Func`1 loginFunc) at IdeaBlade.EntityModel.EntityManager.ExecuteFetch(IEntityFinder finder) at IdeaBlade.EntityModel.EntityManager.ExecuteQueryCore(IEntityQuery query, Boolean isAsync) at IdeaBlade.EntityModel.EntityManager.ExecuteQuery(IEntityQuery query) at UnionAdministratorWeb.Services.MemberService.DeleteJHBenefits(Int32 refNo, String component) at UnionAdministratorWeb.Services.MemberService.SetPacAnd401KBenefits(Int32 refNo) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at IdeaBlade.EntityModel.Server.EntityServer.InvokeServerMethod(SessionBundle sessionBundle, ITypeWrapper entityManagerType, String typeName, String methodName, Object[] args) at SyncInvokeInvokeServerMethod(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
If i RDP into the server where the BOS and database are running, the same thing happens. It only works running as a 2 tier app.
Any suggestions.
Bill