Certificate not works when deploy the store app package by powershell

 I request a web service with a pfx certificate in windows store app, it works well, but after I create a package by VS2013, and
deploy the app with powershell, access web service failed, seems the certificate not works. Any hints, suggestion ? My code as below:
string certRawData = StringEncryptionHelper.Decrypt(ConfigurationLoader.ApplicationSettings.CertificateData.RawData);
string certPassword = StringEncryptionHelper.Decrypt(ConfigurationLoader.ApplicationSettings.CertificateData.Password);
await CertificateEnrollmentManager.ImportPfxDataAsync(certRawData,
certPassword,
ExportOption.Exportable,
KeyProtectionLevel.NoConsent,
InstallOptions.None,
ConfigurationLoader.ApplicationSettings.CertificateData.FriendlyName);
CertificateQuery certQuery = new CertificateQuery { FriendlyName = ConfigurationLoader.ApplicationSettings.CertificateData.FriendlyName };
IReadOnlyList<Windows.Security.Cryptography.Certificates.Certificate> certs = await CertificateStores.FindAllAsync(certQuery);
certificate = certs.FirstOrDefault();
var protolFilter = new HttpBaseProtocolFilter { ClientCertificate = certificate };
var client = new HttpClient(protolFilter);
HttpResponseMessage result = await client.GetAsync(requestUri);

