Paypal .NET c# Sorry - your last action could not be completed

Posted on 2009-12-16
Last Modified: 2013-12-17

The following code in a .NET c# webpage works in debug mode or even publish off my server but when I migrate it to the live server I get the error "Sorry - your last action could not be completed " from ebay, any suggestions?


String amount = "1";

            String itemID = "trust";

            string item_name = " Trust Document";

            string item_cod = "T100";

            String OrderID = "8";

            String Registered_Paypal_Email_ID = "";


            String redirect = String.Empty;

            string return_page = "Default.aspx";

            string notify_page = "Default.aspx";

            string cancel_page = "Default.aspx";

            string item_quantity = "1";

            string currency_type = "AUD";

            redirect += "" + Registered_Paypal_Email_ID;

            redirect += "&item_name=" + "Item Name";

            redirect += "&amount=" + String.Format("{0:0.00} ", amount);

            redirect += "&item_number=" + itemID;

            redirect += "&currency_code=AUD";

            //redirect += "&add =1";

            redirect += "&return=";

            redirect += "&cancel_return=";

            redirect += "&notify_url=";

            redirect += "&custom=" + OrderID;


Open in new window

Question by:RyanUpton
    LVL 1

    Author Comment

    Ah haaaaaa

    It's because I'm using masking and redirecting....

    Any suggestions?

    LVL 10

    Expert Comment

    LVL 1

    Author Comment

    I couldn't seam to get that to work from within c#?

    LVL 10

    Accepted Solution

    Are you opening the payment page in the same window of your site?
    If so, open the window as a separate window by providing the target as blank, to the payment button or hyperlink.
    Let me know if still there is a concern
    LVL 1

    Author Comment

    I got this to work, <insert a yay; and a dance around room>

    When paypal returns it won't return to the masked site though will it?


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now