sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

After update Drop 2 unable to load the webpart in SharePoint

Open jenkinsns opened this issue 10 years ago • 9 comments

Hi,

I have updated the Release Notes Drop 2, after the update I found the difference while build locally, it change to https. i.e - Warning - [serve] When serving in HTTPS mode, a PFX cert path or a cert path and a key path must be provided. If a SSL certificate isn't provided, a default, self-signed certificate will be used. Expect browser security warnings.

After this I try to open the webpart in SharePoint it still pointing the http URL attached the screen shot FYR.

ie1

ie

jenkinsns avatar Sep 06 '16 23:09 jenkinsns

You're talking about a SharePoint-hosted workbench.aspx, right? That workbench tries both HTTPS and HTTP (it tries HTTP last, which is why you see the error specifically pointing out HTTP).

The issue is probably that you haven't trusted the self-signed cert. While running gulp serve, try navigating to a served URL in a browser and trusting the cert on both localhost and on a URL pointing to your machine name. i.e. - go to both https://localhost:4321/temp/manifests.js and https://<your-machine-name>:4321/temp/manifests.js and click through to trust the cert on each.

iclanton avatar Sep 07 '16 00:09 iclanton

Thank you very much @iclanton It is fixed.

jenkinsns avatar Sep 07 '16 10:09 jenkinsns

Was about to throw machine out of window after days of it not working but after several repeated attempts the suggestion from @iclanton fixed it in Firefox at least.

Now to try and get it working on my home machine.

michaelvperry avatar Sep 07 '16 15:09 michaelvperry

Glad it worked! We're working on improving the SSL story for the next drop so this won't be as painful.

iclanton avatar Sep 07 '16 20:09 iclanton

Hi,

Even after following the above steps doesnt solve the problem for me, I am on Windows 10. I could install the certificate multiple times and the result is the same, please help!

kspranesh avatar Sep 08 '16 04:09 kspranesh

it works for me on Chrome, thanks

lxi0901 avatar Sep 26 '16 03:09 lxi0901

This really needs to be addressed, far too many gotchas and kludgy workarounds to make any of this useful

Hikmer avatar Oct 04 '16 21:10 Hikmer

The magical hidden setting for ignoring insecure certificates is found here chrome://flags/#allow-insecure-localhost I can now make this work...but again, this is really a pain...and if I have to hold the hands of my developers to get their environments to work AND support them when it doesn't work...then all time saved with the new framework is for nothing.

Hikmer avatar Oct 04 '16 21:10 Hikmer

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 30 '20 06:01 msft-github-bot