gpt4 book ai didi

asp.net - 使用 IIS 而不是 IIS Express 会加快本地运行的 VS2013 WebAP 应用程序的启动时间吗?

转载 作者:行者123 更新时间:2023-12-01 06:30:21 25 4
gpt4 key购买 nike

我正在使用 VS2013 和 Microsoft WebAPI。当我启动我的应用程序时,它会花费大量时间做以下事情:

'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/1273337584/ROOT-1-130406535805395435): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/1273337584/ROOT-1-130406535805395435): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/1273337584/ROOT-1-130406535805395435): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/1273337584/ROOT-1-130406535805395435): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Utilities.v4.0\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.v4.0.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Utilities.v4.0\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.v4.0.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/1273337584/ROOT-1-130406535805395435): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Caching\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Caching.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WaIISHost.exe' (CLR v4.0.30319: RdRuntime): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsAzureTelemetryEvents\v4.0_2.2.0.0__31bf3856ad364e35\WindowsAzureTelemetryEvents.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Caching\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Caching.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WaIISHost.exe' (CLR v4.0.30319: RdRuntime): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsAzureEventSource\v4.0_2.2.0.0__31bf3856ad364e35\WindowsAzureEventSource.dll'. Cannot find or open the PDB file.
'WaIISHost.exe' (CLR v4.0.30319: RdRuntime): Loaded 'C:\K\JavaCert - S263\JavaCert\csx\Debug\roles\WebRole1\approot\bin\WebRole1.dll'. Symbols loaded.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/1273337584/ROOT-1-130406535805395435): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.JScript\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

有什么可能的方法可以加快速度吗?例如,如果我让 IIS 运行并使用它会更快吗?

请注意,这与

Exceedingly long compile time for Entity Framework project

然而,这个问题没有得到正确回答,所以对我没有帮助。

最佳答案

IIS 与 IIS Express 可能对您的应用程序启动时间没有帮助。但是阅读此输出让我相信您正在 Debug模式下运行整个应用程序。调试非常慢。我将首先在没有附加调试器的情况下运行应用程序,并确保 debug="true"未在 web.config 中设置。

关于asp.net - 使用 IIS 而不是 IIS Express 会加快本地运行的 VS2013 WebAP 应用程序的启动时间吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22743862/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com