Skip to content

Commit dbfc9fa

Browse files
committed
Disable compilation snapshots to avoid loading that assembly
1 parent 5e3dc8f commit dbfc9fa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/WebJobs.Script.WebHost/Web.Release.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
44

55
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
6-
<appSettings xdt:Transform="Replace">
6+
<appSettings>
7+
<add key="Microsoft.Azure.NotificationHubs.ConnectionString" xdt:Locator="Match(key)" xdt:Transform="Remove" />
78
</appSettings>
89
<!--
910
In the example below, the "SetAttributes" transform will change the value of

src/WebJobs.Script.WebHost/Web.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@
125125
<appSettings>
126126
<!-- NotificationHubs specific app setings for messaging connections -->
127127
<add key="Microsoft.Azure.NotificationHubs.ConnectionString" value="Endpoint=sb://[your namespace].notificationhubs.windows.net;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=[your secret]" />
128+
129+
<!-- Disable compilation snapshots on Azure Web Apps, to avoid loading that assembly -->
130+
<add key="aspnet:PortableCompilationOutput" value="false" />
128131
</appSettings>
129132
<system.serviceModel>
130133
<extensions>

0 commit comments

Comments
 (0)