• PureFacts
  • NEWBIE
  • 10 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 8
    Replies

I am working through the example

https://developer.salesforce.com/page/Configuring-SAML-SSO-to-Custom-.Net-Application

and the sample code is getting the exception 
 
m_SafeCertContext is an invalid handle

status = signedXml.CheckSignature(cert, true);

Googling this it seems the it may be related to an uninitialized field 

The actual exception we are getting is 

checking the signature failed!
System.Security.Cryptography.CryptographicException: m_safeCertContext is an invalid handle.
   at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PublicKey()
   at System.Security.Cryptography.Xml.SignedXml.CheckSignature(X509Certificate2 certificate, Boolean verifySignatureOnly)
   
Anyone know how to address this.

Thanks in advance.

Whatty
 
I am working through the example

https://developer.salesforce.com/page/Configuring-SAML-SSO-to-Custom-.Net-Application

and the sample code is getting the exception 
 
m_SafeCertContext is an invalid handle

status = signedXml.CheckSignature(cert, true);

Googling this it seems the it may be related to an uninitialized field 

Anyone know how to address this.

Thanks in advance.

Whatty
 

I am following the directions in the post https://developer.salesforce.com/page/Configuring-SAML-SSO-to-Custom-.Net-Application and have almost gotten it to work but am running in a invalid certificate problem

I have download the cert from the the Identify Provider setup page as per instructions and am using that cert in the sample app but when it goes to check the signature it says certificate is invalid.

It does the redirect to the salesforce login page and I see the response after authentication with the SAMLResponse filled in as expected.

I am pretty sure it is a config issue but not sure what I should be looking at.

Additionally - I have setup the Connected Apps feature and I don't see a the SAMLReponse at all in the request to my application (I am also pretty sure these are related)

Thanks in advance.

Whatty

I am following the directions in the post https://developer.salesforce.com/page/Configuring-SAML-SSO-to-Custom-.Net-Application and am trying to get the solution to run and I am missing the SalesforceIdentity DLL(s) 

I have checked the sample web app and SAMLPlugin downloads and the DLL(s) are not in those packages.

Searching the web hasn't provide much help either 

Where can I find these elusive files

Yes - I posted this to the .Net discussion board on March 2nd and haven't gotten a reply so I am posting here.

Thanks in advance.

Whatty

I am following the directions in the post https://developer.salesforce.com/page/Configuring-SAML-SSO-to-Custom-.Net-Application and am trying to get the solution to run and I am missing the SalesforceIdentity DLL(s) 

I have checked the sample web app and SAMLPlugin downloads and the DLL(s) are not in those packages.

Searching the web hasn't provide much help either 

Where can I find these elusive files

Thanks in advance.

Whatty

I would like to have a conditional section for a Contact based upon a custom attribute that I have added.

 

Is it possible to hide / show a section that I have added to the Contact page using the attribute value

 

Thanks in advance.

 

Whatty

Good afternoon,

 

I am trying to send an outboud message on a Contact workflow and am getting a 503 

 

My end point is something like

 

http://localhost:63245/Web/asp/...

 

I am not seeing the actual request in Fiddler which leads me to believe it is never actually being sent. However in Outbound messages delivery status page I see that it is being sent and retried.

 

What am I doing wrong?

 

Thanks in advance.

 

Whatty

 

Good afternoon,

 

I am trying to exeucte a callout to an external web service on the standard Contact form via a trigger and am getting the following error:

 

Error:Apex trigger pwmsContactTrigger caused an unexpected exception, contact your administrator: pwmsContactTrigger: execution of AfterUpdate caused by: System.CalloutException: Callout from triggers are currently not supported.: Class.PWMSContactManagement.salesforceContactActionSoap.addContact: line 24, column 1

 

What is the quickest and easier way to execute a callout on the standard save event for a Contact to a external SOAP endpoint - I have already created by APEX class to call the SOAP endpoint by importing my WSDL so I am half way there I believe.

 

Hopefully there is a tutorial on this somewhere but I can't seem to find something specific to what I am trying to do.

 

Thanks in advance.

 

Whatty

 

 

 

I am working through the example

https://developer.salesforce.com/page/Configuring-SAML-SSO-to-Custom-.Net-Application

and the sample code is getting the exception 
 
m_SafeCertContext is an invalid handle

status = signedXml.CheckSignature(cert, true);

Googling this it seems the it may be related to an uninitialized field 

Anyone know how to address this.

Thanks in advance.

Whatty
 

I am following the directions in the post https://developer.salesforce.com/page/Configuring-SAML-SSO-to-Custom-.Net-Application and have almost gotten it to work but am running in a invalid certificate problem

I have download the cert from the the Identify Provider setup page as per instructions and am using that cert in the sample app but when it goes to check the signature it says certificate is invalid.

It does the redirect to the salesforce login page and I see the response after authentication with the SAMLResponse filled in as expected.

I am pretty sure it is a config issue but not sure what I should be looking at.

Additionally - I have setup the Connected Apps feature and I don't see a the SAMLReponse at all in the request to my application (I am also pretty sure these are related)

Thanks in advance.

Whatty

I am following the directions in the post https://developer.salesforce.com/page/Configuring-SAML-SSO-to-Custom-.Net-Application and am trying to get the solution to run and I am missing the SalesforceIdentity DLL(s) 

I have checked the sample web app and SAMLPlugin downloads and the DLL(s) are not in those packages.

Searching the web hasn't provide much help either 

Where can I find these elusive files

Yes - I posted this to the .Net discussion board on March 2nd and haven't gotten a reply so I am posting here.

Thanks in advance.

Whatty

I am following the directions in the post https://developer.salesforce.com/page/Configuring-SAML-SSO-to-Custom-.Net-Application and am trying to get the solution to run and I am missing the SalesforceIdentity DLL(s) 

I have checked the sample web app and SAMLPlugin downloads and the DLL(s) are not in those packages.

Searching the web hasn't provide much help either 

Where can I find these elusive files

Thanks in advance.

Whatty

I'd like to override the standard Save button for Account objects. I know I can't do that directly, so I thought I'd override the Account Edit page, going to a Visualforce page instead, and then override the standard save action in a controller extension.

 

So I created a new VF page that looks like this:

 

 

<apex:page standardController="Account" extensions="AccountEditController">
<apex:detail subject="{!id}" relatedList="true"/>
</apex:page>

Then I overrode the Account Edit button to go to this page.

 

My first problem is that this page displays in view mode, not edit mode. If I click the Edit button, it (of course) just loads the same page again. How do I get the <apex:detail> component to display in edit mode?

 

My second problem is overriding the standard Save action. I think I can do it with the following in my controller extension:


public class AccountEditController {
private final Account acct;
private ApexPages.StandardController stdController;

public AccountEditController(ApexPages.StandardController stdController) {
this.acct = (Account)stdController.getRecord();
this.stdController = stdController;
}

public PageReference save() {
// Put my own stuff here

// Do the standard save action
return this.stdController.save();
}
}

 

Is that correct?

 

Thanks!

 

MJ.

 

 

 

 

 

 

 

  • April 16, 2009
  • Like
  • 0