Skip to content

Commit 7267994

Browse files
committed
Merge pull request #39 from exceptionless/environment-variables
Fixed an issue with self hosted installs that used AppSettings.
2 parents e9fdaf4 + 062c2a3 commit 7267994

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

Source/Samples/SampleMvc/Exceptionless.SampleMvc.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<RestorePackages>true</RestorePackages>
2525
<TargetFrameworkProfile />
2626
<NuGetPackageImportStamp>5ce62974</NuGetPackageImportStamp>
27+
<UseGlobalApplicationHostFile />
2728
</PropertyGroup>
2829
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2930
<DebugSymbols>true</DebugSymbols>
@@ -119,7 +120,7 @@
119120
<Reference Include="System.EnterpriseServices" />
120121
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
121122
<Private>True</Private>
122-
<HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
123+
<HintPath>..\..\..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
123124
</Reference>
124125
<Reference Include="System.Net.Http">
125126
</Reference>

Source/Samples/SampleMvc/Web.config

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,10 @@
44
http://go.microsoft.com/fwlink/?LinkId=152368
55
-->
66
<configuration>
7-
<configSections>
8-
<section name="exceptionless" type="Exceptionless.ExceptionlessSection, Exceptionless.Extras" />
9-
</configSections>
10-
<exceptionless apiKey="LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw" serverUrl="http://localhost:50000" enableSSL="false" tags="Europe">
11-
<settings>
12-
<add name="TraceLogLimit" value="30" />
13-
</settings>
14-
</exceptionless>
157
<appSettings>
8+
<add key="Exceptionless:ApiKey" value="LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw" />
9+
<add key="Exceptionless:ServerUrl" value="http://localhost:50000" />
10+
1611
<add key="webpages:Version" value="3.0.0.0" />
1712
<add key="webpages:Enabled" value="false" />
1813
</appSettings>
@@ -39,8 +34,6 @@
3934
<remove name="ExceptionlessModule" />
4035
<add name="ExceptionlessModule" type="Exceptionless.Mvc.ExceptionlessModule, Exceptionless.Mvc" />
4136
</modules>
42-
43-
4437
<handlers>
4538
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
4639
<remove name="OPTIONSVerbHandler" />

Source/Shared/Extensions/ExceptionlessConfigurationExtensions.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,8 @@ public static Uri GetServiceEndPoint(this ExceptionlessConfiguration config) {
138138
builder.Path += builder.Path.EndsWith("/") ? "api/v2/" : "/api/v2/";
139139

140140
// EnableSSL
141-
if (config.EnableSSL && builder.Port == 80 && !builder.Host.Contains("local")) {
141+
if (builder.Scheme == "https" && builder.Port == 80 && !builder.Host.Contains("local"))
142142
builder.Port = 443;
143-
builder.Scheme = "https";
144-
}
145143

146144
return builder.Uri;
147145
}

0 commit comments

Comments
 (0)