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)?










share|improve this question


















  • 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















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)?










share|improve this question


















  • 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













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)?










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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














  • 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












2 Answers
2






active

oldest

votes

















up vote
0
down vote













There are several things you need to verify.




  1. Does the web service you are trying to access allow Anonymous Access? Authentication can be tricky for web-to-web calls

  2. What is the web application running under, IWAM_xxx or IUSR_xxx? Or are you using an application pool running under a specific identity?

  3. 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!






share|improve this answer






























    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.






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














       

      draft saved


      draft discarded


















      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

























      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.




      1. Does the web service you are trying to access allow Anonymous Access? Authentication can be tricky for web-to-web calls

      2. What is the web application running under, IWAM_xxx or IUSR_xxx? Or are you using an application pool running under a specific identity?

      3. 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!






      share|improve this answer



























        up vote
        0
        down vote













        There are several things you need to verify.




        1. Does the web service you are trying to access allow Anonymous Access? Authentication can be tricky for web-to-web calls

        2. What is the web application running under, IWAM_xxx or IUSR_xxx? Or are you using an application pool running under a specific identity?

        3. 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!






        share|improve this answer

























          up vote
          0
          down vote










          up vote
          0
          down vote









          There are several things you need to verify.




          1. Does the web service you are trying to access allow Anonymous Access? Authentication can be tricky for web-to-web calls

          2. What is the web application running under, IWAM_xxx or IUSR_xxx? Or are you using an application pool running under a specific identity?

          3. 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!






          share|improve this answer














          There are several things you need to verify.




          1. Does the web service you are trying to access allow Anonymous Access? Authentication can be tricky for web-to-web calls

          2. What is the web application running under, IWAM_xxx or IUSR_xxx? Or are you using an application pool running under a specific identity?

          3. 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!







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 18 '13 at 5:14

























          answered Jan 18 '13 at 5:04









          Çöđěxěŕ

          5,11651740




          5,11651740
























              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.






              share|improve this answer



























                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.






                share|improve this answer

























                  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.






                  share|improve this answer














                  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.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Dec 17 '15 at 15:44









                  Tunaki

                  87.5k21189259




                  87.5k21189259










                  answered Dec 17 '15 at 15:39









                  Pirates007

                  1




                  1






























                       

                      draft saved


                      draft discarded



















































                       


                      draft saved


                      draft discarded














                      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





















































                      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







                      這個網誌中的熱門文章

                      Post-Redirect-Get with Spring WebFlux and Thymeleaf

                      Xamarin.form Move up view when keyboard appear

                      JBPM : POST request for execute process go wrong