Thursday, August 8, 2013

Full stack web development

Future?
8
http://act2.me/full-stack-web-development/

How to solve Entity framework problem: System.InvalidOperationException: Mapping and metadata information could not be found for EntityType entity framework Unable to load the specified metadata resource?


Once you use self-tracking entities, if want to add new one. Please keep using same type.

In one assembly, entity framework only allow one kind mapping. If more than one mapping type, will get above weird error message.

How to install or uninstall Windows Service from CMD command line?

In command line, go to .Net Framework folder:
C:\Windows\Microsoft.NET\Framework\v4.0.30319

Run following line:
installutil C:\folder name\ServiceHost.exe

Uninstall:
installutil /u C:\folder name\ServiceHost.exe


If want to install service with different display name:
sc create "Your Service Name" binpath= "fullpath of your exe file"