Slow performance - ASP.NET ASPNET_WP.EXE and CSC.EXE Run after clicking redirect link

I click on a link from one page that redirects to another page (Response.Redirect (page.aspx)).

The browser takes about 30 seconds and displays the page. I am trying to track why the page has taken so long to load.

There are two other custom controls on the page.

I commented out lines of code for each and both controls, and the page still takes about 30 seconds to load.

I set breakpoints in the Page_Load event for each of the controls, as well as page.aspx, and it will also take about 30 seconds after clicking the link from Response.Redirect to the first breakpoint.

I downloaded the task manager and clicked the link. I notice that aspnet_wp.exe and csc.exe are executing during this 30 second time frame.

I am wondering if there are any kind of code code synanigans when I wait for the page to load.

This only happens the first time you click on a link. Subsequently, it is not so slow.

I searched googled, but there is not much useful information about this. Does anyone have any ideas?

Thank,

--- Dan ---

+3
source share
2 answers

The first time a page loads, asp.net will compile a large number of pages, almost every one found in one directory, including modules and DLLs found in bin.

( ), web.config( ).

<compilation batch="false" ... >

batch = "false" asp.net , , , dll, , 200 , , / .

, , App_Code dll. web.config, , , , , C:.

, fooobar.com/questions/10045/...

<compilation optimizeCompilations="true">

ms http://support.microsoft.com/kb/961884 , .

.net 4 Visual studio 2010

, .

-

, - , global.asax , , Mutex !. - .

+8

, csc.exe , , , aspx , . , <%= %>. - (, ascx, ).

, , , , , .

0

Source: https://habr.com/ru/post/1735494/


All Articles