Forum Discussion

carlos_simonini's avatar
11 years ago

Microsoft JScript runtime error - Credentials is null or not an object









 



Can you help me to find a solution for this issue, please?

When running this function, I'm getting the message



"Microsoft JScript runtime error.

'Credentials' is null or not an objet'





And this is the function



function ServiceSertificate()

{

 var MyWebService, Crd, Windows;



MyWebService=WebService.SampleWebService;

Crd=MyWebService.Credentials;

Windows=Crd.Windows;



Windows.AllwNtlm=True;

Windows.ClientCredentials.UserName= "OURCREDENTIAL";

Windows.ClientCredentials.Password= "OURPASSWORD";



}


  • You have three misprints:




    MyWebService=WebService.SampleWebService; => MyWebService=WebServices.SampleWebService;


     


    Windows.AllwNtlm=True; => Windows.AllowNtlm=true; //yes, there is also misprint in smartbear's doc.