Click here to Skip to main content
15,921,463 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questionflash with .net Pin
Vineet Rajan16-Feb-06 6:15
Vineet Rajan16-Feb-06 6:15 
QuestionLetting the Parent handle the click Pin
Eric Schaefer16-Feb-06 2:35
Eric Schaefer16-Feb-06 2:35 
QuestionWindows Forms and 3rd Party API's Pin
robasmith15-Feb-06 9:27
robasmith15-Feb-06 9:27 
AnswerRe: Windows Forms and 3rd Party API's Pin
Dave Kreskowiak15-Feb-06 14:32
mveDave Kreskowiak15-Feb-06 14:32 
QuestionConverting from WinHelp to HTML Help Pin
ellenu15-Feb-06 6:40
ellenu15-Feb-06 6:40 
QuestionFlex Cell 2.0 .net Framework Pin
welbert14-Feb-06 15:03
welbert14-Feb-06 15:03 
AnswerRe: Flex Cell 2.0 .net Framework Pin
Judah Gabriel Himango15-Feb-06 8:12
sponsorJudah Gabriel Himango15-Feb-06 8:12 
QuestionThe request failed with HTTP status 401: Unauthorized Pin
Paul_Taylor14-Feb-06 14:12
Paul_Taylor14-Feb-06 14:12 
Confused | :confused:
I'd love to hear from anyone with an opinion on how to go about resolving the problem below:

I have a Web Service that allows for files to be uploaded. Because of the default limitation of 4MB in parameters, I allow repeated calls to the file upload function sending chunks of the file at a time. The Web Service then appends the file together at the server end. All works perfectly when running the Web Service on my computer, but when running the Web Service on a server (of which I am an Administrator) there is an issue.

In my Test program that calls the Web Service I setup Authentication:
l_wsService.PreAuthenticate = True
l_wsService.Credentials = CredentialCache.DefaultCredentials

My first call to the file uploading function works successfully. It's the second call to the same function that fails with the error "The request failed with HTTP status 401: Unauthorized". The program never gets inside the function the second time, failing on this error before it reaches the function. After the first call I reload one parameter with the next chunk of the file but don't change anything to do with the service or it's authentication settings.

When I have a file small enough not to break into chunks I can upload it and make subsequent calls to different functions within this same Web Service without a problem. When I have multiple small files the uploading of the second file fails.

My questions are:
How can I get this to work?
If this is a security problem then why does it only occur on the second call to this one function?



Regards,
Paul

-- modified at 20:14 Tuesday 14th February, 2006
AnswerRe: The request failed with HTTP status 401: Unauthorized Pin
Paul_Taylor14-Feb-06 18:30
Paul_Taylor14-Feb-06 18:30 
Questionconsole.writeline windows application equivalent Pin
LuluSailor14-Feb-06 8:06
LuluSailor14-Feb-06 8:06 
AnswerRe: console.writeline windows application equivalent Pin
Dave Kreskowiak14-Feb-06 10:08
mveDave Kreskowiak14-Feb-06 10:08 
QuestionModifing Interop dlls to use SecureString Pin
dave_kinmond14-Feb-06 4:46
dave_kinmond14-Feb-06 4:46 
Questioninstallation problem Pin
united1814-Feb-06 3:28
united1814-Feb-06 3:28 
AnswerRe: installation problem Pin
KreativeKai16-Feb-06 4:28
professionalKreativeKai16-Feb-06 4:28 
QuestionRun atlas under 1.1 .net framework Pin
RUDOLFYAN13-Feb-06 18:43
RUDOLFYAN13-Feb-06 18:43 
AnswerRe: Run atlas under 1.1 .net framework Pin
Kevin McFarlane14-Feb-06 10:19
Kevin McFarlane14-Feb-06 10:19 
QuestionCompact Framework toolbar Pin
Federico Milano13-Feb-06 9:27
Federico Milano13-Feb-06 9:27 
Question"Automation Server can't create object" Pin
Jader8913-Feb-06 6:28
Jader8913-Feb-06 6:28 
QuestionICustomFormatter and IFormattable Pin
Jason McBurney13-Feb-06 5:33
Jason McBurney13-Feb-06 5:33 
QuestionHandling Events inside a "while" clause Pin
ninodago13-Feb-06 5:05
ninodago13-Feb-06 5:05 
AnswerRe: Handling Events inside a "while" clause Pin
HumanOsc13-Feb-06 5:49
HumanOsc13-Feb-06 5:49 
GeneralRe: Handling Events inside a "while" clause Pin
ninodago14-Feb-06 1:00
ninodago14-Feb-06 1:00 
GeneralRe: Handling Events inside a "while" clause Pin
Guffa13-Feb-06 6:03
Guffa13-Feb-06 6:03 
GeneralRe: Handling Events inside a "while" clause Pin
ninodago13-Feb-06 22:55
ninodago13-Feb-06 22:55 
GeneralRe: Handling Events inside a "while" clause Pin
HumanOsc14-Feb-06 1:27
HumanOsc14-Feb-06 1:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.