I'm having an issue with my local website which, to make things worse, can't seem to replicate through Visual Studio. When running VS in debug mode the page takes about 3.5 minutes to complete.
My IIS application uses the default app pool with a Idle timeout set to 600, ping enabled set to false, and ping max response time set to 6000.
The website's connection timeout setting is set to 6000 seconds.
I have a very multithreaded asp.net page (lots of parallel.for/foreach loops) which stops after like 2 mintes on my local webserver with the following:
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
firemyst
Member
183 Points
73 Posts
Sessions Timeout through IIS but not Visual Studio. Help! :(
May 05, 2012 02:56 PM|LINK
Hey everyone:
I'm having an issue with my local website which, to make things worse, can't seem to replicate through Visual Studio. When running VS in debug mode the page takes about 3.5 minutes to complete.
My IIS application uses the default app pool with a Idle timeout set to 600, ping enabled set to false, and ping max response time set to 6000.
The website's connection timeout setting is set to 6000 seconds.
I have a very multithreaded asp.net page (lots of parallel.for/foreach loops) which stops after like 2 mintes on my local webserver with the following:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Request timed out.
Source Error:
Stack Trace:
In the IIS logs written it says the following:
#Software: Microsoft Internet Information Services 7.5
#Version: 1.0
#Date: 2012-05-05 14:11:25
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
2012-05-05 14:11:25 180.216.4.101 HEAD /manager/status - 80 - 122.176.75.92 Java/1.7.0-ea 404 0 2 1129
2012-05-05 14:12:18 ::1 POST /lotto.net/lotto.aspx - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:12.0)+Gecko/20100101+Firefox/12.0 500 0 0 120361
2012-05-05 14:12:38 ::1 GET /lotto.net/lotto.aspx - 80 - ::1 Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+WOW64;+Trident/5.0) 200 0 0 57
2012-05-05 14:15:03 ::1 POST /lotto.net/lotto.aspx - 80 - ::1 Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+WOW64;+Trident/5.0) 500 0 0 121589
My web.config file is the following:
<configuration> <connectionStrings> <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /> </connectionStrings> <system.web> <compilation targetFramework="4.0" /> <sessionState timeout="600" /> <authentication mode="Forms"> <forms loginUrl="~/Account/Login.aspx" timeout="2880" /> </authentication> <membership> <providers> <clear/> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /> </providers> </membership> <profile> <providers> <clear/> <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/> </providers> </profile> <roleManager enabled="false"> <providers> <clear/> <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" /> <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" /> </providers> </roleManager> </system.web> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> </configuration>What am I missing?!
Thanks!
AccuWebHosti...
Contributor
2212 Points
401 Posts
Re: Sessions Timeout through IIS but not Visual Studio. Help! :(
May 05, 2012 03:16 PM|LINK
Hi!
See the following URL :
How to increase ASP script timeout value?
This article will help you to increase timeout value from IIS.
Regards.
Top Windows VPS Provider
MahadTECH
Star
8976 Points
1659 Posts
Re: Sessions Timeout through IIS but not Visual Studio. Help! :(
May 06, 2012 12:19 AM|LINK
This is your Solution
First of all make simple page and check Session Timeout
if still having prob.
These are the resaons which to get above info in iis:
1. Restart the web site
2. Restart the IIS server
3. When new log files get created
4. Logging Configuration Changes
sessionState Element
http://msdn.microsoft.com/en-us/library/h6bb9cz9.aspx
Mahad Bin Mukhtar
Remember to Mark the replies as Answers
The easiest day was 'yesterday'.
MCP, MCSD
For .NET TECH Blog
firemyst
Member
183 Points
73 Posts
Re: Sessions Timeout through IIS but not Visual Studio. Help! :(
May 06, 2012 02:58 AM|LINK
Thanks for everyone's input!
I found a solution last night that seems to work. This is what i needed to add to the web.config file: