.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

System.Windows.Media.Composition.DUCE.Channel.SyncFlush() error when we open our application in IE 8

Posted By:      Posted Date: October 12, 2010    Points: 0   Category :WPF

Experts, please advice.

I have a WPF application developed using Visual Studio 2008 + DotNET 3.5 + Windows XP - SP 3.We have wrapped Our WPF application in Active X and hosting in IE 6 and it is works fine ,recently we migrated to IE 8 .Actually we are launching our app inside a parent application which is Browser based application(developed in java).

When we launch our app in IE 8 and switching between different modules along with our app in parent application our application is crashing.Pls find below stack trace for the problem.


Exception from HRESULT: 0x88980406
Exception Stack Trace: 

  at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
   at System.Windows.Media.MediaContext.CompleteRender()
   at System.Windows.Interop.HwndTarget.OnResize()
   at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

View Complete Post

More Related Resource Links

Open a windows application form names in another

Hi, Now i am in a horrible situation. I want to create an application for open another application(exe) and display all the form names in newly opened application in a compobox.If we selected a compobox item,ie;a form name in new application opened,i want to display all the control names in that form... is it possible? we can do it in same application.but how can i do it in another application? thanks in advance   Anoop

'System OutOfMemory Exception' while using rdlc in Windows application

hi Everyone , I am Using Reporting Service (.rdlc) in my Windows application , i am getting Error System OutOfMemory Exception Like "an error occured during local report processing An Unexpected error occured in Report Processing Exception of type 'System OutOfMemory Exception'Was Thrown " what to do Please anyone help me ... Advance Thanks Anilmarnal

Unable to open physical file - Operating system error 5: 5(error not found) Microsoft SQL Server: Er

I am trying to attach a database to SQL 2005. This database has not previously been attached. I have only just installed SQL.   I get the following message: Unable to open physical file "C:\ArrowSQL\Arr@Data\Arrow_data.mdf" Operating system error 5: "5(error not found)" (Microsoft SQL Server: Error 5120)".   I have loaded SQL and the database fiel and directory with the same user acccount which is a local adminstrator ont hsi machine. I have checked that I have read/write access to the file.   The machine runs Windows Vista Business. SQL has SP 2 loaded.   What causes this?

Error trying to open WPF Xaml windows from Visual Studio 2010 in Blend 4

Hi I have Visual Studio 2010 ultimate, and expression Blend 4. I have created a WPF 4 project in Visual Studio and when i try to open the MainWindow.xaml file in Expression Blend 4 - i get an error stating that the file or folder is not a valid blend project. Is there something i need to install for visual studio to make blend able to edit WPF Xaml files in Blend 4? I can open blend4 and create WPF applications with no problem - its just trying to open a mainwindow.xaml created in Visual Studio 2010 in blend 4 when i get the error. I am running windows 7 32 bit. Cheers Rod. Mono / DotNet Rocks!

Converting System.Windows.Media to System.Drawing objects

Hello, I want to know if it's possible to convert the System.Windows.Media objects Color and Imaging.BitmapSource to the System.Drawing objects Color and Bitmap and the other way around. If yes, how can I do this?

