RE: The remote server returned an error: (403) Forbidden in



Did you try setting the credentials to DefaultCredentials before issuing
the request?

-----Original Message-----
From: Claus Konrad [mailto:ClausKonrad@xxxxxxxxxxxxxxxxxxxxxxxxx]
Posted At: Thursday, October 12, 2006 11:38 AM
Posted To: microsoft.public.dotnet.security
Conversation: The remote server returned an error: (403) Forbidden in
webrequest
Subject: RE: The remote server returned an error: (403) Forbidden in
webrequest

One reason:
1) when using IE, you present your windows credentials
2) when using code - you do not set your current credentials to the
webrequest object?

/Claus Konrad


"trialproduct2004@xxxxxxxxx" wrote:

Hi all,

I am using webrequest and webresponse to chekc validation of url.

while validating url if i open that url in IE it is working properly
but through code it is showing error as shown in subject linke.

can anyone help me in solving this problem.

Please help me asap.

thanks in advance.



.



Relevant Pages

  • Re: format of service principal name (SPN)
    ... credentials to a remote server fails because the remote server receives the ... We need to set up the service principal name for a service in this format ... we use object guid what format do we enter that? ...
    (microsoft.public.windows.server.security)
  • Re: Impersonation for accessing network resources?
    ... remote server resources when impersonating, this type of logon token has no ... network access. ... LOGON32_LOGON_NEW_CREDENTIALS uses the supplied credentials to ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: "NET USE" command: Using different credentials from the logged in use
    ... Actually even when using the FQDN, it seems like it is not possible to connect 2 different Network Shares stored on the same remote server with different credentials! ... By using once the IP address in the "NET USE" command, then the NETBIOS name and then the FQDN, I could connect to 3 different Network Shares stored on the same remote server using 3 differnt sets of credentials. ...
    (microsoft.public.windows.server.scripting)
  • Re: "NET USE" command: Using different credentials from the logged in use
    ... > I noticed that as you said, when you use the NETBIOS name to connect a Network Share with the credentials A, you cannot connect to a different network share of the same remote server with different credentials. ... And I could connect to different Network Shares on the same remote server using totally different credentials! ... conflicts between stacks. ...
    (microsoft.public.windows.server.scripting)
  • forwarding Credentials to a web request
    ... I have a control which calls a web page via a webrequest and webresponse. ... How can i ensure that Credentials of the current page (the one on which the ...
    (microsoft.public.dotnet.framework.aspnet.security)