W
William F. Robertson, Jr.
I am having problems with using the WebRequest object (or HttpWebRequest ).
I have created the WebRequest and set the credentials, but when I call
GetResponse() it is throwing an internal server error 500 on me.
I am running a console app on my sql server that is trying to create a
WebRequest to my Webserver to notify the cache on the webserver to refresh
itself.
The website is using NT authentication. The user I am using is in the Admin
group on the webserver and can access through the network (KB article said
to check that)
<code>
HttpWebRequest request = ( HttpWebRequest ) WebRequest.Create(
"http://server/page.aspx?Cachename=" + args[0] );
request.PreAuthenticate = true;
request.Credentials = new NetworkCredential( "user", "pass", "domain" );
request.GetResponse(); // throws exception.
</code>
Any ideas? Anything more I can do?
Thanks,
bill
I have created the WebRequest and set the credentials, but when I call
GetResponse() it is throwing an internal server error 500 on me.
I am running a console app on my sql server that is trying to create a
WebRequest to my Webserver to notify the cache on the webserver to refresh
itself.
The website is using NT authentication. The user I am using is in the Admin
group on the webserver and can access through the network (KB article said
to check that)
<code>
HttpWebRequest request = ( HttpWebRequest ) WebRequest.Create(
"http://server/page.aspx?Cachename=" + args[0] );
request.PreAuthenticate = true;
request.Credentials = new NetworkCredential( "user", "pass", "domain" );
request.GetResponse(); // throws exception.
</code>
Any ideas? Anything more I can do?
Thanks,
bill