Click here to Skip to main content
15,885,985 members
Home / Discussions / Hosting and Servers
   

Hosting and Servers

 
Question[Partly solved ]How do I deploy/configure both an MVC solution and a separate MVC API solution to serve pages/request? Pin
GuyThiebaut23-Mar-18 8:22
professionalGuyThiebaut23-Mar-18 8:22 
I have a .NET MVC website live which also served as a test API - the solution both served standard web pages as well as API calls.

I decided that I wanted to separate the website and API so I now have two solutions.

I have amended the RouteConfig.cs for the website so that it no longer serves API routes.
How do I go about configuring things so that both the MVC website dll and the MVC API dll are accessible?

I uploaded the API dll and using postman I could see that the API service was not responding to the requests I sent.

I am guessing there is something I need to do with the web.congig or global.asax files that's as far as I have got so far(guessing... and some googling of course...).

Thank you for any help or direction in where to look for information - I don't think I have been asking the right question for Google searches so far.

Update
I have now partly solved this by creating two projects within one solution and referencing the API dll from the main application, including a route mapping for the API within the non API project.
It's a bit messy but will do for the moment.
“That which can be asserted without evidence, can be dismissed without evidence.”

― Christopher Hitchens


modified 24-Mar-18 5:58am.

QuestionDeploying and testing Pin
Mankgape19-Mar-18 0:02
Mankgape19-Mar-18 0:02 
QuestionWordpress Hosting Pin
User9874325-Dec-17 18:04
professionalUser9874325-Dec-17 18:04 
AnswerRe: Wordpress Hosting Pin
jschell26-Dec-17 7:47
jschell26-Dec-17 7:47 
GeneralRe: Wordpress Hosting Pin
User9874326-Dec-17 10:56
professionalUser9874326-Dec-17 10:56 
AnswerRe: Wordpress Hosting Pin
Unisecure Data Centers9-May-18 3:40
Unisecure Data Centers9-May-18 3:40 
QuestionChat functionality not working when secure server is involved. Pin
Member 135528281-Dec-17 17:10
Member 135528281-Dec-17 17:10 
Answer[REPOST]Re: Chat functionality not working when secure server is involved. Pin
Richard MacCutchan1-Dec-17 22:07
mveRichard MacCutchan1-Dec-17 22:07 
QuestionAppropriate ? Domain Name Registration Pin
C-P-User-316-Nov-17 5:55
C-P-User-316-Nov-17 5:55 
AnswerRe: Appropriate ? Domain Name Registration Pin
Richard MacCutchan16-Nov-17 21:56
mveRichard MacCutchan16-Nov-17 21:56 
GeneralRe: Appropriate ? Domain Name Registration Pin
C-P-User-319-Nov-17 2:52
C-P-User-319-Nov-17 2:52 
GeneralRe: Appropriate ? Domain Name Registration Pin
Richard Deeming20-Nov-17 2:22
mveRichard Deeming20-Nov-17 2:22 
GeneralRe: Appropriate ? Domain Name Registration Pin
C-P-User-319-Nov-17 2:53
C-P-User-319-Nov-17 2:53 
GeneralRe: Appropriate ? Domain Name Registration Pin
Richard MacCutchan19-Nov-17 3:13
mveRichard MacCutchan19-Nov-17 3:13 
AnswerRe: Appropriate ? Domain Name Registration Pin
Member 145548398-Aug-19 21:18
Member 145548398-Aug-19 21:18 
SuggestionHow to purchase SSL in any wordpress website Pin
Member 1341814119-Sep-17 7:30
Member 1341814119-Sep-17 7:30 
GeneralRe: How to purchase SSL in any wordpress website Pin
jschell29-Sep-17 7:31
jschell29-Sep-17 7:31 
GeneralRe: How to purchase SSL in any wordpress website Pin
Member 134442793-Oct-17 19:29
professionalMember 134442793-Oct-17 19:29 
GeneralRe: How to purchase SSL in any wordpress website Pin
majormans5-Jul-18 22:16
majormans5-Jul-18 22:16 
Questionare there any concurrent port range testing tool? Pin
maze314-Sep-17 23:51
professionalmaze314-Sep-17 23:51 
AnswerRe: are there any concurrent port range testing tool? Pin
jschell16-Sep-17 6:31
jschell16-Sep-17 6:31 
QuestionCode signing in cloud environment Pin
Jb3void22-Jun-17 1:46
Jb3void22-Jun-17 1:46 
AnswerRe: Code signing in cloud environment Pin
jschell19-Jul-17 7:44
jschell19-Jul-17 7:44 
AnswerRe: Code signing in cloud environment Pin
Nathan Minier24-Jul-17 2:30
professionalNathan Minier24-Jul-17 2:30 
QuestionHow to do like this? Pin
felixjrz19853-Jun-17 14:39
felixjrz19853-Jun-17 14:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.