FCB::Open: Operating system error 32(The process cannot access the file because it is being used by

Hello all,I am running into an interesting scenario on my desktop.  I'm running developer edition on Windows XP Professional (9.00.3042.00 SP2 Developer Edition).  OS is autopatched via corporate policy and I saw some patches go in last week.  This machine is also a hand-me-down so I don't have a clean install of the databases on the machine but I am local admin.So, starting last week after a forced remote reboot (also a policy) I noticed a few of the databases didn't start back up.  I chalked it up to the hard shutdown and went along my merry way.  Friday however I know I shut my machine down nicely and this morning when I booted up, I was in the same state I was last Wenesday.  7 of the 18 databases on my machine came up withFCB:pen: Operating system error 32(The process cannot access the file because it is being used by another process.) occurred while creating or opening file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\Test.mdf'. Diagnose and correct the operating system error, and retry the operation.and it also logs  FCB:pen failed: Could not open file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\Test.mdf for file number 1. OS error: 32(The process cannot access the file because it is being used by another process.).I've caught references to the auto close feature being a possible culprit, no dice as the databases in question are set to Fal

Cannot open backup device 'F:\foldername'. Operating system error 5(Access is denied.).

SQL 2005 Enterprise Even if I logon as Administrator and try to backup any of my databases to local partitions, I get this error below. I have been operating fine up until this point and doing backups all the time.  As far as I know, and after checking, no permissions have changed and of course Administrator has ntfs permissions to my local C and other partitions on this server: TITLE: Microsoft SQL Server Management Studio------------------------------ Backup failed for Server 'servername'.  (Microsoft.SqlServer.Smo) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Backup+Server&LinkId=20476 ------------------------------ADDITIONAL INFORMATION: System.Data.SqlClient.SqlError: Cannot open backup device 'F:\foldername'. Operating system error 5(Access is denied.). (Microsoft.SqlServer.Smo) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&LinkId=20476 ------------------------------BUTTONS: OK------------------------------ In the Event log for Windows Server 2003 I see this:   Event Type: ErrorEvent Source: DCOMEvent Category: NoneEvent ID: 10016Date:  3/6/2006Time:  3:35:06 PMUser:  NT AUTHORITY\

general error login failed for user '' on windows 2008 in application that runs correctly on windo



we have a web application that one company prepared for us. this application read connection string from registery key in hkey_local_machine and connect to sql server 2005 database.

It worked correctly in windows server 2003. we changed our Server'OS to windows server 2008. but we have a problem to login. after try to login we see this error :

Login failed for user ''. The user is not associated with a trusted SQL Server connection.

Server Error in '/dabir' Application.

Login failed for user ''. The user is not associated with a trusted SQL Server connection.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user ''. The user is not associated with a trusted SQL Server connection.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be

System.Windows.Shapes.Ellipse to 'System.Windows.Media.Geometry'



is there a way to use  System.Windows.Shapes.Ellipse or other shapes where  'System.Windows.Media.Geometry' is required?

System.Media - SoundPlayer PlayLooping() - Error When Another Timer Is Running


Recently I had a problem using SoundPlayer PlayLooping method.

Below is my problem and the solution I have found.

Hope this will help anybody with similar issues.

The issue is that as this is essentially a timer, if anther timer is operating at the same time the other timer will somehow interfere and the sound player will loose its file and playback computer noise.  A way around this seems to be to construct a manual timer for looping back the sound.

timer_LoopRinging.Enabled = true;

private void timer_LoopRinging_Tick(object sender, EventArgs e)


      SoundPlayer player = new

Trying to open a sharepoint library in Windows Explorer via IE 8 results in the error "your client d


I am attempting to connect to a Microsoft Sharepoint library, via the "Actions -> Open in Windows Explorer" option from the Sharepoint page.  When I do so, I get the error message "your client does not support opening this list with windows explorer".  In short, I am trying to get the "drag and drop" functionality of a Sharepoint library.

I am running Windows 7 64-bit and IE8.  The target Sharepoint environment is a MOSS 2007 EE.  My Windows "WebClient" service is running, and I have no problem connecting to this exact library via a Windows XP computer running IE8.

Maximum size of a WriteableBitmap (System.Windows.Media.Imaging.WritableBitmap)

I'm trying to find out the size limits on the WPF WritableBitmap class (ie. System.Windows.Media.Imaging.WritableBitmap, not the Silverlight class with the same name).
In the help for the BitmapSource base class it says:
"The maximum height and width of an image is 2^16 pixels at 32 bits per channel * 4 channels. The maximum size of a BitmapSource is 2^32 bytes (64 gigabytes) and the maximum image size is four gigapixels."
1. By my calculation, 2^32 bytes is 4 Gigabytes, not 64 Gigabytes. So is the size limit 2^32 (4 Gigabytes) or 64 Gigabytes (2^36)? 
2. Are the limits different on 32 and 64 bit versions of the OS?
3. Do these size limits also apply to the derived WriteableBitmap class, or are there further constraints based on available / addressable system memory and/or video (texture) memory?
Thanks in adva

System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already



I have a problem with ItemTemplates:

< ItemsControl ItemsSource = " {Binding ViewList} " >
< ItemsControl .ItemTemplate >
< DataTemplate >
< GroupBox >
< ContentControl Content = " {Binding} " />
</ GroupBox >
</ DataTemplate >

"Windows SharePoint Services Web Application" service is showing 'Error starting'.


I just installed MOSS SP2 and ran the config wizard on the server.
I am facing issue with our farm. Found that "Windows SharePoint Services Web Application" is in a problem.

I tried below commands:-
stsadm -o provisionservice -action stop -servicetype spwebservice -servicename ""
stsadm -o provisionservice -action start -servicetype spwebservice -servicename ""
But getting error:- Provision of service failed. Additional information: 1387.

Checked eventvwr and found below error log:-
Event Type: Error
Event Source: Windows SharePoint Services 3
Event Category: Topology
Event ID: 7034
Date:  10/21/2010
Time:  5:16:10 AM
User:  N/A
Computer: <Servername>
An attempt to start/stop instance  of service Windows SharePoint Services Web Application on server <servername> did not succeed. Re-run the action via UI or command line on the specified server.

None of the sites are working and I cannot see anything in the IIS folder nor in the IIS manager. All application folders are missing. But, I can see all the sites & Content databasesin the Central Admin.

Can someone please help?


System.Windows.Media.FontFamily crash (.NET 3.5 SP1) (System.ExecutionEngineException)


Hi folks,

Just had a long afternoon debugging a potential bug in WPF (.NET 3.5 SP1 rev. 3.5.30729.4926).

It seems System.Windows.Media.FontFamily.get_FirstFontFamily() doesn't like so much when fonts are missing on your device. Our device is a Windows Embedded Standard 7 with only the Western Fonts package. When I copied all the fonts we have to Windows 7 Ultimate into the device's Fonts directory, the issue was solved. 

It started with a System.Windows.UIElement.Measure() call which crashed into a System.ExecutionEngineException. 

After some debugging (call stack is below), I realized System.Windows.Media.FontFamily.get_FirstFontFamily crashed the whole CLR because in my opinion it was not finding any of the fallback fonts (Truetype ?).

I guess this would require a fix sometime :-).



