help RRS feed

  • Question

  • User214706206 posted
    hi all,

    this is troubling me a lot since this morning.i have posted this in xml web services forums  but now i think i should ask it here again.

    below is the  code i post  there..whenevr i executes the code there are some logs.On the sytem log

    it shows-source w3svc,event-100,computer-<compname> ,category-none


    The server was unable to logon the Windows NT account 'IUSR_<compname>' due to the following error: Logon failure: the user has not been granted the requested logon type at this computer. The data is the error code.

    Also on the security there are the logs -success audit with event-680 and failure audit with event 534.

    Please help me on this..i dont know abt these....trying to find a solution for this.

    Last Post--on xml web services forums

    May be this will make it more clear.

    I m calling  the  web service using this code-

    Dim a As XMLHTTP

    Set  a= New XMLHTTP

    a.Open "GET", "http://localhost/WebService1/Service1.asmx/", "<methodname>"


    my web service is fteching data from a database and then writing it as a xml file  on  the drive.when i runs the web service  and clicks  the invoke button it sucessfully writes the xml file on the drive.

    but i need to invoke this through the  vb code ..i m trying it from a long time but dont know what i m missing.

    Thanks to all

    Thursday, June 9, 2005 5:23 PM

All replies

  • User989702501 posted
    Make sure the iusr has log on locally right.
    Thursday, June 9, 2005 10:51 PM
  • User214706206 posted
    Thanks for the reply but i dont know much abt the user rights.i checked it in IIS my websrvice is running with anonymous account with the user iusr_machinename..

    but when i checks the users for this machine there is no such user with that username.

    Also i just figured it out its just not the case with the webservice ..whenever i executes any page on the browser.There are warnings in the system log.

    Is that the reason why i m not able to call the webservice..

    thanks a lot for ur help..
    Friday, June 10, 2005 10:21 AM
  • User214706206 posted
    One more thing i forgot to mention is that when i checks the status code like

    a.status..its gives me a status code of 500..i  think only on success i will get  a code of 200.

    thanks a lot
    Friday, June 10, 2005 10:53 AM
  • User214706206 posted
    i removed the check "allow iis  to control password"..now there are no logs .

    but when i m trying to call the webservice it gives me a status of 403 that is a forbidden access..

    any help on this pls
    Friday, June 10, 2005 12:29 PM
  • User-1853252149 posted
    You want IIS to control the password.  You're saying there's no IUSR account on the system?  Then naturally anonymous access will be denied.  You can create the IUSR account, exactly the same as it appears in the IIS anonymous user configuration, then run synciwam.vbs to resynch the passwords.

    Friday, June 10, 2005 1:32 PM
  • User-823196590 posted
    Can you determine the sub status code for 403?
    Friday, June 10, 2005 1:35 PM
  • User214706206 posted

    I am sorry ..yes there is  a iusr account ..actually i installed VS.Net yesterday and didnt restart the machine ..after resstarting its showing the iusr and the iwam accounts.

    Now after unchecking "allow iis to control password" i m not getting any system logs.

    but when i calling it through vb code im getting the 403,"forbidden".On debugging the vb code status of the xmlhttp code is shown as 403..i cant find the sub status code for it.

    Thanks  to all for ur help

    Friday, June 10, 2005 1:42 PM
  • User-1853252149 posted

    Recheck the "Allow IIS to control password" box.  You wnat IIS to control the password.  Then post the logfile entry with the 403 error.


    Friday, June 10, 2005 11:31 PM
  • User989702501 posted
    Ok. now - from your first post error msgs. you got 'user not granted the logon type, etc'. I suspect that the iusr_account doesn't has logon locally right. try this article.. it has a section on how to add in the rights.

    if the machine is within domain, check if you have any group policy defined that might restrict the user logon.  If all clear and you still having the same problem. Post the exact error msgs, and event log details.
    Saturday, June 11, 2005 7:38 AM
  • User214706206 posted
    Thanks to all for their help and patience.

    I m not getting any logs  now.

    But i m still failing to call a web service in vb.Actually i have written a webservice that fteches the data and then i m saving the dataset as a xml file on the hard drive.It works fine when i ruuning  it though vs.net and then invoking the public method..it writes the xml  file.

    Now i want to call it it through vb.i m trying to send a http get.this is the code.

    dim st as xmlhttp

    set st xmlhttp= new xmlhttp

    st.Open "GET", "http://localhost/WebService2/Service1.asmx" & genxml, False  'genxml is the webmethod i want to call


    if st.status=200


    end if

    Im getting a status code of 200.but the web service is not writing anything on the hard drive.

    so i guess i m not calling it  correctly but i tried evrything but still not able to call it.

    is there any way that i can check that the webservice is being actually called from  other application and  what is the actual request i sent.i mean just like sql  profiler you can check the queries u sent to the server??

    thanks to all for their help.
    Saturday, June 11, 2005 1:57 PM
  • User214706206 posted
    Thanks to all who ever has read this and apologies to all if i wasted your time.

    It happens when you tries to implement the things without having full knowledge.

    By default the  in the Framework 1.1 the HTTP POST and HTTP GET are disabled as they say for security reasons.I didnt know this thing.I changed the machine config  and now i can access the web service using the  http in vb.

    Thanks to all.
    Saturday, June 11, 2005 4:50 PM
  • User989702501 posted
    Cool ! thanks for the update. I'm not too familiar with the default .net framework setting. I'm interested of know how you get rid of the event log error. Was it due to local security policy ?
    Sunday, June 12, 2005 9:23 PM