Click here to Skip to main content
15,885,985 members
Home / Discussions / Web Development
   

Web Development

 
QuestionDesign question with asp.net core and asp.net core api Pin
instantmaker13-Nov-20 6:18
instantmaker13-Nov-20 6:18 
QuestionI keep getting a “Call to undefined function..” error displaying Pin
IAmSirAskAlot9-Nov-20 18:25
IAmSirAskAlot9-Nov-20 18:25 
QuestionWeb API Deserialization Problem Pin
Kevin Marois9-Nov-20 8:04
professionalKevin Marois9-Nov-20 8:04 
AnswerRe: Web API Deserialization Problem Pin
Richard Deeming9-Nov-20 22:20
mveRichard Deeming9-Nov-20 22:20 
GeneralRe: Web API Deserialization Problem Pin
Kevin Marois10-Nov-20 7:18
professionalKevin Marois10-Nov-20 7:18 
GeneralRe: Web API Deserialization Problem Pin
Richard Deeming10-Nov-20 21:41
mveRichard Deeming10-Nov-20 21:41 
GeneralRe: Web API Deserialization Problem Pin
Kevin Marois11-Nov-20 7:16
professionalKevin Marois11-Nov-20 7:16 
GeneralRe: Web API Deserialization Problem Pin
Kevin Marois11-Nov-20 7:54
professionalKevin Marois11-Nov-20 7:54 
From what I can tell, this appears to be a server-side problem. If I type the URL into a browser, I get back the same format I posted earler. It's clearly not JSON.

Here's my WebAPIConfig:
public static class WebApiConfig
{
    public static void Register(HttpConfiguration config)
    {
        config.MapHttpAttributeRoutes();

        config.Routes.MapHttpRoute(
            name: "DefaultApi",
            routeTemplate: "api/{controller}/{id}",
            defaults: new { id = RouteParameter.Optional }
        );

        config.Formatters.Remove(config.Formatters.XmlFormatter);
        config.Formatters.JsonFormatter.SupportedMediaTypes.Add(new MediaTypeHeaderValue("application/json"));
    }
}
Other than this, I'm not reallt sure what else to look for. I'm open to ideas.

Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

GeneralRe: Web API Deserialization Problem Pin
Richard Deeming11-Nov-20 22:42
mveRichard Deeming11-Nov-20 22:42 
GeneralRe: Web API Deserialization Problem Pin
Kevin Marois12-Nov-20 6:49
professionalKevin Marois12-Nov-20 6:49 
Question[Solved] Firefox storage get undefined Pin
Valentinor2-Nov-20 21:56
Valentinor2-Nov-20 21:56 
AnswerRe: Firefox storage get undefined Pin
Valentinor4-Nov-20 3:02
Valentinor4-Nov-20 3:02 
QuestionCallback JS help Pin
Member 149761991-Nov-20 19:35
Member 149761991-Nov-20 19:35 
AnswerRe: Callback JS help Pin
Richard Deeming1-Nov-20 22:20
mveRichard Deeming1-Nov-20 22:20 
QuestionCSS flex help_ circle transform into oval Pin
Member 1497619929-Oct-20 23:30
Member 1497619929-Oct-20 23:30 
QuestionCSS background(url) not working Pin
Member 1497619926-Oct-20 21:40
Member 1497619926-Oct-20 21:40 
AnswerRe: CSS background(url) not working Pin
Richard Deeming26-Oct-20 22:26
mveRichard Deeming26-Oct-20 22:26 
GeneralRe: CSS background(url) not working Pin
Member 1497619926-Oct-20 22:30
Member 1497619926-Oct-20 22:30 
QuestionChanging documentroot in Apache http.conf file causes PHP to stop working Pin
MontanaMan9-Oct-20 16:58
MontanaMan9-Oct-20 16:58 
AnswerRe: Changing documentroot in Apache http.conf file causes PHP to stop working Pin
Graham Breach9-Oct-20 22:14
Graham Breach9-Oct-20 22:14 
GeneralRe: Changing documentroot in Apache http.conf file causes PHP to stop working Pin
MontanaMan10-Oct-20 3:18
MontanaMan10-Oct-20 3:18 
Questionadding colors css file? Pin
auting826-Oct-20 5:24
auting826-Oct-20 5:24 
AnswerRe: adding colors css file? Pin
Richard MacCutchan9-Oct-20 21:59
mveRichard MacCutchan9-Oct-20 21:59 
AnswerRe: adding colors css file? Pin
W Balboos, GHB10-Nov-20 4:34
W Balboos, GHB10-Nov-20 4:34 
QuestionASP.net Web API Errors Pin
Kevin Marois29-Sep-20 10:53
professionalKevin Marois29-Sep-20 10:53 

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.