I resolved the issue. The freeze time go down to 2 seconds or less.
Previously I open project through shared folder in local server.
I tested to open project through FTP access: I look that the freeze time is done but I have new performance issues.
I resolved the issue using WebDAV protocol:
- add WebDAV application in "default website" on the IIS server. This application allows me to access to the root folder of my websites.
- in server, open "C:\Windows\System32\inetsrv\config\applicationHost.config", add
allowSubDirConfig="false"
attribute:
<configuration>
<system.applicationHost>
<sites>
<site name="Default Web Site">
<application path="/WebDAV">
<virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot\WebDAV" logonMethod="Network" />
<virtualDirectory path="/WWW" physicalPath="C:\MyProjects" logonMethod="Network" allowSubDirConfig="false" />
</application>
</site>
</sites>
</system.applicationHost>
</configuration>
- in the same file, set
applyToWebDAV
attribute to "false":
<configuration>
<system.webServer>
<security>
<requestFiltering>
<fileExtensions ... applyToWebDAV="false">
...
</fileExtensions>
</requestFiltering>
</security>
</system.webServer>
</configuration>
- in local PC add connection to WebDAV folder.
- in VisualStudio open existing website through WebDAV folder.
Attenction
this solution is not perfect:
- I can't run debug of hosted website
- I can't edit
web.config
files