Click here to Skip to main content
15,895,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Select In Query on Cache Pin
N a v a n e e t h24-Sep-09 20:43
N a v a n e e t h24-Sep-09 20:43 
QuestionASP.NET Gridview Pin
Illegal Operation24-Sep-09 18:18
Illegal Operation24-Sep-09 18:18 
AnswerRe: ASP.NET Gridview Pin
Abhijit Jana24-Sep-09 19:09
professionalAbhijit Jana24-Sep-09 19:09 
AnswerRe: ASP.NET Gridview Pin
Vimalsoft(Pty) Ltd24-Sep-09 20:13
professionalVimalsoft(Pty) Ltd24-Sep-09 20:13 
Questionthe problem of databind/SQL database for some signs such as ++ # Pin
Seraph_summer24-Sep-09 10:53
Seraph_summer24-Sep-09 10:53 
AnswerRe: the problem of databind/SQL database for some signs such as ++ # Pin
Abhishek Sur24-Sep-09 10:59
professionalAbhishek Sur24-Sep-09 10:59 
AnswerRe: the problem of databind/SQL database for some signs such as ++ # Pin
Christian Graus24-Sep-09 12:17
protectorChristian Graus24-Sep-09 12:17 
Questionreauthentication Pin
sfm124-Sep-09 9:38
sfm124-Sep-09 9:38 
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 setting
o Always set the Web Site ASP Scripting Timeout to a value that is ~30 seconds less than the Connection Timeout
Note: currently set to 3000 in web.config
o Always set the Application Pool Shutdown Timeout to a value that is ~30 seconds more than the Connection Timeout
o Always set the Application Pool Recycle Physical RAM Limit to at least 64Mb (the default is 192Mb)
FYI: the simplest Classic ASP page that you can think of uses ~4Mb when a single request is being processed
o Always set the Application Pool Recycle Virtual RAM Limit to at least 128Mb (the default is 500Mb)
FYI: the simplest Classic ASP page that you can think of uses ~67Mb when a single request is being processed

Any idea what is causing the 401 error? Thx.
AnswerRe: reauthentication Pin
Ravi Mori24-Sep-09 19:20
Ravi Mori24-Sep-09 19:20 
GeneralRe: reauthentication Pin
sfm125-Sep-09 2:39
sfm125-Sep-09 2:39 
GeneralRe: reauthentication Pin
sfm125-Sep-09 8:59
sfm125-Sep-09 8:59 
Question[Message Deleted] Pin
Malik112224-Sep-09 9:22
Malik112224-Sep-09 9:22 
AnswerRe: Popup Pin
Not Active24-Sep-09 9:51
mentorNot Active24-Sep-09 9:51 
AnswerRe: Popup Pin Pin
Abhishek Sur24-Sep-09 10:39
professionalAbhishek Sur24-Sep-09 10:39 
GeneralRe: Popup Pin Pin
Not Active24-Sep-09 10:48
mentorNot Active24-Sep-09 10:48 
GeneralRe: Popup Pin Pin
Abhishek Sur24-Sep-09 10:55
professionalAbhishek Sur24-Sep-09 10:55 
GeneralRe: Popup Pin Pin
Not Active24-Sep-09 11:07
mentorNot Active24-Sep-09 11:07 
GeneralRe: Popup Pin Pin
Abhishek Sur24-Sep-09 11:27
professionalAbhishek Sur24-Sep-09 11:27 
QuestionRestart system after Rollback Pin
pradeep kumarappagari24-Sep-09 6:24
pradeep kumarappagari24-Sep-09 6:24 
AnswerRe: Restart system after Rollback Pin
Abhishek Sur24-Sep-09 8:25
professionalAbhishek Sur24-Sep-09 8:25 
GeneralRe: Restart system after Rollback Pin
Manas Bhardwaj24-Sep-09 8:31
professionalManas Bhardwaj24-Sep-09 8:31 
GeneralRe: Restart system after Rollback Pin
Abhishek Sur24-Sep-09 8:42
professionalAbhishek Sur24-Sep-09 8:42 
GeneralRe: Restart system after Rollback Pin
Abhishek Sur24-Sep-09 8:53
professionalAbhishek Sur24-Sep-09 8:53 
QuestionBest security Pin
Matt Cavanagh24-Sep-09 6:06
Matt Cavanagh24-Sep-09 6:06 
AnswerRe: Best security Pin
sashidhar24-Sep-09 6:22
sashidhar24-Sep-09 6:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.