SOLVED

Certificate error

%3CLINGO-SUB%20id%3D%22lingo-sub-9704%22%20slang%3D%22en-US%22%3ECertificate%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-9704%22%20slang%3D%22en-US%22%3EI%20am%20trying%20to%20follow%20the%20pnp%20partner%20pack%20setup%20process.%20After%20closely%20following%20instructions%20and%20three%20attempts%2C%20I%20get%20the%20oops%20exception%20value%3A%20null%20parameter%3Acertificate%20when%20loading%20the%20pnp%20site.%20All%20of%20the%20bits%20were%20downloaded%20from%20git%20hub%20last%20week.%20I%20think%20this%20is%20a%20common%20issue%20but%20I%20can't%20find%20any%20related%20posts%20here.%20Any%20ideas%20what%20to%20check%3F%20Should%20I%20wait%20for%20the%20upcoming%202.0%20launch%3F%3CBR%20%2F%3EBob%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-11983%22%20slang%3D%22en-US%22%3ERe%3A%20Certificate%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-11983%22%20slang%3D%22en-US%22%3E%3CP%3EGlad%20you%20got%20it%20to%20work%20and%20thanks%20for%20sharing%20your%20findings%20with%20the%20rest%20of%20the%20community.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-11650%22%20slang%3D%22en-US%22%3ERe%3A%20Certificate%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-11650%22%20slang%3D%22en-US%22%3E%3CP%3EI%20was%20able%20to%20resolve%20my%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThese%20are%20the%20steps%20that%20were%20different%20in%20my%20successful%20attempt%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1)%26nbsp%3B%20When%20creating%20the%20self%20signed%20cert%2C%20I%20passed%20the%20date%20parameters%20in%20MM%2FDD%2FYYYY%20format%2C%20and%20added%20the%20-String.%3C%2FP%3E%3CP%3EPreviously%20I%20was%20passing%20the%20date%20as%20DD%2FMM%2FYYYY.%26nbsp%3B%20The%20snippet%20I%20ran%20was%20as%20follows%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E.%5CCreate-SelfSignedCertificate.ps1%20-CommonName%20%22cwl-partner-pack%22%20-StartDate%2009%2F11%2F2016%20-EndDate%2009%2F11%2F2018%20-Password(ConvertTo-SecureString%20-String%20%22foo%22%20-AsPlainText%20-Force)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2)%20My%20VS2015%20was%20signed%20in%20under%20my%20microsft%20account%20registered%20with%20MSDN%2C%20which%20is%20not%20the%20subscription%20I%20was%20working%20with.%26nbsp%3B%20To%20make%20sure%20I%20was%20targeting%20the%20right%20subscription%2C%20I%20signed%20out%20of%20visual%20studio%20(top%20right)%20and%20in%20the%20cloud%20explorer%20I%20connected%20to%20the%20target%20subscription.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E3)%26nbsp%3B%20This%20is%20the%20one%20I%20think%20that%20was%20the%20fix.%26nbsp%3B%20When%20I%20ran%20the%20publish%20dialog%2C%20I%20imported%20the%20publishing%20profile%2C%20but%20instead%20of%20publishing%20I%20click%20on%20%22Close%22%20(next%20to%20publish).%26nbsp%3B%20Then%20I%20ran%20the%20publish%20dialog%20again%2C%20and%20this%20time%20the%20%22Enable%20Organizational%20Auhtentication%22%20option%20appeared%2C%20and%20was%20checked%20off.%26nbsp%3B%20I%20unchecked%20it%2C%20then%20published%20with%20successful%20outcome.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBob%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-11181%22%20slang%3D%22en-US%22%3ERe%3A%20Certificate%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-11181%22%20slang%3D%22en-US%22%3E%3CP%3EI%20think%20the%20tooling%20has%20changed%20since%20the%20PnP%20Partner%20Pack%20setup%20manual%20and%20video%20were%20released.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20using%20VS%20Professional%202015%20Update%203.%26nbsp%3B%20When%20I%20publish%20for%20the%20first%20time%2C%20there%20is%20no%20option%20to%20turn%20off%20%22Enable%20Organization%20Authentication%22%20the%20publish%20wizard.%26nbsp%3B%20If%20I%20publish%20again%2C%20it%20does%20appear%2C%20and%20is%20checked%20off.%26nbsp%3B%20I%20uncheck%20and%20publish%20again%2C%20but%20does%20not%20resolve%20the%20issue.%26nbsp%3B%20Also%20I%20note%20that%20additional%20apps%20are%20registering%20against%20the%20Azure%20AD%20in%20my%20tenant.%20these%20apps%20start%20with%20prefix%20WebApp-%20and%20can%20not%20be%20deleted%20from%20management%20portal.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20its%20a%20tooling%20issue%2C%20others%20must%20be%20encountering%20the%20same.%26nbsp%3B%20Can%20anyone%20repro%20this%20issue%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-10852%22%20slang%3D%22en-US%22%3ERe%3A%20Certificate%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-10852%22%20slang%3D%22en-US%22%3E%3CP%3EOne%20last%20thing%20to%20doublecheck%20is%20how%20you've%20published%20the%20web%20app...from%20the%20guide%3A%20%22When%20you%20publish%20the%20web%20application%2C%20%3CSTRONG%3Eremember%20to%20*uncheck%20*the%20option%20%22Enable%20Organizational%20Authentication%22%3C%2FSTRONG%3E.%20If%20you%20leave%20this%20selected%20you%20migh%20face%20authentication%20issues%20when%20running%20the%20pnp-partner-pack%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI've%20specifically%20addded%20that%20to%20the%20docs%20as%20I%20was%20having%20similar%20issues%20like%20you're%20seeing%20when%20I%20deployed%20the%20partner%20pack.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-10173%22%20slang%3D%22en-US%22%3ERe%3A%20Certificate%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-10173%22%20slang%3D%22en-US%22%3E%3CP%3EYes%20I%20completed%20the%20steps%20to%20create%20the%20x.509%20self%20signed%20certificate%20and%20uploaded%20it%20to%20my%20web%20app%2C%20as%20per%20the%20instructions.%26nbsp%3B%20I%20also%20added%20the%20%22WEBSITE_LOAD_CERTIFICATES%22%20with%20value%20of%20%22*%22%20to%20the%20App%20Settings%20area.%20I%20used%20the%20latest%20PNP-Powershell%20from%20github%20to%20create%20the%20cert%2C%20extract%20the%20Key%20information%2C%20paste%20into%20the%20manifest%20and%20upload%20back%20into%20the%20Azure%20AD%20App%20configuration.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOther%20details%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%26nbsp%3B%20added%20the%20%22%2F%22%20at%20the%20end%20of%20the%20reply%20to%20address%20in%20the%20Azure%20AD%20app%20configuration%3C%2FP%3E%3CP%3E-%26nbsp%3B%20for%20the%20Azure%20AD%20app%2C%20added%20the%20app%20permissions%20for%20SPO%20and%20delegate%20permissions%20for%20Microsoft%20Graph%20(read%20and%20write%20access%20to%20USer%20Profiles)%20FYI%20I%20missed%20this%20on%20the%20first%20attempt.%3C%2FP%3E%3CP%3E-%20When%20generating%20the%20secret%20for%20the%20Azure%20AD%20app%2C%20I%20specified%20two%20years%20instead%20of%20one.%3C%2FP%3E%3CP%3E-%20creation%20of%20Infrastrucutral%20Site%2C%20provisioning%20of%20Infrastructral%20site%2C%20and%20web.config%20customization%20were%20completed%20successfully%20using%20the%20powershell%20scripts.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20follwing%20the%20video%2C%20which%20obfiscates%20some%20of%20the%20powershell%20text%20when%20creating%20the%20cert.%26nbsp%3B%20Here%20is%20what%20I%20used%20to%20create%20the%20cert%2C%20perhaps%20thats%20an%20issue.%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23000000%22%20face%3D%22Calibri%22%3E.%5CCreate-SelfSignedCertificate.ps1%20-CommonName%20%22mysiteprovisioning%22%20-StartDate%2006%2F09%2F2016%20-EndDate%2006%2F09%2F2018%20-Password(ConvertTo-SecureString%20%22xxxxxx%22%20-AsPlainText%20-Force)%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23000000%22%20face%3D%22Calibri%22%3EI%20did%20make%20three%20attempts.%26nbsp%3B%20Each%20time%20I%20deleted%20the%20Azure%20AD%20app%2C%20the%20web%20app.%20and%20the%20infrastructual%20site%20collection%20in%20my%20tenant.%26nbsp%3B%20I%20was%20careful%20to%20isolate%20certs%2C%20Client%20IDs%2C%20etc.%20between%20each%20attempt.%20Each%20time%20I%20landed%20on%20this%20error%20on%20page%20load%3A%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOops!%20Exception%20occurred!%3C%2FP%3E%3CDIV%3E%3CDIV%20class%3D%22container%20body-content%22%3E%3CDIV%20class%3D%22table%22%3E%3CDIV%20class%3D%22row%22%3E%3CDIV%20class%3D%22col-sm-12%22%3EValue%20cannot%20be%20null.%20Parameter%20name%3A%20certificate%3CDIV%20class%3D%22showErrorLink%22%3E%3CA%20href%3D%22https%3A%2F%2Fcwlpnp3.azurewebsites.net%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20color%3D%22%230066cc%22%3EClick%20here%20to%20see%20more%20details%3C%2FFONT%3E%3C%2FA%3E%3C%2FDIV%3E%3CDIV%20class%3D%22error%22%3E%3CHR%20%2F%3E%3CDIV%3Eat%20Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertionCertificate..ctor(String%20clientId%2C%20X509Certificate2%20certificate)%20at%20OfficeDevPnP.Core.AuthenticationManager.GetAzureADAppOnlyAuthenticatedContext(String%20siteUrl%2C%20String%20clientId%2C%20String%20tenant%2C%20X509Certificate2%20certificate)%20at%20OfficeDevPnP.PartnerPack.Infrastructure.PnPPartnerPackContextProvider.GetAppOnlyClientContext(String%20siteUrl)%20at%20OfficeDevPnP.PartnerPack.SiteProvisioning.Controllers.HomeController.Index()%20at%20lambda_method(Closure%20%2C%20ControllerBase%20%2C%20Object%5B%5D%20)%20at%20System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase%20controller%2C%20Object%5B%5D%20parameters)%20at%20System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext%20controllerContext%2C%20IDictionary%602%20parameters)%20at%20System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext%20controllerContext%2C%20ActionDescriptor%20actionDescriptor%2C%20IDictionary%602%20parameters)%20at%20System.Web.Mvc.Async.AsyncControllerActionInvoker.%3CBEGININVOKESYNCHRONOUSACTIONMETHOD%3Eb__39(IAsyncResult%20asyncResult%2C%20ActionInvocation%20innerInvokeState)%20at%20System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult%602.CallEndDelegate(IAsyncResult%20asyncResult)%20at%20System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase%601.End()%20at%20System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult%20asyncResult)%20at%20System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.%3CINVOKEACTIONMETHODFILTERASYNCHRONOUSLYRECURSIVE%3Eb__3d()%20at%20System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.%26lt%3B%26gt%3Bc__DisplayClass46.%3CINVOKEACTIONMETHODFILTERASYNCHRONOUSLYRECURSIVE%3Eb__3f()%20at%20System.Web.Mvc.Async.AsyncControllerActionInvoker.%26lt%3B%26gt%3Bc__DisplayClass33.%3CBEGININVOKEACTIONMETHODWITHFILTERS%3Eb__32(IAsyncResult%20asyncResult)%20at%20System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult%601.CallEndDelegate(IAsyncResult%20asyncResult)%20at%20System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase%601.End()%20at%20System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult%20asyncResult)%20at%20System.Web.Mvc.Async.AsyncControllerActionInvoker.%26lt%3B%26gt%3Bc__DisplayClass21.%26lt%3B%26gt%3Bc__DisplayClass2b.%3CBEGININVOKEACTION%3Eb__1c()%20at%20System.Web.Mvc.Async.AsyncControllerActionInvoker.%26lt%3B%26gt%3Bc__DisplayClass21.%3CBEGININVOKEACTION%3Eb__1e(IAsyncResult%20asyncResult)%3C%2FBEGININVOKEACTION%3E%3C%2FBEGININVOKEACTION%3E%3C%2FBEGININVOKEACTIONMETHODWITHFILTERS%3E%3C%2FINVOKEACTIONMETHODFILTERASYNCHRONOUSLYRECURSIVE%3E%3C%2FINVOKEACTIONMETHODFILTERASYNCHRONOUSLYRECURSIVE%3E%3C%2FBEGININVOKESYNCHRONOUSACTIONMETHOD%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CHR%20%2F%3E%3CP%3E%C2%A9%20%3CA%20href%3D%22http%3A%2F%2Faka.ms%2FOfficeDevPnP%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20color%3D%22%230066cc%22%3EOffice%20365%20Developers%20Patterns%20%26amp%3B%20Practices%3C%2FFONT%3E%3C%2FA%3E%20-%20PnP%20Partner%20Pack%20version%3A%201.1%20(February%202016)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3EBob%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-10120%22%20slang%3D%22en-US%22%3ERe%3A%20Certificate%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-10120%22%20slang%3D%22en-US%22%3E%3CP%3EDid%20you%20add%20the%20certificate%20to%20your%20Azure%20web%20app%20as%20described%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2FPnP-Partner-Pack%2Fblob%2Fmaster%2FDocumentation%2FManual-Setup-Guide.md%23app-only-certificate-configuration-in-the-azure-web-app%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FOfficeDev%2FPnP-Partner-Pack%2Fblob%2Fmaster%2FDocumentation%2FManual-Setup-Guide.md%23app-only-certificate-configuration-in-the-azure-web-app%3C%2FA%3E%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor
I am trying to follow the pnp partner pack setup process. After closely following instructions and three attempts, I get the oops exception value: null parameter:certificate when loading the pnp site. All of the bits were downloaded from git hub last week. I think this is a common issue but I can't find any related posts here. Any ideas what to check? Should I wait for the upcoming 2.0 launch?
Bob
6 Replies
Highlighted

Did you add the certificate to your Azure web app as described here: https://github.com/OfficeDev/PnP-Partner-Pack/blob/master/Documentation/Manual-Setup-Guide.md#app-on...?

Highlighted

Yes I completed the steps to create the x.509 self signed certificate and uploaded it to my web app, as per the instructions.  I also added the "WEBSITE_LOAD_CERTIFICATES" with value of "*" to the App Settings area. I used the latest PNP-Powershell from github to create the cert, extract the Key information, paste into the manifest and upload back into the Azure AD App configuration.

 

Other details:

 

-  added the "/" at the end of the reply to address in the Azure AD app configuration

-  for the Azure AD app, added the app permissions for SPO and delegate permissions for Microsoft Graph (read and write access to USer Profiles) FYI I missed this on the first attempt.

- When generating the secret for the Azure AD app, I specified two years instead of one.

- creation of Infrastrucutral Site, provisioning of Infrastructral site, and web.config customization were completed successfully using the powershell scripts.

 

I was follwing the video, which obfiscates some of the powershell text when creating the cert.  Here is what I used to create the cert, perhaps thats an issue.

.\Create-SelfSignedCertificate.ps1 -CommonName "mysiteprovisioning" -StartDate 06/09/2016 -EndDate 06/09/2018 -Password(ConvertTo-SecureString "xxxxxx" -AsPlainText -Force)

 

I did make three attempts.  Each time I deleted the Azure AD app, the web app. and the infrastructual site collection in my tenant.  I was careful to isolate certs, Client IDs, etc. between each attempt. Each time I landed on this error on page load:

 

Oops! Exception occurred!

Value cannot be null. Parameter name: certificate

at Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertionCertificate..ctor(String clientId, X509Certificate2 certificate) at OfficeDevPnP.Core.AuthenticationManager.GetAzureADAppOnlyAuthenticatedContext(String siteUrl, String clientId, String tenant, X509Certificate2 certificate) at OfficeDevPnP.PartnerPack.Infrastructure.PnPPartnerPackContextProvider.GetAppOnlyClientContext(String siteUrl) at OfficeDevPnP.PartnerPack.SiteProvisioning.Controllers.HomeController.Index() at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)

© Office 365 Developers Patterns & Practices - PnP Partner Pack version: 1.1 (February 2016)

 

Bob

 

 

 

 

 

 

 

 

 

 

Highlighted

One last thing to doublecheck is how you've published the web app...from the guide: "When you publish the web application, remember to *uncheck *the option "Enable Organizational Authentication". If you leave this selected you migh face authentication issues when running the pnp-partner-pack"

 

I've specifically addded that to the docs as I was having similar issues like you're seeing when I deployed the partner pack.

Highlighted

I think the tooling has changed since the PnP Partner Pack setup manual and video were released.

 

I'm using VS Professional 2015 Update 3.  When I publish for the first time, there is no option to turn off "Enable Organization Authentication" the publish wizard.  If I publish again, it does appear, and is checked off.  I uncheck and publish again, but does not resolve the issue.  Also I note that additional apps are registering against the Azure AD in my tenant. these apps start with prefix WebApp- and can not be deleted from management portal.

 

If its a tooling issue, others must be encountering the same.  Can anyone repro this issue?

 

 

Highlighted
Solution

I was able to resolve my issue.

 

These are the steps that were different in my successful attempt:

 

1)  When creating the self signed cert, I passed the date parameters in MM/DD/YYYY format, and added the -String.

Previously I was passing the date as DD/MM/YYYY.  The snippet I ran was as follows:

 

.\Create-SelfSignedCertificate.ps1 -CommonName "cwl-partner-pack" -StartDate 09/11/2016 -EndDate 09/11/2018 -Password(ConvertTo-SecureString -String "foo" -AsPlainText -Force)

 

2) My VS2015 was signed in under my microsft account registered with MSDN, which is not the subscription I was working with.  To make sure I was targeting the right subscription, I signed out of visual studio (top right) and in the cloud explorer I connected to the target subscription.

 

3)  This is the one I think that was the fix.  When I ran the publish dialog, I imported the publishing profile, but instead of publishing I click on "Close" (next to publish).  Then I ran the publish dialog again, and this time the "Enable Organizational Auhtentication" option appeared, and was checked off.  I unchecked it, then published with successful outcome.

 

Bob 

Highlighted

Glad you got it to work and thanks for sharing your findings with the rest of the community.