Question

Environment

I use Visual Studio 2012 with ReSharper 7.
The issue occurs when I develop website.
I don't develop website in local IIS, but in local-network: they are in local-server, I open they in shared folder, example \\my-server\InetWeb\Domains\acme.com\www_v1.

My issue

When I work with .cshtml file I have not issues.
But when I save a .cs file in App_Code folder and go to another .cs file in App_Code folder, Visual Studio UI don't works, it is freezed for 12 seconds!!.
Same issue when I create new file in App_Code, or when I rename Class, move file, from/to this folder.

If I suspend ReSharper, Visual Studio works faster, always.

How can I resolve it?

Yesterday I tested ReSharper 8: I have the same issue.

Was it helpful?

Solution 2

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

OTHER TIPS

The issue is simply that R# is fairly slow to update it's database. The database is typically under the name: SolutionName\_ReSharper.SolutionName

The solution can simply be to use another folder to set the R# cache.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top