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

前端 未结 2 1494
面向向阳花
面向向阳花 2021-02-19 01:07

I have a web application project that I publish via Visual Studio 2010 to my server. My problem is that it can take very long time before it can actually publish it. May

相关标签:
2条回答
  • 2021-02-19 01:29

    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 ...

    0 讨论(0)
  • 2021-02-19 01:35

    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.

    0 讨论(0)
提交回复
热议问题