November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Try to reinstall MVC 4, make sure you are not using get instead of post. Make sure IIS can handle all http verbs: http://geekswithblogs.net/michelotti/archive/2011/05/28/resolve-404-in-iis-express-for-put-and-delete-verbs.aspx
It could also be a namespace issue.
You may also need to check in web.config if you have this:
<modules runallmanagedmodulesforallrequests="true">
Thank you very much for your replies! I really appreciate it!
This has been resolved. I solved it using my first solution in providing json data.
I first tried to use Allan Thræns solution:
http://labs.episerver.com/en/Blogs/Allan/Dates/2010/6/Codemania-Partner-Summit-2010/
but it was not possible to access the data with ajax on the receiving solution.
I was told that I should use web api to solve this, but my sample jsondata was not possible to access either.
Finally we found the solution to this problem that was this:
http://encosia.com/using-cors-to-access-asp-net-services-across-domains/
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
After putting this in web.config, the data was accessable from ajax on the receiving application.
Hello fellow developers!
I'm creating my first Episerver solution using web api to expose data as json code.
Thus far I've used:
http://www.asp.net/web-api/overview/creating-web-apis/using-web-api-with-aspnet-web-forms
and
http://www.frederikvig.com/2012/02/using-the-asp-net-web-api-framework-with-episerver/
to enable web api in my episerver solution. I was not able to make it work in my orginal solution
so I moved everything into a brand new episerver solution and there it worked (in a way).
I've added the following code to Application_Start in Application_Start in Global.asax.cs: