asp.net mvc 4 - Why is this returning System.Threading.Tasks.Task`1[System.Web.Mvc.ActionResult] -


not sure why not returning view after task completed , can find on google why.

public async task<actionresult> getuserasync()     {          var value = task.factory.startnew(() => _userservice.getuser("ausername"));          await task.whenall(value);          return view("getuser");     } 

was project upgraded prior version? check libraries you're referencing not referencing old version of mvc dependency. fix exact issue i...

removed following web.config:

  <dependentassembly>     <assemblyidentity name="system.web.mvc" publickeytoken="31bf3856ad364e35" />     <bindingredirect oldversion="0.0.0.0-4.0.0.0" newversion="4.0.0.0" />   </dependentassembly> 

ensured targetframework .net 4.5

<compilation debug="true" targetframework="4.5"> 

and removed reference library fluent filters legacy solution global filters.

with changes able return task controller.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -