August 07, 2012

Install Window Without DVD or USB


Problem:
How to install Window 7 without DVD
How to install Window from network

Solution:
1- Download and Run TFTPBoot.exe
link: http://blog.ryantadams.com/wp-content/uploads/tftpboot.exe
link: http://www.megaupload.com/?d=V04T7KQ8
2- Change all settings (follow these screen shots)


3- Turn-on destination computer and press F12
4- after Windows Started ... type this command (on destination computer)
net use Y: \\10.0.0.102\E [PRESS ENTER]
PS: IP and Path are related your source computer
PS: After this prompt you need to enter username and password like COMPUERNAME\Administrator and password
5- Go to share folder and start windows setup ... (with these commands)
Y: [PRESS ENTER]
SETUP [PRESS ENTER]

References:
link: http://blog.ryantadams.com/2008/02/01/how-to-boot-from-the-network-pxe-boot-with-tftp-and-windows-pe
link: http://blog.dustinriley.net/2009/03/17/installing-windows-7-on-hp-mini-1000-through-network
link: http://www.expertcore.org/viewtopic.php?f=15&t=2560

July 07, 2012

Cannot set XYZ attribute value


Error:
Cannot set Name attribute value 'gridColumn01' on element 'GridColumn'. 'GridColumn' is under the scope of element 'AmaEntityGridView', which already had a name registered when it was defined in another scope.



Solution:
Change Name or other field to x:Name or other prefix like below

Example 1:
WRONG: <x:A Name="xyz"
SOLUTION: <x:A x:Name="xyz"

Example 2:
WRONG: <dxg:GridColumn Name="xyz"
SOLUTION: <dxg:GridColumn dxg:GridColumn.Name="xyz"

June 25, 2012

Only TrueType fonts are supported


Error:
Only TrueType fonts are supported. This is not a TrueType font.
ArgumentException was unhandled by user code


Solution:
Add these lines before FontDialog ShowDialog
fontDialog.AllowSimulations = false;
fontDialog.AllowScriptChange = false;

June 20, 2012

Unable to update the EntitySet Error


Error:
Unable to update the EntitySet 'XYZ' because it has a DefiningQuery and no <DeleteFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.


Solution:
Don't forget the PrimaryKey for your Table.
:-D, Yes, It's simple, just set the Primary Key in Database (and update your EF)