Publishing my web application can take long time to accomplish because of the .suo file Publishing my web application can take long time to accomplish because of the .suo file asp.net asp.net

Publishing my web application can take long time to accomplish because of the .suo file


Try this way

In order to deploy the release on the development or production server, please follow the following steps.

  1. Install Web Deployment MSI.
  2. Right Click on the your project under the solution explorer and add the web deployment project( Here I am not using convert to web application or publishing)
  3. Then compile the files. This will create a folder in your project directory which will contain the required files to be deploy on the server.
  4. Take the back up of your virtual directory and remove the virtual directory as well as files from inetpub.
  5. Goto Inet mgr , type inetmgr in run hit enter.
  6. Under the default website, create a virtual directory, keep the deployed files in the inetpub and browser the files.
  7. Allow appropriate access such as read, run script and browse. That's all

Flag it as your answer if you have find it useful else let me know ...


I am not sure if it's a suo file that is causing, but for me, this solved the problem.

After compiling, the publish will call aspnet_compiler, which actually takes longer as it is generating custom dll for all code.

But check with your VSPackages, is there any package written for some interpretation or so, that might be interrupting your publish.