diff --git a/src/ApiCommons/ApplicationInformation.cs b/src/ApiCommons/ApplicationInformation.cs
index 385ee7c1cced7b1615dd3252ade8beecd2ae8bcc..57a8c2e7db1b426a3dd3177f0eded2c7d74eff78 100644
--- a/src/ApiCommons/ApplicationInformation.cs
+++ b/src/ApiCommons/ApplicationInformation.cs
@@ -6,12 +6,12 @@ namespace Coscine.ApiCommons
 {
     public class ApplicationInformation
     {
-        public string AppName { get; set; } = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name;
+        public string AppName { get; set; } = System.Reflection.Assembly.GetEntryAssembly().GetName().Name;
         public string AppType { get; set; } = "apis";
         public Version Version { get; set; } = ToSemanticVersion(System.Reflection.Assembly.GetEntryAssembly().GetName().Version);
         public string DomainName { get; set; } = System.Net.NetworkInformation.IPGlobalProperties.GetIPGlobalProperties().DomainName;
         public string HostName { get; set; } = Dns.GetHostName();
-        public string PathPrefix { get; set; } = $"coscine/api/{System.Reflection.Assembly.GetExecutingAssembly().GetName().Name}";
+        public string PathPrefix { get; set; } = $"coscine/api/{System.Reflection.Assembly.GetEntryAssembly().GetName().Name}";
         public Tuple<int, int> PortRange = new Tuple<int, int>(6001, 6999);
         public int Port { get; set; } = 0;
         public string AppBasePath { get { return $"coscine/{AppType}/{AppName}"; } }
diff --git a/tools/packages.config b/tools/packages.config
index 3c65df896fad902af9e0d5bc8388adf80f57944c..9fc114d418b54c80084975ee60924bea0fafb6ca 100644
--- a/tools/packages.config
+++ b/tools/packages.config
@@ -1,4 +1,4 @@
 <?xml version="1.0" encoding="utf-8"?>
 <packages>
-    <package id="Cake" version="0.28.0" />
+    <package id="Cake" version="0.34.1" />
 </packages>