Hello Mosser lee,
As this issue is related to Development, it is recommended to post in the related MSDN forum.
The professionals there will be glad to help you.
https://social.msdn.microsoft.com/Forums/en-US/home
Thanks for your understanding.
Best regards,
Fangzhou CHEN
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Similar Messages

  • HT1947 The gyro no longer works when using the remote app on my iPad. I updated to iOS 7.0.1. This seem to happen after the update. Any suggestions?

    The gyro no longer works when using the remote app on my iPad. I updated to iOS 7.0.1.
    This seem to happen after the update. Any suggestions?

    Dear Apple friends,
    I have the exact same problem with some apps.
    Even when I try some websites in Safari and Chrome that require loading big chunks of data they crash.
    Today it crashed in two new places. In the notification center and when I opened newstand app I no longer was able to return to the main window and the dock disappeared.
    I have my ipad retina for about three months now but latelly this issue has became more frequent. What should I do?
    Should I update to the latest firmware and do what raymond73 said?
    Is there a fix for this issue?
    Has Apple said anything about this? Because I see that this issue is happening to a lot of people.
    Is it possible to downgrade to iOS 6?
    Is it a firmware problem? That can be fixed in future releases? Or an hardware issue?
    Should I wait or go to the place I bought it and try to get the money back?

  • Itunes stops working when accessing the store what needs to be done to get it working again?

    itune stops working when accessing the store.  What needs to be done to get it working again?

    Hey Baitmaster61!
    Here is an article that will help you troubleshoot this issue:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    If you are still experiencing issues with reaching the iTunes Store, you may also need to reference this article:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Take care, and thanks for visiting the Apple Support Communities.
    Cheers,
    Braden

  • Finder not working, when click the infinity sigh comes, can't open any file

    finder not working, when click the infinity sigh comes, can't open any file?

    That could be an indication your drive is failing. If you do not have a current Backup, that is top priority.

  • 1.call information such as call waiting,call forwarding, call holding is not working when caller the call me or im wait for my call i cant see any title by iphon , and also holding is the same.2. there is not any option for call baring.

    Hi. please solve my problem.
    .call information such as call waiting,call forwarding, call holding is not working when caller the call me or im wait for my call i cant see any title by iphon , and also holding is the same.2. there is not any option for call baring.3.playback music is not hearing by second partner during the call.4.i cant select ringing ton from saving tons.
    thank you in advance.

    Hi Ersin,
    Exception 1 would seem to be FORMATTING_ERROR, which suggests something in the design of the Smartform.  However, that doesn't fit with the form being generated from a report, but only erroring when called from a function module.  I can think of no reason why the different calling method would be a factor.
    When FORMATTING_ERROR is raise it should also set a message ID and number, are you able to determine what they are?
    Regards,
    Nick

  • SSO not working when launching the InfoView application

    We are so close to implementing SSO for BO Edge 3.0 using AD and Kerberos.  We can logon to InfoView and CMC using AD authenication and it works fine.  When turning on SSO:
        <context-param>
            <param-name>sso.enabled</param-name>
            <param-value>true</param-value>
        </context-param>
    in the InfoViewApp web.xml it fails with an error message in the Tomcat stdout.log
    Debug is  true storeKey false useTicketCache false useKeyTab false doNotPrompt false ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
    +          [Krb5LoginModule] user entered username: "at"MYCOMPANY.COM+
    User name is missing.
    When done through the application logon screen and able to logon it is
    Debug is  true storeKey false useTicketCache false useKeyTab false doNotPrompt false ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
    +          [Krb5LoginModule] user entered username: dennis"at"MYCOMPANY.COM+
    The username appears in the log file followed by the debug message for Kerberos key being created.
    I am so close, does anyone have an idea?

    Hi Tim,
    The Vintela SSO document for BOE XI 3.1 is very comprehensive, but it has not resolved my issue.
    Under NTLM option I SSO works great with .NET InfoView as long as I have the web site authentication set to Windows Authentication and ASP .NET Authentication enabled.  Once the ASP .NET is disabled, SSO does not work.
    When using the Kerberos option, .NET InfoView SSO does not work due to the error 'propagating the security context between the security server and the client'.
    The Java InfoView SSO does not work either, but I can enter my user credentials and logon fine.
    std.out error:
    Debug is  true storeKey false useTicketCache false useKeyTab false doNotPrompt false ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
              [Krb5LoginModule] user entered username: @OR.PROVIDENCE.ORG
    Acquire TGT using AS Exchange
              [Krb5LoginModule] authentication failed
    Generic error (description in e-text) (60)
    No user name is being passed.  I've been through a multitude of documents and forums ensuring settings are correct and I believe they are including no duplicate SPN's.
    The only issue on the server is that I cannot open the tomcat confi app. due to it not able to start service BOE120Tomcat.  I was able to update the registry with the info for the bsclogin.config and krb5.ini.  I was not able to find anything on getting that service started.
    Any ideas?  Need more info? I have a bunch. 
    Thanks and have fun,
    Phil

  • My volume is not working when on the ringer what do I do

    My iPhone volume is not working when I have the volume set on. It will work with the headphones but other then that nothing. What's going on with it?

    supposedly from what I have read it is a software issue. I actually am also having this problem it worked after I performed a full reset,  but now it has started again tomorrow I am going to the apple store to find out what I can do as I bought my 4s right before the 5 was released.

  • App Insights for web application not working when deployed to Dev server

    App Insights is not sending telemetry data for ASP.NET MVC web *requests* (page views from the JS instrumentation are fine) when the app is deployed to the Dev or Test IIS servers.  On local IIS express it works perfectly fine.    I have
    no idea how to troubleshoot this problem.
    Bert Jackson

    - the AI.config file is both in the root of the site, and the /bin folder (which was confusing the other day).  Both are correct.
    - it looks like a local browser can go to https://dc.services.visualstudio.com (it results in a 403 since its just a GET to the root).  During this test, I found that this server did NOT have the Root trust certificate (Baltimore cybertrust), which
    would cause problems when using IE locally to browse the app; the javascript AI logging was not working, because it couldnt fetch the ai.0.js file).  I got the proper root certificate installed on the server, but request logging still not working.  I
    dont believe the firewall is a problem.
    - I've verified that all binaries are indeed deployed in to the bin folder on the server
    - web.config does have the AI http module; I've verified via logging that the ApplicationInsightsWebTracking is loaded.  However, I have custom Context/Telemetry initializers, and their Initialize() methods are *NOT* being called when deployed on the
    server.  I've tried both ways of registering the initializers; via code in the Application_Start() event and also in the ApplicationInsights.config file.
    I don't know how to troubleshoot any further, to figure out if AppInsights is actually *trying* to send telemetry out and failing, or if its not actually even trying.
    Bert Jackson

  • Java script in jsff page is not working when deployed as adf lib jar

    hi,
    We have a ViewController Project with a several jsff pages that has javascript references to a .js fiile in the same project.
    When run in the same app, the javascript functions are invoked correctly.
    but, when deployed as an ADF-library and consumed in a diff application, not several components' javascript is invoked.
    Input Text Components javascript is almost always invoked. But, javascript on radio buttons or table are not invoked.
    Jdev: 11.1.1.6
    Thanks,
    Harsha.

    How to include javascript resources in  Facelet tag library

  • Single Sign On is not working when deploying a Wi-Fi profile from Configuration Manager 2012 R2

    Hello,
    Trying to deploy a wireless profile to a user collection everything works except for the single sign on.
    The user will get the wireless profile and be able to connect successfully but when the user signs on again to the same device the Wi-Fi will not connect before the logon process starts. 
    So GPO processing and home drive mappings are not occurring. The Wi-Fi profile is configured for "Single Sign On - Perform immediately before user logon" 
    These same settings can be managed successfully by GPO.  It would be really nice to be able to use ConfigMgr though!
    Thank you.

    Hi,
    Please refer to the links below:
    Single Sign-On Profile Sample
    http://msdn.microsoft.com/en-us/library/windows/desktop/aa369849(v=vs.85).aspx
    Wireless Single Sign-On
    http://technet.microsoft.com/en-us/magazine/2007.11.cableguy.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • BT Broadband not working when on the phone

    Been a BT customer for couple of months.
    Multple devices are connected to the Hub no problems but when the phone rings the broadband does not work. 
    The Hub flashes orange almost everytime when someone is on the phone. Whether it be a outgoing or incoming call.
    Only using the master socket for both the phone and the Hub. Using the inbuilt filter on the socket. 
    If anyone could help with this issue I would greatly appreciate it.  
    Did not have this issue with Orange Broadband so there must be something wrong on BT's end not ours!

    Can you specify your current setup?
    Which Hub do you use?
    Does your phone socket have the 'Openreach' symbol on it?
    Do you use filters?
    Is your hub connected to the master socket?
    Is your phone connected to an extension socket?
    ┌──────────────────────────────────────┐
        To say thanks for this post, please click the star on the left
       If not, please accept my apologies, hope I can help next time
    └──────────────────────────────────────┘

  • Report using excel sheet as data source not working when deployed to production.

    I have a set of SSRS reports that use an excel sheet as a datasource.
    Now when I preview the reports or run them in the Visual Studio IDE on my local machine i.e
    the development machine, the reports run fine & display all correct results.
    However, when we deploy the reports to the Production machine which is on a separate server,
    the following error message is displayed :
    "The current action cannot be completed. The user data source credentials do not meet the requirements to run this report. Either the user data source credentials are not stored in the report server database, or the user data source is configured not to
    require credentials but the unattended execution account is not specified. (rsInvalidDataSourceCredentialSetting)"
    I've copy pasted the connection string used for connecting to the excel file as reference :
    Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\MyFolder\CurrentFile.xlsx;Extended Properties="Excel 12.0;HDR=Yes;";
    The excel file has also been uploaded to the machine housing the reporting server (i.e to C:\MyFolder location)

    Hi Aaakar,
    From the error message, please try to change the setting of Credential type for the data source on report manager as follows:
    Go to the Data Sources properties page.
    For the Connect Using option, select Credentials stored securely in the report server.
    In User Name and Password, type credentials that can be used to access the database. If you are using SQL Server as the data source, the user name must be valid for both logging on to the server and for accessing the database that contains the data for
    the report.
    If the user name and password are credentials for a Windows account, select Use as Windows Credentials.
    If you want the report server to pass the credentials of the user accessing the report to the server hosting the external data source, click Windows Integrated Security. In this case, the user is not prompted to type a user name or password.
    For more details about Configure Data Source Properties, please see:
    http://technet.microsoft.com/en-us/library/ms155882.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Hyperlinks in Excel not working when doing the PDF Convert

    I have worked on this and worked on this. Now I am at a point where I need assistance as I am stumped.  I have about 20 different facilities that have financial statements that need to be published in Adobe as a PDF format and when I go through the steps to convert everything looks good, except the links are not working. We have about 62-74 pages that will be exported and due to the departments and such we need the links to work.
    This is through Excel-
    I  select the worksheets I want to convert then after it is done I open the PDF and the links are not working. To set them up manually in Adobe is too labor intensive -- any ideas on how to get this to work?
    Thanks in advance for any assistance you can provide me.

    I am on the X version.
    I am using the PDFMaker
    Using either 2003 or 2010 Excel version
    Click on making bookmarks and links
    I can send an attachment, please beware that is it financial information that cannot be published-also the hyperlinks are setup in Excel as well.
    Not sure how to upload the worksheet and would prefer to send via email if at all possible.
    ANY HELP is GREATLY Appreciated :-)
    Thank you and have a great day!

  • ?Import ? Statmenet Not working When Deploying it on Server.

    What should be the process if I want to use import statement in RTf template on Standalone BI Publisher (Verision 10.1.3.4)
    I have uploaded both the main.rtf and include.rtf and I have put the <?import:include.rtf?> in main but it does not work.
    Please advise
    Thanks

    I did that but it complains that file not found. I used the following statement
    MAIN FILE
    <?import:include.rtf?>
    <?call:TC?>
    SUB TEMPLATE (include.rtf)
    <?template:TC?>
    TESTING THIS Include Page
    End Template
    It complains that file not found.
    I have uploaded both the file BI Publisher Console.
    May be I am putting the wrong path or something now sure.

  • Microphone not working when on the phone

    Hello. Recently I noticed that my microphone isn't working properly when I call people or vice versa. I ring people rarely so I haven't noticed earlier but this might've happened after 4.4.2 update...?
    The microphone works fine when I record a video and works fine when checked in diagnostics. It is very muffled when I'm on the phone and when I check it in the *#*#7378423#*#* service checker.
    I tried pretty much everything - reinstalling the update with Sony PC companion, factory data reset, removing my SIM card, running the safety mode, uninstalling apps, disabling google voice services, checking and unchecking all sound improvements (both in Sound and Call settings, eg clear audio+ and microphone noise suppression) and NOTHING WORKED. Not for a second. I read multiple forum threads where people said their microphone would work for a couple of hours and then break again - mine is muffled/broken at all times.
    Any suggestions? I'm bringing it to the sony store tomorrow, if they don't fix it I want my money back. A phone should be able to carry out PHONE CALLS.

    Sighhhh, wasted so much time yesterday and today going around Sony centre and then carphone warehouse. They told me to come back after Easter.
    I came home, banged the phone against the wall and it worked.
    Turned out that mic was working on loud speaker and when using headphones so I thought that the secondary mic is working and the main one (placed with the speakers) isn't. So I banged that part against the wall slightly (in plastic case to prevent scratches) then put the phone underwater, waited for it to dry and now it's working. Idk how well and if it's of perfect quality again but people can hear me well.

