System.Net.WebException: The request failed with HTTP status 401: Unauthorized
up vote
0
down vote
favorite
Ok, so I have this .NET 1.1 application (written by someone way back) which is like a document repository and it worked fine in the past. I suddenly get this error when trying to search for items/documents:
Page: /CPDEPforIT/SearchResults.aspx
Error:
System.Net.WebException: The request failed with HTTP status 401:
Unauthorized. at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall) at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object parameters) at
CPDEPforIT.InktomiSearchService.soapSearchService.getSearchResults(SearchInput
in0) at CPDEPforIT.SearchResults.GetDatasetForSearchQuery(SearchInput
searchInput) at CPDEPforIT.SearchResults.Page_Load(Object sender,
EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at
System.Web.UI.Control.LoadRecursive() at
System.Web.UI.Page.ProcessRequestMain()
I don't remember any changes. Could this have been caused by something external to the application (IIS configurations/permissions, Server, Database)?
vb.net soap .net-1.1 http-status-code-401 system.net.webexception
add a comment |
up vote
0
down vote
favorite
Ok, so I have this .NET 1.1 application (written by someone way back) which is like a document repository and it worked fine in the past. I suddenly get this error when trying to search for items/documents:
Page: /CPDEPforIT/SearchResults.aspx
Error:
System.Net.WebException: The request failed with HTTP status 401:
Unauthorized. at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall) at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object parameters) at
CPDEPforIT.InktomiSearchService.soapSearchService.getSearchResults(SearchInput
in0) at CPDEPforIT.SearchResults.GetDatasetForSearchQuery(SearchInput
searchInput) at CPDEPforIT.SearchResults.Page_Load(Object sender,
EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at
System.Web.UI.Control.LoadRecursive() at
System.Web.UI.Page.ProcessRequestMain()
I don't remember any changes. Could this have been caused by something external to the application (IIS configurations/permissions, Server, Database)?
vb.net soap .net-1.1 http-status-code-401 system.net.webexception
1
First thing I would check is that service accounts are still valid. It's easy enough for someone to change a password, or to lock an account.
– DeanOC
Jan 18 '13 at 1:52
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Ok, so I have this .NET 1.1 application (written by someone way back) which is like a document repository and it worked fine in the past. I suddenly get this error when trying to search for items/documents:
Page: /CPDEPforIT/SearchResults.aspx
Error:
System.Net.WebException: The request failed with HTTP status 401:
Unauthorized. at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall) at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object parameters) at
CPDEPforIT.InktomiSearchService.soapSearchService.getSearchResults(SearchInput
in0) at CPDEPforIT.SearchResults.GetDatasetForSearchQuery(SearchInput
searchInput) at CPDEPforIT.SearchResults.Page_Load(Object sender,
EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at
System.Web.UI.Control.LoadRecursive() at
System.Web.UI.Page.ProcessRequestMain()
I don't remember any changes. Could this have been caused by something external to the application (IIS configurations/permissions, Server, Database)?
vb.net soap .net-1.1 http-status-code-401 system.net.webexception
Ok, so I have this .NET 1.1 application (written by someone way back) which is like a document repository and it worked fine in the past. I suddenly get this error when trying to search for items/documents:
Page: /CPDEPforIT/SearchResults.aspx
Error:
System.Net.WebException: The request failed with HTTP status 401:
Unauthorized. at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall) at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object parameters) at
CPDEPforIT.InktomiSearchService.soapSearchService.getSearchResults(SearchInput
in0) at CPDEPforIT.SearchResults.GetDatasetForSearchQuery(SearchInput
searchInput) at CPDEPforIT.SearchResults.Page_Load(Object sender,
EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at
System.Web.UI.Control.LoadRecursive() at
System.Web.UI.Page.ProcessRequestMain()
I don't remember any changes. Could this have been caused by something external to the application (IIS configurations/permissions, Server, Database)?
vb.net soap .net-1.1 http-status-code-401 system.net.webexception
vb.net soap .net-1.1 http-status-code-401 system.net.webexception
asked Jan 18 '13 at 1:35
AnimaSola
1,868103348
1,868103348
1
First thing I would check is that service accounts are still valid. It's easy enough for someone to change a password, or to lock an account.
– DeanOC
Jan 18 '13 at 1:52
add a comment |
1
First thing I would check is that service accounts are still valid. It's easy enough for someone to change a password, or to lock an account.
– DeanOC
Jan 18 '13 at 1:52
1
1
First thing I would check is that service accounts are still valid. It's easy enough for someone to change a password, or to lock an account.
– DeanOC
Jan 18 '13 at 1:52
First thing I would check is that service accounts are still valid. It's easy enough for someone to change a password, or to lock an account.
– DeanOC
Jan 18 '13 at 1:52
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
There are several things you need to verify.
- Does the web service you are trying to access allow Anonymous Access? Authentication can be tricky for web-to-web calls
- What is the web application running under, IWAM_xxx or IUSR_xxx? Or are you using an application pool running under a specific identity?
- You may want to make sure your web application server's ASPNET or NETWORK SERVICE accounts can access your web service server.
If you want to get it working you could just provide an account for Anonymous Access...
Thanks!
add a comment |
up vote
0
down vote
I have also faced this type of issue before. In my case permission to the code folder works. Please check the folder permissions and then try with the IIS permissions.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
There are several things you need to verify.
- Does the web service you are trying to access allow Anonymous Access? Authentication can be tricky for web-to-web calls
- What is the web application running under, IWAM_xxx or IUSR_xxx? Or are you using an application pool running under a specific identity?
- You may want to make sure your web application server's ASPNET or NETWORK SERVICE accounts can access your web service server.
If you want to get it working you could just provide an account for Anonymous Access...
Thanks!
add a comment |
up vote
0
down vote
There are several things you need to verify.
- Does the web service you are trying to access allow Anonymous Access? Authentication can be tricky for web-to-web calls
- What is the web application running under, IWAM_xxx or IUSR_xxx? Or are you using an application pool running under a specific identity?
- You may want to make sure your web application server's ASPNET or NETWORK SERVICE accounts can access your web service server.
If you want to get it working you could just provide an account for Anonymous Access...
Thanks!
add a comment |
up vote
0
down vote
up vote
0
down vote
There are several things you need to verify.
- Does the web service you are trying to access allow Anonymous Access? Authentication can be tricky for web-to-web calls
- What is the web application running under, IWAM_xxx or IUSR_xxx? Or are you using an application pool running under a specific identity?
- You may want to make sure your web application server's ASPNET or NETWORK SERVICE accounts can access your web service server.
If you want to get it working you could just provide an account for Anonymous Access...
Thanks!
There are several things you need to verify.
- Does the web service you are trying to access allow Anonymous Access? Authentication can be tricky for web-to-web calls
- What is the web application running under, IWAM_xxx or IUSR_xxx? Or are you using an application pool running under a specific identity?
- You may want to make sure your web application server's ASPNET or NETWORK SERVICE accounts can access your web service server.
If you want to get it working you could just provide an account for Anonymous Access...
Thanks!
edited Jan 18 '13 at 5:14
answered Jan 18 '13 at 5:04
Çöđěxěŕ
5,11651740
5,11651740
add a comment |
add a comment |
up vote
0
down vote
I have also faced this type of issue before. In my case permission to the code folder works. Please check the folder permissions and then try with the IIS permissions.
add a comment |
up vote
0
down vote
I have also faced this type of issue before. In my case permission to the code folder works. Please check the folder permissions and then try with the IIS permissions.
add a comment |
up vote
0
down vote
up vote
0
down vote
I have also faced this type of issue before. In my case permission to the code folder works. Please check the folder permissions and then try with the IIS permissions.
I have also faced this type of issue before. In my case permission to the code folder works. Please check the folder permissions and then try with the IIS permissions.
edited Dec 17 '15 at 15:44
Tunaki
87.5k21189259
87.5k21189259
answered Dec 17 '15 at 15:39
Pirates007
1
1
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f14391182%2fsystem-net-webexception-the-request-failed-with-http-status-401-unauthorized%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
First thing I would check is that service accounts are still valid. It's easy enough for someone to change a password, or to lock an account.
– DeanOC
Jan 18 '13 at 1:52