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

A

acool

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.
 
J

Jan Tielens

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top