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)

June 18, 2012

Stop Visual Studio after build when error occurs


Errors:
- Visual Studio and Stop running after build when error occurs
- How to stop run application after 'build and run' with error(s)
- Oops, My visual studio continues and run the last successful build, is it...


Solutions:
Go to Microsoft Visual Studio (2005, 2008 or 2010) > Tools > Options... > Projects and Solutions > Build and Run > and then
1- On Run, when projects are out of date > Prompt to build is default setting
2- On Run, when build or deployment errors occur > Prompt to launch is default setting

June 02, 2012

Unable to update the EntitySet


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


Solution:
You have forgotten to set the PrimeryKey for this Table in DBMS like SQL Server