Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

ASP.NET - Localhost issue

  • 27-05-2011 04:42PM
    #1
    Moderators, Home & Garden Moderators, Regional Midwest Moderators, Regional West Moderators Posts: 16,716 Mod ✭✭✭✭


    Folks
    A bit of advice please.

    Doing a revamp of a site for a company, in the dev environment when I run the site and hit a certain page it appears like this:

    https://localhost:2724/Codebase/Payments.html

    Is there anyway I can get it when I run Visual Studio to appear like this?
    https://www.companyname.com/Payments.html

    I am stuck on it badly as I am processing payments but the payment crowd only trust the https://www.companyname.com/Payments.html address and its a live site so I can't change the URL the Payments crowd have.

    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 12,025 ✭✭✭✭Giblet


    Setup a local IIS server rather than the VS Webdev server, then you can setup the base folder.


  • Moderators, Home & Garden Moderators, Regional Midwest Moderators, Regional West Moderators Posts: 16,716 Mod ✭✭✭✭yop


    Giblet wrote: »
    Setup a local IIS server rather than the VS Webdev server, then you can setup the base folder.

    Thanks for that, I did that there in IIS now.

    Can I then set it up so that the site runs as https://www.companyname.com ?

    Where would I do that?

    Thanks


  • Registered Users, Registered Users 2 Posts: 490 ✭✭Pablod


    As far as I know (correct me if i'm wrong)
    You can't run it locally as https://www.companyname.com

    You would need to publish your project to the actual site https://www.companyname.com

    From my own experience testing with a specific Payment procesing site
    The trusted URL's would also be based on the IP address of your URL https://www.companyname.com/Payments.html
    So testing locally would not work.

    Again it depends on the site being used to process the payment, could be a different setup.

    Hope this helps


  • Moderators, Home & Garden Moderators, Regional Midwest Moderators, Regional West Moderators Posts: 16,716 Mod ✭✭✭✭yop


    Pablod wrote: »
    As far as I know (correct me if i'm wrong)
    You can't run it locally as https://www.companyname.com

    You would need to publish your project to the actual site https://www.companyname.com

    From my own experience testing with a specific Payment procesing site
    The trusted URL's would also be based on the IP address of your URL https://www.companyname.com/Payments.html
    So testing locally would not work.

    Again it depends on the site being used to process the payment, could be a different setup.

    Hope this helps

    Ah ok. I understand what you are saying.

    The company is Barclays, I have asked the company I am doing the work for to contact them to see what they can do, but they only have 1 single "Allowed URL", bit a pain that.

    Thanks for your help.


Advertisement