<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : No Credentials Supplied</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : No Credentials Supplied</description>
  <pubDate>Tue, 12 May 2026 20:33:03 -700</pubDate>
  <lastBuildDate>Sat, 29 Jun 2013 10:33:34 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=4199</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>No Credentials Supplied : You probably don&amp;#039;t want any...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16507#16507</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 4199<br /><strong>Posted:</strong> 29-Jun-2013 at 10:33am<br /><br />You probably don't want any static variables unless you can lock access to them.  The remote service method may be called concurrently on different threads from different clients.  For example, you want to avoid a situation where UserA calls GetCurrentJobRefNo on one thread and sets shared variables, while milliseconds later UserB calls SetPacAnd401KBenefits on a different thread and that too tries to set shared variables.  ]]>
   </description>
   <pubDate>Sat, 29 Jun 2013 10:33:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16507#16507</guid>
  </item> 
  <item>
   <title>No Credentials Supplied :   Does the passing of the entity...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16506#16506</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 4199<br /><strong>Posted:</strong> 29-Jun-2013 at 9:45am<br /><br />Does the passing of the entity manager to my helper methods apply to all variables. Is it safe to have any static variables to store information or should i pass everything back and forth through methods?<div>&nbsp;</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Sat, 29 Jun 2013 09:45:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16506#16506</guid>
  </item> 
  <item>
   <title>No Credentials Supplied :   thank you for all your help....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16505#16505</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 4199<br /><strong>Posted:</strong> 29-Jun-2013 at 7:14am<br /><br />thank you for all your help. About 3 in the morning it suddenly dawned on me that my remote server method had a generic EntityManager and I needed to cast it to my EM. ]]>
   </description>
   <pubDate>Sat, 29 Jun 2013 07:14:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16505#16505</guid>
  </item> 
  <item>
   <title>No Credentials Supplied :   The EntityManager passed into...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16504#16504</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 4199<br /><strong>Posted:</strong> 29-Jun-2013 at 6:50am<br /><br />The EntityManager passed into the remote service method is actually a sub-typed EM, so you can cast to your custom EM type.&nbsp;&nbsp; A better approach though is to use the EM copy constructor.<div>&nbsp;</div><div>// 1 - cast</div><div>var em2 = EntityManager as UnionEntities;</div><div>&nbsp;</div><div>// 2 ctor</div><div>var em2 = new UnionEntities(EntityManager);</div><div>&nbsp;</div><div>You should still avoid the static _entityManager variable.&nbsp; This is going to cause you later problems as you move into production and your BOS is under more load.&nbsp; Instead of holding onto a variable, pass the EntityManager as a parameter to your helper methods.</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Sat, 29 Jun 2013 06:50:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16504#16504</guid>
  </item> 
  <item>
   <title>No Credentials Supplied :   I found the problem. It was...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16503#16503</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 4199<br /><strong>Posted:</strong> 28-Jun-2013 at 7:02pm<br /><br />I found the problem. It was so stupid on my part. But i don't know how to fix it. I am trying to call a stored procedure from the my server method. It is that call that is causing the problem.<div> </div><div><pre style=": white; color: black; font-family: C&#111;nsolas;">       <span style="color: blue;">public</span> <span style="color: blue;">static</span> <span style="color: blue;">void</span> InsertJHBenefits(Int32 refNo, <span style="color: blue;">string</span> component, Decimal? amount)        {            <span style="color: blue;">var</span> eml = <span style="color: blue;">new</span> <span style="color: rgb43, 145, 175;">UnionEntities</span>();            <span style="color: blue;">var</span> query = eml.UA_SP_InsertJHBenefitsQuery(refNo, component, amount);            eml.ExecuteQuery(query);        }</pre><pre style=": white; color: black; font-family: C&#111;nsolas;"> </pre><pre style=": white; color: black; font-family: C&#111;nsolas;">I foolishly created a new EntityManager and that one has not be authenticated.</pre><pre style=": white; color: black; font-family: C&#111;nsolas;"> But how do i call a stored procedure using the current _entityManager that I have.</pre></div>]]>
   </description>
   <pubDate>Fri, 28 Jun 2013 19:02:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16503#16503</guid>
  </item> 
  <item>
   <title>No Credentials Supplied :   but the entityManager has...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16502#16502</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 4199<br /><strong>Posted:</strong> 28-Jun-2013 at 6:42pm<br /><br />but the entityManager has to be static. My server side methods are static and they cannot access a non static variable. ]]>
   </description>
   <pubDate>Fri, 28 Jun 2013 18:42:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16502#16502</guid>
  </item> 
  <item>
   <title>No Credentials Supplied :   ok this is now interesting....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16501#16501</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 4199<br /><strong>Posted:</strong> 28-Jun-2013 at 6:25pm<br /><br />ok this is now interesting. I tried a different situation. I ran it through the BOS again. This time I made a call to a different Remote&nbsp; Server Method right before the one that failed and that one worked. there was no exception. The Remote Server Method executed correctly and returned the correct value. It then tried to execute the problem Remote Server Method and I got the execption. No Credential Found.<div>&nbsp;</div><div>Here are the two calls</div><div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">public</span>&nbsp;Int32&nbsp;GetCurrentJobRefNo(<span style="color: blue;">string</span>&nbsp;socSecNo)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ff0000">&nbsp; // this remote method server call worked fine</font></div><div><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">string</span>&nbsp;typeName&nbsp;=&nbsp;<span style="color: rgb163, 21, 21;">"UnionAdministratorWeb.Services.MemberService,&nbsp;UnionAdministratorWeb"</span>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">string</span>&nbsp;methodName&nbsp;=&nbsp;<span style="color: rgb163, 21, 21;">"GetCurrentJobRefNo"</span>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Int32&nbsp;refNo&nbsp;=&nbsp;(Int32)Manager.InvokeServerMethod(typeName,&nbsp;methodName,&nbsp;socSecNo);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">return</span>&nbsp;refNo;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;</pre><pre style=": white; color: black; font-family: C&#111;nsolas;"><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">public</span>&nbsp;<span style="color: blue;">void</span>&nbsp;SetPacAnd401KBenefits(<span style="color: blue;">string</span>&nbsp;socSecNo,&nbsp;Int32&nbsp;refNo)</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">string</span>&nbsp;typeName&nbsp;=&nbsp;<span style="color: rgb163, 21, 21;">"UnionAdministratorWeb.Services.MemberService,&nbsp;UnionAdministratorWeb"</span>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">string</span>&nbsp;methodName&nbsp;=&nbsp;<span style="color: rgb163, 21, 21;">"SetPacAnd401KBenefits"</span>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Manager.InvokeServerMethod(typeName,&nbsp;methodName,&nbsp;<span style="color: blue;">new</span>&nbsp;<span style="color: blue;">object</span>&#091;&#093;&nbsp;{socSecNo,&nbsp;refNo});&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">Here are the Remote Server Methods</pre><pre style=": white; color: black; font-family: C&#111;nsolas;"><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">private</span>&nbsp;<span style="color: blue;">static</span>&nbsp;<span style="color: rgb43, 145, 175;">EntityManager</span>&nbsp;_entityManager;</pre></pre><pre style=": white; color: black; font-family: C&#111;nsolas;"><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<span style="color: rgb43, 145, 175;">AllowRpc</span>&#093;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">public</span>&nbsp;<span style="color: blue;">static</span>&nbsp;Int32&nbsp;GetCurrentJobRefNo(<span style="color: rgb43, 145, 175;">IPrincipal</span>&nbsp;principal,&nbsp;<span style="color: rgb43, 145, 175;">EntityManager</span>&nbsp;entityManager,&nbsp;<span style="color: blue;">params</span>&nbsp;<span style="color: rgb43, 145, 175;">Object</span>&#091;&#093;&nbsp;args)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_entityManager&nbsp;=&nbsp;entityManager;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">var</span>&nbsp;socSecNo&nbsp;=&nbsp;(<span style="color: blue;">string</span>)args&#091;0&#093;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GetMember(socSecNo); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Int32&nbsp;refNo&nbsp;=&nbsp;GetCurrentJobRefNo(); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">return</span>&nbsp;refNo;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</pre><pre style=": white; color: black; font-family: C&#111;nsolas;"><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<span style="color: rgb43, 145, 175;">AllowRpc</span>&#093;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">public</span>&nbsp;<span style="color: blue;">static</span>&nbsp;<span style="color: blue;">void</span>&nbsp;SetPacAnd401KBenefits(<span style="color: rgb43, 145, 175;">IPrincipal</span>&nbsp;principal,&nbsp;<span style="color: rgb43, 145, 175;">EntityManager</span>&nbsp;entityManager,&nbsp;<span style="color: blue;">params</span>&nbsp;<span style="color: rgb43, 145, 175;">Object</span>&#091;&#093;&nbsp;args)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_entityManager&nbsp;=&nbsp;entityManager; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">string</span>&nbsp;socSecNo&nbsp;=&nbsp;(<span style="color: blue;">string</span>)&nbsp;args&#091;0&#093;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Int32&nbsp;refNo&nbsp;=&nbsp;(Int32)args&#091;1&#093;; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GetMember(socSecNo); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SetPacAnd401KBenefits(refNo); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</pre></pre><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;</pre></pre></pre></div>]]>
   </description>
   <pubDate>Fri, 28 Jun 2013 18:25:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16501#16501</guid>
  </item> 
  <item>
   <title>No Credentials Supplied :   I just reran tests again....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16500#16500</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 4199<br /><strong>Posted:</strong> 28-Jun-2013 at 5:58pm<br /><br />I just reran tests again. If i run the app without the BOS as a 2 tier app, the remote server methods get called and the app runs fine. If i run the app using the BOS the app crashes at the InvokeServerMethodCall.<div></div>]]>
   </description>
   <pubDate>Fri, 28 Jun 2013 17:58:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16500#16500</guid>
  </item> 
  <item>
   <title>No Credentials Supplied : Just to be clear, a login to the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16499#16499</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 4199<br /><strong>Posted:</strong> 28-Jun-2013 at 5:55pm<br /><br />Just to be clear, a login to the EntityManager or Authenticator is not the same as a database login.  The database login always uses the connection string information.  DevForce uses your IEntityLoginManager-supplied information to set its authentication context.<br /><br />When you use a "server side" EntityManager, which is what you're provided in the RSM, that EM is already considered logged in, so DevForce should not be attempting to re-validate credentials.<br /><br />The BOS is multi-threaded, so you need to make sure that your service methods are too.  I notice you're holding the EntityManager in a static variable, that could definitely cause other problems, and might be causing the problem here too.  For one, the EM is not threadsafe, but it's also possible that this variable was assigned previously and maybe its authentication context has gone out of scope.  Anyway, I'd first try this without the static EM to see if that helps.  You can also add your own DebugFns or TraceFns calls within the service methods to get some more diagnostics.<br />]]>
   </description>
   <pubDate>Fri, 28 Jun 2013 17:55:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16499#16499</guid>
  </item> 
  <item>
   <title>No Credentials Supplied :   could it be a domain issue?...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16498#16498</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 4199<br /><strong>Posted:</strong> 28-Jun-2013 at 5:34pm<br /><br />could it be a domain issue? I am trying to run it either through a VPN or by RDP on the server. I am not a part of the domain in either case am I? Could the BOS have a problem with that? Yet it lets me log in ok to the sql server when using the BOS. The only issue is when trying to access a remote server method. Yet the Remote Server Method works fine when running it as a 2 tier app. it is only when accessing the Remote Server Method using the BOS that i get the No Credentials Supplied exception<div></div>]]>
   </description>
   <pubDate>Fri, 28 Jun 2013 17:34:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16498#16498</guid>
  </item> 
  <item>
   <title>No Credentials Supplied :   6.1.13 Devforce 2010 </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16497#16497</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 4199<br /><strong>Posted:</strong> 28-Jun-2013 at 5:25pm<br /><br />6.1.13 Devforce 2010<div></div>]]>
   </description>
   <pubDate>Fri, 28 Jun 2013 17:25:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16497#16497</guid>
  </item> 
  <item>
   <title>No Credentials Supplied : It is strange.  Which specific...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16496#16496</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 4199<br /><strong>Posted:</strong> 28-Jun-2013 at 5:25pm<br /><br />It is strange.  Which specific version of DevForce are you running?]]>
   </description>
   <pubDate>Fri, 28 Jun 2013 17:25:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16496#16496</guid>
  </item> 
  <item>
   <title>No Credentials Supplied :   no i just assign the incoming...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16495#16495</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 4199<br /><strong>Posted:</strong> 28-Jun-2013 at 5:09pm<br /><br />no i just assign the incoming EntityManager to a local copy of it for use in the server method. It is strange the server methods work just fine if i am not using the BOS. could it be something in the setup of my BOS. But when i use the BOS i can connect just fine to the database and everything works fine until it comes to an InvokeServerMethod call.<div>&nbsp;</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Fri, 28 Jun 2013 17:09:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16495#16495</guid>
  </item> 
  <item>
   <title>No Credentials Supplied : The Remote Server Method uses...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16494#16494</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 4199<br /><strong>Posted:</strong> 28-Jun-2013 at 5:04pm<br /><br />The Remote Server Method uses the same security context as your queries to the BOS, so it's not clear why the BOS is going through the login again.  Are you creating another EntityManager in your service method, other than what you show here?<br />]]>
   </description>
   <pubDate>Fri, 28 Jun 2013 17:04:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16494#16494</guid>
  </item> 
  <item>
   <title>No Credentials Supplied :   I am calling a Remote Server...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16489#16489</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 4199<br /><strong>Posted:</strong> 26-Jun-2013 at 5:27pm<br /><br />I am calling a Remote Server Method. Here is the call.<div>&nbsp;</div><div><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">public</span>&nbsp;<span style="color: blue;">void</span>&nbsp;SetPacAnd401KBenefits(<span style="color: blue;">string</span>&nbsp;socSecNo,&nbsp;Int32&nbsp;refNo)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">string</span>&nbsp;typeName&nbsp;=&nbsp;<span style="color: rgb163, 21, 21;">"UnionAdministratorWeb.Services.MemberService,&nbsp;UnionAdministratorWeb"</span>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">string</span>&nbsp;methodName&nbsp;=&nbsp;<span style="color: rgb163, 21, 21;">"SetPacAnd401KBenefits"</span>;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Manager.InvokeServerMethod(typeName,&nbsp;methodName,&nbsp;<span style="color: blue;">new</span>&nbsp;<span style="color: blue;">object</span>&#091;&#093;&nbsp;{socSecNo,&nbsp;refNo});&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">and the start of the Remote Server Method</pre><pre style=": white; color: black; font-family: C&#111;nsolas;"><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">public</span>&nbsp;<span style="color: blue;">static</span>&nbsp;<span style="color: blue;">void</span>&nbsp;SetPacAnd401KBenefits(<span style="color: rgb43, 145, 175;">IPrincipal</span>&nbsp;principal,&nbsp;<span style="color: rgb43, 145, 175;">EntityManager</span>&nbsp;entityManager,&nbsp;<span style="color: blue;">params</span>&nbsp;<span style="color: rgb43, 145, 175;">Object</span>&#091;&#093;&nbsp;args)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_entityManager&nbsp;=&nbsp;entityManager; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">string</span>&nbsp;socSecNo&nbsp;=&nbsp;(<span style="color: blue;">string</span>)&nbsp;args&#091;0&#093;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Int32&nbsp;refNo&nbsp;=&nbsp;(Int32)args&#091;1&#093;;</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">When I run my app as a 2 tier app setting (the IsDistributed equals false) the server medthod works just fine.</pre><pre style=": white; color: black; font-family: C&#111;nsolas;"> 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 </pre><pre style=": white; color: black; font-family: C&#111;nsolas;">login into the app, access my data and everything is fine until I call the remote server method then i get an</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">System.ServiceModel.FaultException. "No credentials supplied"</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">Here is the last entry in the Debug.log from the BOS</pre><pre style=": white; color: black; font-family: C&#111;nsolas;"><p>Caught exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; 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&#091;&#093; arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object&#091;&#093; parameters, Object&#091;&#093; arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object&#091;&#093; parameters, CultureInfo culture) at IdeaBlade.EntityModel.Server.EntityServer.InvokeServerMethod(SessionBundle sessionBundle, ITypeWrapper entityManagerType, String typeName, String methodName, Object&#091;&#093; args) at SyncInvokeInvokeServerMethod(Object , Object&#091;&#093; , Object&#091;&#093; ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object&#091;&#093; inputs, Object&#091;&#093;&amp; outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</p><div></div></pre><pre style=": white; color: black; font-family: C&#111;nsolas;">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.</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">Any suggestions.</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">Bill</pre><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;</pre></pre></div>]]>
   </description>
   <pubDate>Wed, 26 Jun 2013 17:27:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4199&amp;PID=16489#16489</guid>
  </item> 
 </channel>
</rss>