วันพฤหัสบดีที่ 26 มิถุนายน พ.ศ. 2557

Responsive web design

http://getbootstrap.com - this is default in MVC 5 in Visual Studio.Net
http://foundation.zurb.com - zurb has good job on this work for now this is version 5
http://www.getskeleton.com - never use this.
http://lessframework.com - never use this.

A circular reference was detected while serializing an object of type 'System.Data.Entity.DynamicProxies.xxx'

This happened when i need to use auto complete to get Object list by Entity.
Yep i support i use Lazy loading so
before call and return code must config for not Lazy loading like


db.Configuration.ProxyCreationEnabled = false;

วันพฤหัสบดีที่ 19 มิถุนายน พ.ศ. 2557

Cannot implicitly convert type 'System.Threading.Tasks.Task' to 'xxx.ApplicationUser'

This happened when I use Microsoft.AspNet.Identity in m WebForm Application with fucntion FindSync
this not will be problem if use this function with await in public async Task<ActionResult>

but for Web Form in "protected void" it will show error like this.

simply to convert task to object is enough then from
ApplicationUser appuser = await manager.FindAsync(uxLogin.UserName, uxLogin.Password);
I use
ApplicationUser appuser = manager.FindAsync(uxLogin.UserName, uxLogin.Password).Result;
to solve this problem

Hope this help.