User Credentials problem with WebService that uses FileIO....Help!!??

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default User Credentials problem with WebService that uses FileIO....Help!!??

    I am having some serious problems with a WebService that I created that
    drops a file to a local directory.
    I have the WebService pointed outside so that I can test it real world.

    In my calling routine I set my credentials and make the call like so:

    Dim netcredentials As New NetworkCredential("MyUserName", "MyPassword",
    "MyDomain")

    Dim obj As New WebReference.IBService
    Dim doc As New XmlDocument
    doc.Load("C:\accountdata.xml")
    obj.Credentials = netcredentials
    obj.PutAccount(doc)

    My call generates any of the following errors (depending on how I setup
    IIS):

    a. "Logon failure: unknown user name or bad password."
    b. "The network name cannot be found"
    c. "401 Access Denied"

    What is going on? This works internally of course. I am logging on as me
    (FULL DOMAIN ADMIN) and I have full right to write anything I want to this
    server (In fact anyone does). I have opened it up wide open and still
    nothing. Any help please.




    acool Guest

  2. Similar Questions and Discussions

    1. Passing credentials across 2 webservice
      I've 2 webservice. (webservice1, webservice2). and one winform.. The winform calls the webservice1 as follows and sends teh currentLogon BY USING...
    2. Stop User Credentials Dialogue
      Hi All, I have a web app on our intranet, and when an employee goes to the main page, it authenticates via Windows Authentication when the user...
    3. Web Application User Credentials
      We are in the early planning stage of a new web (ASP.NET) application, are currently determining the best strategy for managing users in this...
    4. Passing user credentials from ASP.NET to Web Service
      We have an ASP.NET application which needs to call Web Service on another machine using end user's account. The configuration is as follows: *...
    5. Accessing webservice with Compact Framework with credentials
      I am working on an application using the compact framework. This app calls a webservice on my develop machine to make some SQL queries to an oracle...
  3. #2

    Default Re: User Credentials problem with WebService that uses FileIO....Help!!??

    Try
    > Dim obj As New WebReference.IBService
    > Dim doc As New XmlDocument
    > doc.Load("C:\accountdata.xml")
    > obj.Credentials = netcredentials
    obj.PreAuthenticate = True
    > obj.PutAccount(doc)
    --
    Greetz,
    Jan
    ________________________
    Read my weblog: [url]http://weblogs.asp.net/jan[/url]

    "acool" <none@sendme.com> schreef in bericht
    news:uzF28NBHEHA.2236@TK2MSFTNGP11.phx.gbl...
    > I am having some serious problems with a WebService that I created that
    > drops a file to a local directory.
    > I have the WebService pointed outside so that I can test it real world.
    >
    > In my calling routine I set my credentials and make the call like so:
    >
    > Dim netcredentials As New NetworkCredential("MyUserName", "MyPassword",
    > "MyDomain")
    >
    > Dim obj As New WebReference.IBService
    > Dim doc As New XmlDocument
    > doc.Load("C:\accountdata.xml")
    > obj.Credentials = netcredentials
    > obj.PutAccount(doc)
    >
    > My call generates any of the following errors (depending on how I setup
    > IIS):
    >
    > a. "Logon failure: unknown user name or bad password."
    > b. "The network name cannot be found"
    > c. "401 Access Denied"
    >
    > What is going on? This works internally of course. I am logging on as me
    > (FULL DOMAIN ADMIN) and I have full right to write anything I want to this
    > server (In fact anyone does). I have opened it up wide open and still
    > nothing. Any help please.
    >
    >
    >
    >

    Jan Tielens Guest

  4. #3

    Default Re: User Credentials problem with WebService that uses FileIO....Help!!??

    Thanks, but no same errors.

    "Jan Tielens" <jan@no.spam.please.leadit.be> wrote in message
    news:exHu7%23FHEHA.2224@TK2MSFTNGP12.phx.gbl...
    > Try
    >
    > > Dim obj As New WebReference.IBService
    > > Dim doc As New XmlDocument
    > > doc.Load("C:\accountdata.xml")
    > > obj.Credentials = netcredentials
    > obj.PreAuthenticate = True
    > > obj.PutAccount(doc)
    >
    > --
    > Greetz,
    > Jan
    > ________________________
    > Read my weblog: [url]http://weblogs.asp.net/jan[/url]
    >
    > "acool" <none@sendme.com> schreef in bericht
    > news:uzF28NBHEHA.2236@TK2MSFTNGP11.phx.gbl...
    > > I am having some serious problems with a WebService that I created that
    > > drops a file to a local directory.
    > > I have the WebService pointed outside so that I can test it real world.
    > >
    > > In my calling routine I set my credentials and make the call like so:
    > >
    > > Dim netcredentials As New NetworkCredential("MyUserName", "MyPassword",
    > > "MyDomain")
    > >
    > > Dim obj As New WebReference.IBService
    > > Dim doc As New XmlDocument
    > > doc.Load("C:\accountdata.xml")
    > > obj.Credentials = netcredentials
    > > obj.PutAccount(doc)
    > >
    > > My call generates any of the following errors (depending on how I setup
    > > IIS):
    > >
    > > a. "Logon failure: unknown user name or bad password."
    > > b. "The network name cannot be found"
    > > c. "401 Access Denied"
    > >
    > > What is going on? This works internally of course. I am logging on as me
    > > (FULL DOMAIN ADMIN) and I have full right to write anything I want to
    this
    > > server (In fact anyone does). I have opened it up wide open and still
    > > nothing. Any help please.
    > >
    > >
    > >
    > >
    >
    >

    acool Guest

  5. #4

    Default Re: User Credentials problem with WebService that uses FileIO....Help!!??

    How did you setyp IIS? Integrated security?

    --
    Greetz,
    Jan
    ________________________
    Read my weblog: [url]http://weblogs.asp.net/jan[/url]

    "acool" <none@sendme.com> schreef in bericht
    news:ua0HbcKHEHA.2308@tk2msftngp13.phx.gbl...
    > Thanks, but no same errors.
    >
    > "Jan Tielens" <jan@no.spam.please.leadit.be> wrote in message
    > news:exHu7%23FHEHA.2224@TK2MSFTNGP12.phx.gbl...
    > > Try
    > >
    > > > Dim obj As New WebReference.IBService
    > > > Dim doc As New XmlDocument
    > > > doc.Load("C:\accountdata.xml")
    > > > obj.Credentials = netcredentials
    > > obj.PreAuthenticate = True
    > > > obj.PutAccount(doc)
    > >
    > > --
    > > Greetz,
    > > Jan
    > > ________________________
    > > Read my weblog: [url]http://weblogs.asp.net/jan[/url]
    > >
    > > "acool" <none@sendme.com> schreef in bericht
    > > news:uzF28NBHEHA.2236@TK2MSFTNGP11.phx.gbl...
    > > > I am having some serious problems with a WebService that I created
    that
    > > > drops a file to a local directory.
    > > > I have the WebService pointed outside so that I can test it real
    world.
    > > >
    > > > In my calling routine I set my credentials and make the call like so:
    > > >
    > > > Dim netcredentials As New NetworkCredential("MyUserName",
    "MyPassword",
    > > > "MyDomain")
    > > >
    > > > Dim obj As New WebReference.IBService
    > > > Dim doc As New XmlDocument
    > > > doc.Load("C:\accountdata.xml")
    > > > obj.Credentials = netcredentials
    > > > obj.PutAccount(doc)
    > > >
    > > > My call generates any of the following errors (depending on how I
    setup
    > > > IIS):
    > > >
    > > > a. "Logon failure: unknown user name or bad password."
    > > > b. "The network name cannot be found"
    > > > c. "401 Access Denied"
    > > >
    > > > What is going on? This works internally of course. I am logging on as
    me
    > > > (FULL DOMAIN ADMIN) and I have full right to write anything I want to
    > this
    > > > server (In fact anyone does). I have opened it up wide open and still
    > > > nothing. Any help please.
    > > >
    > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Jan Tielens Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139