Why does this code only work when using a breakpoint?

See the code below, for some reason it only works when I put a breakpoint on line 2 (*), is there any delay? Does the next line start before the second ends?

dp.SSLCertStoreType = nsoftware.IBizPayPal.DirectpaymentSSLCertStoreTypes.sstPEMKey

*dp.SSLCertStore = My.Computer.FileSystem.ReadAllText(Server.MapPath("\cert_key_pem.txt"))


dp.SSLCertSubject = "*"

      

Note. The error is thrown on the third line only when the breakpoint is set on the 2nd line, after clearing the gap, the program does my purchase through a credit card.

I will post the error again. I'm copying it now ...

System error: Failed to get security credentials: Error 8009030E.

Here he is, although he must say, "The order is confirmed!" enter a message if it works correctly.

0


source to share


3 answers


Almost certainly a threading problem, but no one can definitively answer unless they are familiar with nsoftware.IBizPayPal



+3


source


Sometimes you may find that a violation can change the state of an object due to the locals window evaluating the properties of the object. If they have a side effect, then all bets are disabled, unfortunately :( I don't know if this happens in your case.



+2


source


I don't know ASP, so just wondering out loud: Could this be caused by multithreading? You know, when you set a breakpoint, you are freezing the execution of all threads, but not so in real execution.

0


source







All Articles