projectkudu / AzureSiteReplicator

Azure Site Extension to replicate the content of one site to other sites using msdeploy
Apache License 2.0
17 stars 4 forks source link

No route registered for '/sitereplicator/' #15

Closed esalwin closed 6 years ago

esalwin commented 6 years ago

When we try to run Site Replicator in our production App Service, we get the following error:

No route registered for '/sitereplicator/'

We followed all of the README.md instructions and ensured no "webpages:Enabled" app setting. We also tried un-installing and re-installing the extension.

That said, Site Replicator works great in our staging App Service. If relevant, the two major differences between production and staging are:

davidebbo commented 6 years ago

Have you tried restarting the app?

esalwin commented 6 years ago

Yup! We tried restarting immediately after adding the extension and also after letting the extension "incubate" for a day.

davidebbo commented 6 years ago

Check your applicationhost.config per https://github.com/projectkudu/kudu/wiki/Azure-Site-Extensions#finding-your-applicationhostconfig.

Does it have something like this? Try comparing the working with non-working case:

    <application path="/sitereplicator" preloadEnabled="false" applicationPool="~1yoursitename">
      <virtualDirectory path="/" physicalPath="D:\home\SiteExtensions\sitereplicator" />
    </application>
esalwin commented 6 years ago

Thanks! The element (you posted above) was missing from our applicationhost.config due to an unrelated transform error from applicationhost.xdt.

We fixed applicationhost.xdt, restarted the App Service, and successfully added Site Replicator :)

davidebbo commented 6 years ago

Awesome!