My website has a couple of web methods that use an ajax call to call a C# method. Everything works fine while working with IIS, but when I publish it to my server, the methods return the whole html code as the returndata. I'm sure it is something simple but I can't figure it out. Any thoughts?
need more info.
are you using an mvc apicontroller?
have you registered the route in your webapiconfig?
is something overriding the accept: 'application/json' http content (some IIS filters may return html or xml otherwise)
what html is being returned (any view stuff?)
Sorry forgot to update. The host only supported MVC3. Switched to Azure and never looked back.
You should be able to bin deploy ASP.NET MVC, but Azure Websites is a great choice as well.
Yea the pay as you go seems really nice.
Sorry, you need to Log In to post a reply to this thread.