1. frederic david
  2. SnapDevelop
  3. Friday, 6 May 2022 09:01 AM UTC

Hello,

 

When i publish API on IIS Server with WebDeploy, everytime i have to stop and Start the site in IIS Manager before publish.

Somebody get a solution, to stop and start the site on IIS before click on publish ?

Frédéric DAvid

frederic david Accepted Answer Pending Moderation
  1. Friday, 6 May 2022 12:24 PM UTC
  2. SnapDevelop
  3. # 1

Thank's Chris,

 

Do you think it's possible to execute the .bat when you start the publish ? With some deploy parameter ?

Fred.

 

Comment
  1. Chris Pollach @Appeon
  2. Friday, 6 May 2022 14:56 PM UTC
Not that I am aware of .. however, that would be a great enhancement IMHO. That is to have a PRE & POST deployment feature in SNAP that would allow for those operations. However, I am not sure how feasible that would be on a "Remote" IIS Server. For a local-host IIS server though , that would be OK for the SD developer for their unit testing refresh deployments. However again ... I would just run my local BAT file for that after an IIS Web API deployment for now. HTH
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 6 May 2022 12:20 PM UTC
  2. SnapDevelop
  3. # 2

Hi Frédéric;

   That's a side effect of the way IIS "caches" various files to obtain better performance. Due to that feature after a deployment you must perform an IIS "restart" to have it drop the cached files & then pick-up the new deployed files.

   Note that this was always the case with a PowerServer 2020 Web or Mobile deployment. The same is true now with the new PowerServer 2021 Restful WEB API deployment as well. 

   Tip: You can automate the IIS restart with a .Bat file using for example: " iisreset /restart ". There are also other DOS commands that will do the job as well. A little Googling will expose those other options as well.  HTH

Regards ... Chris

Comment
  1. Chris Pollach @Appeon
  2. Monday, 9 May 2022 19:43 PM UTC
Hi Mike .. FYI: I believe that Frédéric is talking about PS2021 and//or SnapDevelop "Web API's" using the "Publish" feature. Not PS2020 web app deployment. ;-)
  1. Helpful
  1. mike S
  2. Monday, 9 May 2022 21:02 PM UTC
Chris, i was replying what you wrote, which makes it seem like it always worked that way:



"Note that this was always the case with a PowerServer 2020 Web or Mobile deployment. The same is true now with the new PowerServer 2021 Restful WEB API deployment as well. "



  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 10 May 2022 00:12 AM UTC
FWIW: From my decade plus of IIS experience, I have always had to refresh IIS after major *existing* app changes to avoid active users that are running the same app concurrently. Maybe it just my different experiences on super large systems. ;-)
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.