Click here to Skip to main content
15,894,646 members
Home / Discussions / C#
   

C#

 
GeneralRe: Declaring a Generic Class Pin
Richard Andrew x6429-May-17 2:09
professionalRichard Andrew x6429-May-17 2:09 
GeneralRe: Declaring a Generic Class Pin
OriginalGriff29-May-17 2:26
mveOriginalGriff29-May-17 2:26 
QuestionMessage Closed Pin
28-May-17 9:06
Member 1308759428-May-17 9:06 
AnswerRe: Why still get empty list? Pin
Pete O'Hanlon28-May-17 9:13
mvePete O'Hanlon28-May-17 9:13 
QuestionAbout the WM_LBUTTONDOWN Pin
Member 1322740128-May-17 6:15
Member 1322740128-May-17 6:15 
AnswerRe: About the WM_LBUTTONDOWN Pin
Gerry Schmitz28-May-17 9:51
mveGerry Schmitz28-May-17 9:51 
AnswerRe: About the WM_LBUTTONDOWN Pin
raddevus29-May-17 4:42
mvaraddevus29-May-17 4:42 
QuestionPOST JSON Request to a RESTful service + server deployment Pin
Code_Project_127-May-17 9:07
Code_Project_127-May-17 9:07 
Hello,

I'm looking to make a web service to be available in the form
of ASP.NET MVC routing, meaning "base_url/controller/action",
optionally with some extra parameters for GET requests, plus
some other "actions" for POST requests.

I would like to first test them locally, on "localhost",
then if everything's OK to deploy them onto a remote
server and then test remotely, in the interest of
eventually publishing that web service to my customers.

Using "VS Express 2012 for Web", and also the equivalent
edition "VS Express 2012 for Desktop", I've been able
to make an "ASP.NET MVC 4 Web Application" with
a "Web API" template, and also a client console application
to send POST requests with, for QA purposes.

The "Web Service" project has been partially created in accordance
with a Youtube video of "REST API in ASP.NET MVC", by Michael Crosby,
available at "http://www.youtube.com/watch?v=agImzri6X64", where
he presents a pretty good way on how to do both consuming AND returning
of JSON, however at some points he refers the viewers to some external library
which unfortunately didn't compile.

The "Web Service" project itself seemed to have tested OK locally,
both for GET and POST requests, however when tested remotely
on a cloud-based server, the POST request returned a 404 error.

The "POST request maker" console application has been borrowed "as is"
from MSDN, at "msdn.microsoft.com/en-us/library/debx8sh9(v=vs.110).aspx",
and seemed to have tested OK on both "localhost" for GET and POST requests
but NOT so well remotely.

My questions are :

1) What would be the absolutely minimum set of steps required to make
a C# web service allowing both GET and POST of JSON strings ?

2) What files would I have to deploy on a remote server (IIS 10 I think)
preferably without the ".cs" source files, in order to make
that web service available online ?
- What I've previously attempted was a simple ZIP and UnZip of all
of the project files into "C:\inetpub\wwwroot", and it did return
the "View" for the template's homepage correctly.

3) Are there any extra configurations to be made on either
the web service project's files or the server's IIS panel ?

Any advice would be greatly appreciated
Thanks in advance
Me, a puzzled developer...
QuestionDislaying 3D model in C# winform Pin
Member 1301708227-May-17 0:11
Member 1301708227-May-17 0:11 
AnswerRe: Dislaying 3D model in C# winform Pin
Dave Kreskowiak27-May-17 4:45
mveDave Kreskowiak27-May-17 4:45 
AnswerRe: Dislaying 3D model in C# winform Pin
lmoelleb28-May-17 2:21
lmoelleb28-May-17 2:21 
GeneralRe: Dislaying 3D model in C# winform Pin
Member 1301708228-May-17 21:45
Member 1301708228-May-17 21:45 
QuestionHow to retrieve image from multiple folder from SharePoint Pin
Hamizah AHMAD TALHAH24-May-17 16:08
Hamizah AHMAD TALHAH24-May-17 16:08 
QuestionRe: How to retrieve image from multiple folder from SharePoint Pin
Richard MacCutchan24-May-17 23:24
mveRichard MacCutchan24-May-17 23:24 
AnswerRe: How to retrieve image from multiple folder from SharePoint Pin
Gerry Schmitz25-May-17 5:26
mveGerry Schmitz25-May-17 5:26 
QuestionDisplay a Message for Failure or Success C# Pin
Member 1321855223-May-17 9:55
Member 1321855223-May-17 9:55 
AnswerRe: Display a Message for Failure or Success C# Pin
Pete O'Hanlon23-May-17 21:04
mvePete O'Hanlon23-May-17 21:04 
GeneralRe: Display a Message for Failure or Success C# Pin
Member 1321855223-May-17 23:19
Member 1321855223-May-17 23:19 
GeneralRe: Display a Message for Failure or Success C# Pin
OriginalGriff23-May-17 23:27
mveOriginalGriff23-May-17 23:27 
GeneralRe: Display a Message for Failure or Success C# Pin
MadMyche25-May-17 15:57
professionalMadMyche25-May-17 15:57 
GeneralRe: Display a Message for Failure or Success C# Pin
Pete O'Hanlon25-May-17 20:59
mvePete O'Hanlon25-May-17 20:59 
GeneralRe: Display a Message for Failure or Success C# Pin
MadMyche26-May-17 2:31
professionalMadMyche26-May-17 2:31 
GeneralRe: Display a Message for Failure or Success C# Pin
Pete O'Hanlon26-May-17 2:34
mvePete O'Hanlon26-May-17 2:34 
AnswerRe: Display a Message for Failure or Success C# Pin
Richard MacCutchan23-May-17 21:16
mveRichard MacCutchan23-May-17 21:16 
Questionc# data table filter Pin
Member 1298110422-May-17 19:51
Member 1298110422-May-17 19:51 

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.