简体   繁体   中英

Visual Studio publish dialog taking a long time to appear

We have a fairly large ASP.NET MVC solution (around 45 projects) and when I try and publish (web), the publish dialog takes around 5-10 mins to appear. Once it appears the publish itself is pretty quick and works fine. This happens on any server I point the publish to.

Does anyone else have this issue? or know of any reason why this might be happening?

We are using VS2015 (although we also had this problem before when using 2012/13).

I've searched around but can't find anything relevant.

This worked for me, with the same issue Visual Studio Publish Web Dialogue takes excessive time to load

TL;DR: As a workaround for this problem, find your DbContext class which inherit from IdentityDbContext<> and change base class constructor from base("DefaultConnection") to base("DefaultConnection", false) and do a full rebuild on your solution. That will disable checking against Entity 1.0.0 which causes timeouts when run from Publish Web.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM