Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. reauthentication

reauthentication

Scheduled Pinned Locked Moved ASP.NET
sysadminwindows-admincsharpasp-netdatabase
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sfm1
    wrote on last edited by
    #1

    Background: I'm running an MVC app on Windows Server 2003 using Integrated Authentication. I have a page that is running into authentication problems only when it performs a large number of inserts. After a certain amount of time (~ 1-2 minutes) users are asked to enter their network username, password, and domain. This logon request appears three times, then an error page is displayed with a 401.1 error. The exact error message in the log is: 401 1 2148074248. The user is not asked for their network password anywhere else in the application and not consistently on this page…only if processed a large inventory which means a lot of inserts. I have added “executionTimeout="3000"” in the the web.config file to prevent a previous error of “HttpException (0x80004005): Request timed out.”. Sequence of Events observed with Fiddler a)Press submit button at 10:07 b) 401 /InventoryImport/SaveDepartments c) 401 /InventoryImport/SaveDepartments d) 401 /InventoryImport/SaveDepartments e) 10:08 Logon request f) 401 /InventoryImport/SaveDepartments g) 401 /InventoryImport/SaveDepartments h) 10:09 Logon request i) 401 /InventoryImport/SaveDepartments j) 401 /InventoryImport/SaveDepartments k) 10:10 Logon request l) 401 /InventoryImport/SaveDepartments m) 401.1 You are not authorized to view this page n) It appears that I have lost my connection because if I change the url to another valid url, I continue to receive 401 errors Sample entry in log file: 2009-09-17 17:51:19 W3SVC1746257461 198.186.126.241 POST /InventoryImport/SaveDepartments - 80 - 192.168.200.90 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+.NET+CLR+3.0.04506.648;+InfoPath.2;+.NET+CLR+3.5.21022;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 401 1 2148074248 Httperr.log No consistent error message. Event viewer: No errors. SQL Server logs: No errors. IIS settings: IIS is set to recycle worker process at 2:00am. Session is set to 20 minutes. Web app settings are: Connection timeout 120 sec, Enable HTTP Keep_Alives checked. Web.config: In my web.config I have set executionTimeout="3000". I asked my admin to have the Web Site Connection Timeout and the App Pool Shutdown Timeout bumped up (per instructions below), however, he said that did not work. Info from: http://www.arichards.com.au/iis62 o Always set the Web Site Connection Timeout to at least 120 seconds (2 minutes) o Enable the Web Site Keep Alive settin

    R 1 Reply Last reply
    0
    • S sfm1

      Background: I'm running an MVC app on Windows Server 2003 using Integrated Authentication. I have a page that is running into authentication problems only when it performs a large number of inserts. After a certain amount of time (~ 1-2 minutes) users are asked to enter their network username, password, and domain. This logon request appears three times, then an error page is displayed with a 401.1 error. The exact error message in the log is: 401 1 2148074248. The user is not asked for their network password anywhere else in the application and not consistently on this page…only if processed a large inventory which means a lot of inserts. I have added “executionTimeout="3000"” in the the web.config file to prevent a previous error of “HttpException (0x80004005): Request timed out.”. Sequence of Events observed with Fiddler a)Press submit button at 10:07 b) 401 /InventoryImport/SaveDepartments c) 401 /InventoryImport/SaveDepartments d) 401 /InventoryImport/SaveDepartments e) 10:08 Logon request f) 401 /InventoryImport/SaveDepartments g) 401 /InventoryImport/SaveDepartments h) 10:09 Logon request i) 401 /InventoryImport/SaveDepartments j) 401 /InventoryImport/SaveDepartments k) 10:10 Logon request l) 401 /InventoryImport/SaveDepartments m) 401.1 You are not authorized to view this page n) It appears that I have lost my connection because if I change the url to another valid url, I continue to receive 401 errors Sample entry in log file: 2009-09-17 17:51:19 W3SVC1746257461 198.186.126.241 POST /InventoryImport/SaveDepartments - 80 - 192.168.200.90 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+.NET+CLR+3.0.04506.648;+InfoPath.2;+.NET+CLR+3.5.21022;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 401 1 2148074248 Httperr.log No consistent error message. Event viewer: No errors. SQL Server logs: No errors. IIS settings: IIS is set to recycle worker process at 2:00am. Session is set to 20 minutes. Web app settings are: Connection timeout 120 sec, Enable HTTP Keep_Alives checked. Web.config: In my web.config I have set executionTimeout="3000". I asked my admin to have the Web Site Connection Timeout and the App Pool Shutdown Timeout bumped up (per instructions below), however, he said that did not work. Info from: http://www.arichards.com.au/iis62 o Always set the Web Site Connection Timeout to at least 120 seconds (2 minutes) o Enable the Web Site Keep Alive settin

      R Offline
      R Offline
      Ravi Mori
      wrote on last edited by
      #2

      hi.. checkout below link. If your application running successfully in your visual studio, then following will help you.. http://blog.codeville.net/2008/07/04/options-for-deploying-aspnet-mvc-to-iis-6/[^]

      S 1 Reply Last reply
      0
      • R Ravi Mori

        hi.. checkout below link. If your application running successfully in your visual studio, then following will help you.. http://blog.codeville.net/2008/07/04/options-for-deploying-aspnet-mvc-to-iis-6/[^]

        S Offline
        S Offline
        sfm1
        wrote on last edited by
        #3

        Thank you for your response, however, I am not getting a 404 error, I am getting a 401 error. Also, I can access the page and do not have a problem unless I am inserting a large amount of rows. Any other ideas? Thx.

        S 1 Reply Last reply
        0
        • S sfm1

          Thank you for your response, however, I am not getting a 404 error, I am getting a 401 error. Also, I can access the page and do not have a problem unless I am inserting a large amount of rows. Any other ideas? Thx.

          S Offline
          S Offline
          sfm1
          wrote on last edited by
          #4

          If my admin runs locally (on webserver) with admin login then he does not receive the 401 error.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups