KMPlayer Access is denied

Problem: - KMPlayer Error: System Error. Code:5. - KMPlayer Error: Access is denied - The KMPlayer have problem with windows 8 ... - When Windows 8 goes to sleep my kmplayer have problem to access ... Solution: You need to have an administrator previllage for your current user on windows 8 ... then follow my steps and continue - Press Windows Key + Q - Type command - Right Click on Command Prompt Tile - Select Run as administrator from bottom ribbon - type this command in the black screen and press enter net user administrator /active:yes

Posted by on 1 April 2013 | 3:06 am

Windows 8 snapping not working

Problems: - My windows 8 can't split screen to two parts ... - Windows 8 can automatic split to two parts (20% - 80%) - Windows 8 Snap on desktop not working - I'm trying Windows 8 and I want to test the new snap feature where you can have two metro apps side-by-side but ... - How to Force Enable Snap Feature Solutions: 1- Change you windows resolution to 1344 and upper (like 1360x768 or 1366x768) 2- Create a DWORD key AlwaysEnableLSSnapping with 1 in under location with RegEdit HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ ImmersiveShell \ AppPositioner

Posted by on 26 March 2013 | 12:20 pm

Adobe Photoshop CS6 blink/glitch

Errors:  - Why Photoshop CS6 turn on/off ... - Why Photoshop CS6 blink on windows 8 ... - I can't work with Photoshop CS6 on Windows 8 ... has glitch link old TV ... Solution: - Edit > Preferences > Performances > Advanced Settings ... > Change to Basic - Restart the Photoshop It's done but this is not a solution and it's help to avoid of problem :-( References: [1] http://forums.adobe.com/message/4940042

Posted by on 5 March 2013 | 2:36 am

Data binding ... not supported

Exception:  Message: Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery) is not supported. Instead populate a DbSet with data, for example by calling Load on the DbSet, and then bind to local data. For WPF bind to DbSet.Local. For WinForms bind to DbSet.Local.ToBindingList(). Source: EntityFramework Cause: - If you want to use of Visual Studio 2012 instead of 2010 - If your project used of .Net Framework 4.0 and below - If you upgrade Entity Framework from EF4.0 to EF4.1 or EF5.0 (CTP 5.0) - If you Upgrade ADO .NET Entity Data Model and generate it again ;-) - If your Model used of DbSet/DbSet<T> Instead of ObjectSet *** Ok, you in trouble like me ;-) Problem Case: This case is good in VS2010 with EF4.0 with Old Model which used of ObjectSet XYZEntities xyz = new XYZEntities(); this.gridControl1.ItemsSource = xyz.Table1; Solution Case: - Upgrade your project to .Net 4.5 - Use of Local Property ;-) XYZEntities xyz = new XYZEntities(); xyz.Table.ToList(); this.gridControl1.ItemsSource = xyz.Table1.Local; References: - http://stackoverflow.com/questions/8263405/how-to-convert-a-dbset-to-an-observablecollection-in-wpf - http://msdn.microsoft.com/en-us/data/jj574514.aspx - http://stackoverflow.com/questions/4843391/entity-framework-code-first-dbset-local-not-updating-in-ui

Posted by on 5 February 2013 | 4:10 am

IIS 7.0 ERROR on ASP Classic

ERROR:  An error occurred on the server when processing the URL. Please contact the system administrator. SOLUTION: Run this command on your server ;-) %windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true

Posted by on 10 December 2012 | 6:09 am

Fusion Active Template Library (ATL)

ERROR: Rule "Fusion Active Template Library (ATL)" failed. A computer restart is required because of broken fusion ATL. You must restart your computer before you continue. SOLUTION: Go to setup media (SQL DVD) and install this package and it'll be solved after a restart ;-) 32bit: DVD\1033_ENU_LP\x86\Setup\sqlsupport_msi\sqlsupport.msi 64bit: DVD\1033_ENU_LP\x64\Setup\sqlsupport_msi\sqlsupport.msi

Posted by on 10 November 2012 | 1:24 am

SQL Server cannot process this media family

ERROR: Specified Cast is not valid (SqlManagerUI) ERROR: Msg 3241, Level 16, State 13, Line 1 The media family on device 'D:\1.bak' is incorrectly formed. SQL Server cannot process this media family. Msg 3013, Level 16, State 1, Line 1 RESTORE DATABASE is terminating abnormally. CAUSE: - Microsoft SQL Database fails to restore from higher ms-sql version - Restoring the backup from SQL 2008 to SQL 2005 instance - Restoring SQL backup file from SQL 2012 to SQL 2008 SOLUTION: - Upgrade your destination sql server to upper version - Prepare SQL data script instead of sql data backup file

Posted by on 9 November 2012 | 1:12 am

Load an assembly from a network location

Error: Exception Message: Could not load file or assembly 'file:///Z:\PROJECT\bin\Debug\XYZ.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) Exception Message: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information. System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information. Solution: It will be solved if you add a simple magic ;-) line to YOURPROJECT.exe.config file  - Open YOURPROJECT.exe.config file from bin folder - Add <loadFromRemoteSources enabled="true" /> to <runtime> tag

Posted by on 29 October 2012 | 4:56 am

CREATE FILE encountered operating system error 5

Problem: - CREATE FILE encountered operating system error 5(Access is denied.) - CREATE FILE encountered operating system error 5(failed to retrieve text for this error. Reason: 15105) while attempting to open or create the physical file 'PATH\FILE.mdf'. - CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'PATH\FILE.mdf'. Solution: - Go to Control Panel > Administrative Tools > Services - Right click on SQL SERVER (BLAH BLAH) and select the Properties - Stop service - Go to Log On tab and change the Log on as: to Local System Account - Apply and Start service again ans enjoy ;-)

Posted by on 18 October 2012 | 3:18 am

Operation could destabilize the runtime

Problem: - Devexpres has problem ... operation could destabilize the runtime - have operation could destabilize the runtime with DXWindow ... devexpress - devexpress problem with Visual Studio 2012 Solution: There's just one solution, Upgrade to Devexpress v2012.1.6 and next versions ;-)

Posted by on 16 October 2012 | 3:13 am

Mismatch between the processor architecture

Warning There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "PATH\PROJECT.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. Solution 1- In Visual Studio menu go to Build > Configuration Manager... 2- go to Platform column and select all x86 (it must be changed to Any CPU) 3- Click on <New...> and Select Any CPU 4- That's it, Compile All and Be Happy ;-)

Posted by on 9 October 2012 | 2:45 pm

The underlying connection was closed

Problem: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. Solution: Just add this line in your codes ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate{return true;});

Posted by on 5 October 2012 | 9:08 am

CREATE DATABASE failed

Error: Message:  CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file "C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\XYZ.mdf". Line Number: 2 Source: .Net SqlClient Data Provider Procedure:  Error: Message: CREATE DATABASE failed. Some file names listed could not be created. Check related errors. Line Number: 2 Source: .Net SqlClient Data Provider Procedure: Solution: - Start application with Run as Administrator  - Change the SQL Server service

Posted by on 24 September 2012 | 10:38 am

Stop Compiler Warning Message

Problem: - How can i stop warning ? - The variable 'XYZ' is assigned but its value is never used - but no compiler message for never used - prevent compiler warning Solution: Just use of these lines before and after source code #pragma warning disable [SOURCE CODE] #pragma warning restore

Posted by on 9 September 2012 | 5:04 pm

DevExpress ChartControl Printing

Problem: - How to print DevExpress ChartControl ... - How to printing ChartControl - Print of DXChart .... - How to print of DevExpress WPF ChartControl - How to print DevExpress ChartControl via SimpleLink (DXPrinting) ... - Print Preview a WPF Chart and Show Its - WPF Chart Control - Print of DevExpress DXCharts for WPF Solution: Yes, it's simple. just call below method with chart control ;-) private void PrintChartControl(ChartControl chartControl, bool withPreview = true) { /// Prepare Template var templateImage = new FrameworkElementFactory(typeof(ImageEdit)); templateImage.SetBinding(ImageEdit.SourceProperty, new Binding("Content")); DataTemplate templateData = new DataTemplate() { VisualTree = templateImage }; /// Prepare Simple Link SimpleLink simpleLink = new DevExpress.Xpf.Printing.SimpleLink(); simpleLink.DetailCount = 1; simpleLink.DetailTemplate = templateData; simpleLink.CreateDetail += new EventHandler<CreateAreaEventArgs>((sl_s, sl_e) => { DrawingVisual vDrawing = new DrawingVisual(); DrawingContext context = vDrawing.RenderOpen(); context.DrawRectangle(new VisualBrush(chartControl), null, new Rect(0, 0, chartControl.ActualWidth, chartControl.ActualHeight)); context.Close(); RenderTargetBitmap bmp = new RenderTargetBitmap((int)chartControl.ActualWidth, (int)chartControl.ActualHeight, 96, 96, PixelFormats.Pbgra32); bmp.Render(vDrawing); sl_e.Data = bmp; }); simpleLink.Landscape = true; simpleLink.CreateDocument(true); if (withPreview == true) { simpleLink.ShowPrintPreviewDialog(this); } else { simpleLink.Print(); } }

Posted by on 20 August 2012 | 7:19 am

The tag does not exist in XML namespace

Error: The tag 'XXX' does not exist in XML namespace 'clr-namespace:YYY;assembly=YYY'. Line zz Position zz. Solution: I know, it's really weird, but the solution is simple. Just change FROM: xmlns:ZZZ="clr-namespace:YYY;assembly=YYY" TO: xmlns:ZZZ="clr-namespace:YYY;assembly=" leave empty value for assembly=

Posted by on 11 August 2012 | 11:26 am

Lunch Condition

Problems:  - Install .Net Framework in Setup Project ... - Adding Dot Net Framework to the Setup Project in ... - Install .NET Framework with Visual Studio .NET ... - Create setup project that includes .Net Framework 3.5 ... - How to attach .Net framework 4.0 client profile to my setup project? - Setup project wants to install .NET 4 - How to include .NET framework redistributable in Visual Studio setup .... - Setup project: where .net framework 4.0 is - Add Prerequisites of .NET Framework in Visual Studio Setup Project ... - .Net 2.0 or 3.5 Setup Project Requires .Net Framework version 4.0 Solutions: Windows Installer 3.1 (With Local Prerequisite) Name: Windows Installer 3.1 Condition: VersionMsi >= "3.1" InstallUrl: WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe Message: Windows Installer 3.1 is required to run this setup Windows Installer 3.1 Name: Windows Installer 3.1 Condition: VersionMsi >= "3.1" InstallUrl: go.microsoft.com/fwlink/?LinkId=42467 Message: Windows Installer 3.1 is required to run this setup Windows Installer 4.5 (With Local Prerequisite) Name: Windows Installer 4.5 Condition: VersionMsi >= "4.05" InstallUrl: WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe Message: Windows Installer 4.5 is required to run this setup Windows Installer 4.5 Name: Windows Installer 4.5 Condition: VersionMsi >= "4.05" InstallUrl: http://go.microsoft.com/fwlink/?LinkId=120486 Message: Windows Installer 4.5 is required to run this setup .NET Framework (With Local Prerequisite) Name: .NET Framework InstallUrl: DotNetFX40Client\dotNetFx40_Client_x86_x64.exe Version: .NET Framework 4 Client Profile Message: [VSDNETMSG] PS: '.NET Framework' condition is a automatic added condition after add a .Net Project to Setup Project

Posted by on 10 August 2012 | 4:33 am

Unable to update the EntitySet

Error: Unable to update the EntitySet 'XYZ' because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation. Solution: Just add Primary Key for your Table in Database or DataModel (edmx file).

Posted by on 8 August 2012 | 2:09 am

Change Entity Framework ConnectionString‎

Problem:  - Dynamically change Entity Framework Connection String‎ - How to change the connection string in the EntityFramework ... - How should I edit an Entity Framework connection string ... - change db name in connection string at runtime in Entity Framework - Cannot change the connectionstring with Entity Framework 4.1 code ... - Entity Framework - how can I change connection string to be relative? - Entity Framework Connection String Trouble - Stack Overflow Solution: Just add System.Configuration.dll to Refrences of your Project and then use of this code ConfigurationManager.ConnectionStrings[0].ConnectionString = blah blah blah ConfigurationManager.ConnectionStrings["XYZEntities"].ConnectionString = blah blah blah Error in Solution: Error:  The configuration is read only. Correction:  var Configuration = ConfigurationManager.ConnectionStrings["amaBoxOfficeEntities"]; typeof(ConfigurationElement).GetField("_bReadOnly", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(Configuration, false); Configuration.ConnectionString = blah blah blah

Posted by on 7 August 2012 | 8:16 am

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

Posted by on 7 August 2012 | 8:10 am

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"

Posted by on 7 July 2012 | 4:25 am

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;

Posted by on 25 June 2012 | 6:26 am

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)

Posted by on 20 June 2012 | 5:48 am

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

Posted by on 18 June 2012 | 4:58 am

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

Posted by on 2 June 2012 | 3:04 am

Acai Berry Select

Harvested by Brazilians for hundreds of years as a food staple and for their rejuvenating and detoxifying properties, Acai berries (fruit of Amazonian Acai Palms) have been all over the media, from articles in fitness magazines to features on popular television programs like Today show. Click here for your Risk Free Trial