Skip to main content
karstens81192378
Participating Frequently
December 27, 2017
Answered

Problem with CP9 HTML5 Project on Microsoft IIS

  • December 27, 2017
  • 2 replies
  • 624 views

Hi,
I have a problem with a CP9 HTML5 project: after publishing the project works fine on my local machine and on my hosted webserver. After publishing on a Microsoft IIS the project don’t start, there is only the spinnng wheel an nothing happened.
Any ideas?

thanks and regards
Karsten

    This topic has been closed for replies.
    Correct answer AJIT_M

    Hi There,

    You may try the below steps to add JSON mime type on your IIS Server-

    1. Go to IIS Manager
    2. Navigate to your site where Captivate HTML5 output is hosted.
    3. Select the site and go to MIME types.
    4. Click on Add under Actions.
    5. File name extension type would be .json
    6. MIME type would be application/json
    7. Click OK

    Now, you may also try to open the web.config of the application and disable handler to be get rendered as plain text by doing the below step-

     

    <!--<add name="JSONHandlerFactory" path="*.json" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" resourceType="Unspecified" preCondition="integratedMode" /> -->

     

    Once the above step is performed, try to restart IIS by typing “iisreset” in the Run window and then upload the whole project output folder to the  site and it should work fine.

     

     

    Note- You may locate the web.config file either by right click on the site and click on “explore” under IIS Manager or navigate to “C:\inetpub\wwwroot\wss\VirtualDirectories” location manually.

    Let me know if you face any issue.

    Regards,

    Ajit

    2 replies

    AJIT_M
    AJIT_MCorrect answer
    Inspiring
    December 27, 2017

    Hi There,

    You may try the below steps to add JSON mime type on your IIS Server-

    1. Go to IIS Manager
    2. Navigate to your site where Captivate HTML5 output is hosted.
    3. Select the site and go to MIME types.
    4. Click on Add under Actions.
    5. File name extension type would be .json
    6. MIME type would be application/json
    7. Click OK

    Now, you may also try to open the web.config of the application and disable handler to be get rendered as plain text by doing the below step-

     

    <!--<add name="JSONHandlerFactory" path="*.json" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" resourceType="Unspecified" preCondition="integratedMode" /> -->

     

    Once the above step is performed, try to restart IIS by typing “iisreset” in the Run window and then upload the whole project output folder to the  site and it should work fine.

     

     

    Note- You may locate the web.config file either by right click on the site and click on “explore” under IIS Manager or navigate to “C:\inetpub\wwwroot\wss\VirtualDirectories” location manually.

    Let me know if you face any issue.

    Regards,

    Ajit

    Lilybiri
    Legend
    December 27, 2017

    Thanks so much, Ajit, for this valuable information (was at a loss).

    Lilybiri
    Legend
    December 27, 2017

    Is it supporting JSON mime type?

    karstens81192378
    Participating Frequently
    December 27, 2017

    How can I check this?

    Lilybiri
    Legend
    December 27, 2017

    Have no idea, I don't use IIS.