Can a Post method take parameters from the Query String?

YES is the answer (if you are in hurry to leave the site); and adding a keyword [FromUri] before model param in action method is the trick to do it.

How It Works:

If you have a model Foo:

public class Foo
public string Bar { get; set; }
public int Baz { get; set; }

And you want to bind this from the query string, then you must address the individual properties:


And annotate that the model must be bound from the query string:

public void Bar([FromUri]Foo foo)
  //your intelligent code goes here..


And if you want to send JSON into your action method and not a model, simply bind to a string instead of a model. In action method you can deserialize this string to a json model or key-value pair and then can do whatever you want with the JSON string inside your action method.


TED Like Sites



(1.) With TED’s mission being to share ideas worth spreading, independently run TEDx events help share ideas in communities around the world. From universities, to major cities, TEDx talks cover a wide variety of share-worthy topics. (TEDx YouTube Channel)

(2.) The World Economic Forum is exactly what the title suggests. With articles and videos pertaining to the current state of the world economy and ideas to improve economic design on a global scale, this site is a great source for staying in touch with the latest ideas from thought leaders from around the world. (WEF Blog)

(3.) 99U is all about making ideas happen. This site is a collection of articles, videos, and podcasts dedicated to inspiring, motivating, and enhancing your entrepreneurial pursuits. (99U)

(4.) Similar to TED, but with a larger focus on science and technology, Solve For X addresses large global problems in what they call “Moonshots”. These Moonshots are radical new solutions/perspectives/approaches through breakthroughs in science and technology. (Solve For X)

(5.) Where TED Talks and the above sites have a more professional tone to them, Soul Pancake’s content is more relaxed. The site offers art, culture, science,philosophy, spirituality and humor designed to open your mind, challenge your friends, and feel damn good. (Soul Pancake)


Some More (I like this one so much)

Could not load file or assembly Microsoft. Web. Infrastructure

If you work on Web Applications and using Asp.Net to power it you may find this error on run time, application might compile perfectly but generates the runtime error stating:

Could not load file or assembly ‘Microsoft.Web.Infrastructure, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified.


Error Microsoft.Web.Infrastructure, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35


It appears that Microsoft.Web.Infrastructure.dll is not being installed in the GAC, even if .net (4.0 or 4.5 or other) are installed successfully on Windows Server. On localhost (typically Windows client), it seems like it is being in the GAC when the tools/platform (Visual Studio etc.) are installed.


Possible Fix 1

Run the following command in the Package Manager Console. (If you are using Visual Studio, this can be reached via menu options “Tools –> Library Package Manager –> Package Manager Console:)

PM> Install-Package Microsoft.Web.Infrastructure

You will see the following messages if it is successfully installed.

Successfully installed ‘Microsoft.Web.Infrastructure’.
Successfully added ‘Microsoft.Web.Infrastructure’ to Web.

If you see this message you are good to go. Shoop. But in case it does not work try the next one.


Possible Fix 2 (Less Technical)

When you do above fix package manager can produce this(non welcoming) message for you:

the package was already installed and assigned to my project.

This is the case when you already have this Microsoft.Web.Infrastructure.dll added in your solution. Go to Window’s explorer and try to search the file by name. Most probably you will find it, copy the path and add it as a reference in project.

Rebuild and Run the project.

Let me know in comments if this does not work or some other solution works for you.

When a Man Asked Buddha “Why I am So Poor?”

The poor man asking Buddha Why I am so poor? And Budhha’s vision changing reply on that.

Shubha Aarambha With Carton Boxes