Maybe you are looking for

  • How to make use of SAP NetWeaver Visual Composer in business

    Dear Experts,     Can anyone help me the use of SAP Netweaver Visual Composer benefits and how it can be used to get the integerated business reult. How it helps the organisation to get benefited and how it differs from other tools. Regards Veeraragh

  • FIOS Quantum Setup

    After reading all of the negative comments posted on the forum, I decided to relay my experience with the FIOS Quantum TV upgrade. The entire process works "when you follow the directions." I actually save money by changing my previous equipment, whi

  • Swap hard drive from G4 14" 1.33 to a G4 14" 1.2?

    After my display in my G4 14" 1.33 bit the dust (http://discussions.apple.com/thread.jspa?messageID=6439953) and giving up on a fix, I've come across another G4 14". According to the owner, a Genius has said the hard drive is dead. While I'm proceedi

  • Query using SDO in JDeveloper - NullPointer

    I have this java lines for query: DocsOddcModuleServiceImpl docs = new DocsOddcModuleServiceImpl(); FindCriteria findCriteria = new FindCriteriaImpl(); FindControl findControl = new FindControlImpl(); DocsOddcVOSDOResult result = docs.findDocsOddcVO1

  • How can I resend a message I previously sent?

    I want to highlight or open a previously sent message and "send again". I can't find how to do that.