Tech Support > Microsoft Windows > Windows CRM > Need help with bizUser.WhoAmI()
Need help with bizUser.WhoAmI()
Posted by Jay Mehta on August 14th, 2003


Hi guys! Are there any pre-requisites for using bizUser.WhoAmI() to
return a valid cUserAuth class?? Here is the code I'm using and I'm
getting nothing:

CRMPROXY.BizUser bizUser = new CRMPROXY.BizUser();
string strServer = "crmdemo";
string strDirectory = "/wwwroot/MSCRMServices";
bizUser.Url = "http://" + strServer + strDirectory +
"/BizUser.srf";
bizUser.Credentials =
System.Net.CredentialCache.DefaultCredentials;

CRMPROXY.CUserAuth userAuth = bizUser.WhoAmI();

I've referenced Microsoft.CRM.Proxy and System.Web.Services as "G"
(Greg Gawrylu) explained.

I'd appreciate it if anyone, G in particular, could point me in the
right direction.

Thanks

Jay

Posted by Jeremie Desautels on August 14th, 2003


Jay,

the "strDirectory" variable should contain name of the Virtual Directory
where the web services are exposed and not the physical folder where the
files are saved. In a default installation it should be:

strDirectory = "/MSCRMServices";


-Jeremie Desautels


"Jay Mehta" <jay.mehta@salesmax.com> wrote in message
news:48e1c9da.0308140808.1c019d9f@posting.google.c om...



Similar Posts
  • whoami.exe (Security & Administration) by Rich Roller