locked
deploy different projects in same solution RRS feed

  • Question

  • User-257070954 posted

    I creating mvc web api project and mvc aspx project. Both are in same solution. aspx project using the api project to get
    data. i want to know when we depoly application we need to publish and deploy application seperatly? is to possible to use
    same base url?
    like

    www. mvc.com/api
    www.mvc.com/aspx project

    Friday, February 16, 2018 9:38 AM

All replies

  • User541108374 posted

    Hi,

    these act as two different applications which you deploy separately. You could use the same "baseurl" but you'll need a different portnumber and the do some DNS settings so that you can map the / to your website and /api/ to your other project with the API's in it.

    Kris.

    Friday, February 16, 2018 12:29 PM
  • User-832373396 posted

    <g class="gr_ gr_21 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-ins replaceWithoutSep" id="21" data-gr-id="21">Hi</g> <g class="gr_ gr_9 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="9" data-gr-id="9">binustrat</g>,

    Sir, maybe you need to choose one.

    is to possible to use
    same base <g class="gr_ gr_1069 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="1069" data-gr-id="1069">url</g>?
    like

    www. mvc.com/api
    www.mvc.com/aspx project

    1 if you want to use the same base <g class="gr_ gr_496 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="496" data-gr-id="496">url</g>, the easiest way is to combine two projects that move the <g class="gr_ gr_2033 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="2033" data-gr-id="2033">api</g> code into the mvc <g class="gr_ gr_2115 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="2115" data-gr-id="2115">aspx</g> project

    or 2 the result looks like this as shown below, then you need to create the subdomain where you bought the domain; 

    sub. mvc.com/api
    www.mvc.com/aspx project

    Then publish and deploy application separately to these two addresses;

    Welcome to back if met any question with my solution :)

    With regards, Angelina Jolie

    Friday, February 23, 2018 7:31 AM
  • User1888235789 posted

    Hi

    You may deploy the <g class="gr_ gr_32 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="32" data-gr-id="32">aspx</g> project inside MVC project. By that you can access the projects as you have mentioned:

    www. mvc.com/api
    www.mvc.com/aspx project

    Don't forget to convert <g class="gr_ gr_178 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="178" data-gr-id="178"><g class="gr_ gr_214 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" id="214" data-gr-id="214">aspx</g></g> project to Application in IIS.

    Thanks

    Tuesday, February 27, 2018 3:44 AM