Call Stack

0:011> !CLRStack

OS Thread Id: 0x5d4 (11)

ESP       EIP     

0705cf9c 75db194b [HelperMethodFrame_1OBJ: 0705cf9c] System.Environment.FailFast(System.String)

0705cff8 6c2b68b9 MS.Internal.Invariant.FailFast(System.String, System.String)


Migrate Sharepoint 2007 DB to 64-bit Windows Application Error


Hi All,

I am in the process of migrating my companies MOSS environment to 64bit.

I am following the directions on the technet article here: http://technet.microsoft.com/en-us/library/dd622865(office.12).aspx

Phase 1 of the plan is to migrate the databases to their new server first.

I have followed the given instructions, and all databases are on the new server (and deleted off the old) but something in Sharepoint is still pointing to the old SQL server. On the application servers, I am getting the following windows event every few seconds:

Cannot connect to SQL Server. SOMSQL01\MOSSTEST not found. Additional error information from SQL Server is included below.

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

Central Admin also says that the SQL server is the old one. I know that it is actually using the new server because the old server has been switched off and all the sites are still functioning correctly.

Central Admin also shows that the main database server is still the old one, but has the new one listed under Operations - Servers in Farm.

Trying to remove the old server using the 'Remove Server' link under Operations - Servers in Farm simply reloa

Error: The type 'System.Windows.DependencyObject' is defined in an assembly that is not referenced



I have an ObservableCollection which I would like to sort.

<TLstNodeData> SWNodeList = TopNode.SubNodes.OrderBy(SNode => SNode.NodeDispText).ToList();

In a WindowsForm application targeting the .NET 4.0 Framework it compiles and works as expected.

If I do this in a WCF Service in my web project also targeting the .NET 4.0 Framework I get the following error.

Error 1 The type 'System.Windows.DependencyObject' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows, Version=, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

When I add this

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend