Debugging an Application for long run…

Assalamualikum Wr Br…I was asked to look for settings to increase the timings of debugging from being time-outs when debugging a huge application. So in response to such situation I thought of posting it which would help to all.

Consider an application is being debugged as shown below:
iis
From the above image we conclude that a file named “RouteConfig.cs” possess a BREAKPOINT in method RegisterRoutes. Similarly we may have BREAKPOINTS in various files and methods, debugging these all may some time returns a dialog like as shown:

This situation caused because of the fact that the debugger(breakpoints) stopped execution of code on the Web site. This caused Internet Information Services (IIS) to assume that the worker process had stopped responding. Therefore, IIS terminated the worker process.

To continue to debug, you must configure IIS to allow the worker process to continue. This error message does not appear with versions of IIS that are older than IIS 7.
To configure IIS 7 to allow the worker process to continue

Open the Administrative Tools window.

Click Start, and then choose Control Panel.

In Control Panel, choose Switch to Classic View, if necessary, and then double-click Administrative Tools.

In the Administrative Tools window, double-click Internet Information Services (IIS) Manager.

IIS Manager opens.

In the Connections pane, expand the node if necessary.

Under the node, click Application Pools.

In the Application Pools list, right-click the name of the pool your application runs in, and then click Advanced Settings.

In the Advanced Settings dialog box, locate the Process Model section, and perform one of the following actions:

Set Ping Enabled to False.

Set Ping Maximum Response Time to a value that is larger than 90 seconds.

Setting Ping Enabled to False stops IIS from checking whether the worker process is still running and keeps the worker process alive until you stop your debugged process. Setting Ping Maximum Response Time to a large value allows IIS to continue monitoring the worker process.

Click OK to close the Advanced Settings dialog box.

Close IIS Manager and the Administrative Tools window. The brief screen shot is shown as:

iis1

For me it is TRUE just set to FALSE…

Hope you enjoyed this post…Thanks

Jazakallah Khair

Advertisements

Sample Crystal Report in VS2010

Hi We explore sample crystal report creation in visual studio 2010 using C# asp.net.We start first from database. I create a sample database by name Department and a table named Clg.In this table i have tuples as ID, Dept_name and HOD with 4 records.We display the entire table data as a report.
1. Now create an empty new web-project with name as Sample_crystal.
2. Add a webform named as webform1.aspx and add crystalreport which populates a wizard select Standard report and blank report then click ok.
3. Drag-drop the dataset1.xsd from toolbox and on which drop clg table from server explorer.
4. Drag-drop the crystalreportviewer on to the webform and in page_load event add the code as::
protected void Page_Load(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(“Data Source=.\\sqlexpress;Initial Catalog=departmetn;Integrated Security=True;Pooling=False”);
SqlDataAdapter da=new SqlDataAdapter(“select * from clg”,con);
DataSet ds=new DataSet();
da.Fill(ds,”clg”);
CrystalReport1 o = new CrystalReport1();
o.Load(Server.MapPath(“CrystalReport1.rpt”));
o.SetDataSource(ds.Tables[“clg”]);
CrystalReportViewer1.ReportSource=o;
CrystalReportViewer1.DataBind();
}
5. click the field explorer (just as toolbox,server explorer) @ crystalreport.rpt screen select Database fields–>database expert then select our dataset.
6. Expand the database Fields and drag-drop the columns of table on the crystal report Section 3(Details).
Run the application which yields the exact report from database.