Tech Support > Microsoft Windows > Windows CRM > Got Following error while authenticating using Bizuser.WhoAmI
Got Following error while authenticating using Bizuser.WhoAmI
Posted by Jaison on July 23rd, 2004


Hi,

I am developing a component to insert data into the MS CRM using the APIs. I
am getting the following error when authenticating using Bizuser.WhoAmI.

"The request failed with HTTP status 405: Method Not Allowed."

Please help.

Thanks,
Jaison





Posted by comestate on September 16th, 2005


Hi,
I am unable to authenticate when using the WhoAmi() method. I have the
following senario:
My CRM server name is "MSCRM-SBS" and the CRM web application is
installed
in the Inetpub\wwwroot\CRM folder and the mscrmservices folder is
contained
in the CRM folder. I have also installed Visual studio 2003 on the same
machine where the CRM server is installed.
In my application i have the following lines of code: (the application
resides also on the computer in which there the CRM server is installed)
string strServer = "MSCRM-SBS";
string strVirtualDirectory = "mscrmservices";
string strDir = "http://" + strServer + "/" + strVirtualDirectory + "/";

Microsoft.Crm.Platform.Proxy.BizUser oBizUser = new
Microsoft.Crm.Platform.Proxy.BizUser ();
oBizUser.Credentials = System.Net.CredentialCache.DefaultCredentials;
oBizUser.Url = strDir + "BizUser.srf";

string strErrorMsg;
try
{
Microsoft.Crm.Platform.Proxy.CUserAuth oUserAuth =
oBizUser.WhoAmI();

at this point there is an error and i am not able to continue. I
don't
know what is the problem.

The error is the following: The request failed with HTTP status 405:Method
not allowed
.....



Similar Posts