Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "InfoCentre"

Dear Maliming:

Were you able to take a look at our complete web.config?

We are anxious to be able to get our ASPNetZero app working on https.

Thanks - Skip Weeks

I had cut and pasted the incomplete contents. Here it is again:


<?xml version="1.0" encoding="utf-8"?>

<configuration> <system.webServer> <staticContent> <remove fileExtension=".json" /> <mimeMap fileExtension=".json" mimeType="application/json" /> <mimeMap fileExtension="woff" mimeType="application/font-woff" /> <mimeMap fileExtension="woff2" mimeType="application/font-woff" /> </staticContent> <!-- IIS URL Rewrite for Angular routes --> <rewrite> <rules> <rule name="Angular Routes" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> <add input="{REQUEST_URI}" pattern="^/(api)" negate="true" /> </conditions> <action type="Rewrite" url="/index.html" /> </rule> </rules> </rewrite> </system.webServer>

</configuration>


Am I missing something still?

Here's a link to the web.config file

https://www.dropbox.com/s/lj1gkfumvfw0lh6/web.config?dl=0

I have used web.config also. It's working for http urls without issues using web.config. For your reference working test environments (http://mylifehistorymatters.com, http://mylifestorymatters.org)

When i try using https(https://mylifehistoryapp.com, https://lifehistory.app), then only i am getting the below error in the client side console.

main.cc0f591fb65b72b5ada5.js:1 ERROR SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>) at XMLHttpRequest.i.onreadystatechange [as __zone_symbol__ON_PROPERTYreadystatechange] (main.cc0f591fb65b72b5ada5.js:1) at XMLHttpRequest.I (polyfills.f43a07710c5461fd2ff1.js:1) at t.invokeTask (polyfills.f43a07710c5461fd2ff1.js:1) at Object.onInvokeTask (main.cc0f591fb65b72b5ada5.js:1) at t.invokeTask (polyfills.f43a07710c5461fd2ff1.js:1) at e.runTask (polyfills.f43a07710c5461fd2ff1.js:1) at e.invokeTask [as invoke] (polyfills.f43a07710c5461fd2ff1.js:1) at b (polyfills.f43a07710c5461fd2ff1.js:1) at XMLHttpRequest.m (polyfills.f43a07710c5461fd2ff1.js:1)

Thanks & Regards, Dhamodharan

Showing 1 to 4 of 4 entries