.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.ComponentModel.Win32Exception: The operation completed successfully

Posted By:      Posted Date: September 13, 2010    Points: 0   Category :.NET Framework
Hi,      I'm calling a .Net 1.1 Infragistics calender windows control (32 bit) from a html page (old code) in Windows 2008 Server R2 (with WOW64) . This control was working on all operating systems including Windows 7 and when loaded in Windows 2008 Server R2 it throws up the exception given below. I'm able to load the control sometimes, say 5% successful (only the first time when I load the application) and the remaining 95% it throws up the exception dialog box (sometimes it happens when I load the application for the first time too). Not sure whether this is the right forum, if it's not please direct me to the right forum. -------------------------------------------------------------------------------------------------------------------- See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.ComponentModel.Win32Exception: The operation completed successfully    at System.Drawing.BufferedGraphicsContext.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits)    at System.Drawing.BufferedGraphicsContext.CreateBuffer(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height)    at System.Drawing.BufferedGraphicsContext.AllocBuffer(Graphics targetGraphics, IntPtr target

View Complete Post

More Related Resource Links

Win32Exception: The operation completed successfully

I'm getting this strange error sporadically in my program, usually while debugging. It doesn't appear to be occurring inside my code; has anyone experienced this before, or know what could be causing it?

   at MS.Win32.UnsafeNativeMethods.SetActiveWindow(HandleRef hWnd)
   at System.Windows.SplashScreen.Close(TimeSpan fadeoutDuration)
   at System.Windows.SplashScreen.<Show>b__0(Object splashObj)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext

System.InvalidOperationException: Instance operation is not valid on workflow runtime thread

Am getting the exception related in the title of this article when using the StateMachineWorkflowInstance object to arbitarily set state in my workflow code; and am unsure why.  The code follows below:   500     Protected Overrides Function Execute(ByVal executionContext As System.Workflow.ComponentModel.ActivityExecutionContext) As System.Workflow.ComponentModel.ActivityExecutionStatus   501    502    506         Dim smwi As StateMachineWorkflowInstance = New StateMachineWorkflowInstance(StaticWFRuntime.LocalRuntime, Me.WorkflowInstanceId)   511    512         'set workflow-wide database connection string   513         _connectionString = ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString   518    519         Utility.LogEnabled()   520    521         Utility.FoaeaLogger.WriteEntry("Processing TracingApplication.Execute()....", EventLogEntryType.Information)   522         If StaticWFRuntime.LocalRuntime Is Nothing OrElse StaticWFRuntime.LocalRuntime.IsStarted = False Then   523             Utility.FoaeaLogger.WriteEntry("No static RuntimeService object exists!", EventLogEntryType.Warning)   524         End If   525    526         Return MyBase.Execute(executionContext)   527    528     End Function   796     Private Sub gotoState2_ExecuteCode(ByVal sender As System.Object, ByVal e As System.EventArgs)   797    798        

System.ComponentModel.DescriptionAttribute not showing up in REST service

I am trying to set the description for a REST WCF service, but it doesn't seem to be working. Code is: [AspNetCompatibilityRequirements(RequirementsMode=AspNetCompatibilityRequirementsMode.Allowed)]     [ServiceBehavior(InstanceContextMode=InstanceContextMode.PerCall)]     [WebDispatchFormatterConfiguration("application/xml")]     [WebDispatchFormatterMimeType(typeof(WcfRestContrib.ServiceModel.Dispatcher.Formatters.PoxDataContract), "application/xml", "text/xml")]     [WebDispatchFormatterMimeType(typeof(WcfRestContrib.ServiceModel.Dispatcher.Formatters.DataContractJson), "application/json")]     [WebDispatchFormatterMimeType(typeof(WcfRestContrib.ServiceModel.Dispatcher.Formatters.FormUrlEncoded), "application/x-www-form-urlencoded")]     public class PublicAppointmentSchedulerSvc : IPublicAppointmentScheduler     {         IPublicAppointmentScheduler impl = new PublicAppointmentScheduler();         [WebDispatchFormatter]         [Description("Immediate or callback contact request")]         [WebInvoke(UriTemplate = "InitiateContact", Method = Verbs.Post)]  &n

processing measure group : memory error : the operation cannot be completed because the memory quota

Hi, I'm stucked with this problem. Untill last week, the cube processed without any problem. Since last week, I'm getting this error. I have been searching in different forums, and I tried some suggestions, like changing memory limit properties, ... It is getting worse.. So I reset all properties to default again. I am running SQL-Server + MS-AS 2005 SP2 on server with 4GB of memory. This is a dedicated server, nothing else is running on it. The fact table has +/- 14 million records, several dimensions en 2 measure groups. I don't have problems to process the dimensions, but when I try to process the cube or the measure groups of that cube separately , the error persists. I have changed the datasource view, and replaced the fact table by a Named query. Even when I put a 'WHERE datapart( year , fact_date ) >= 2009 ' clause to reduce the number of records to +/- 5 million, I'm still getting the error. I don't understand what is wrong, the cube always processed since +/- 2 years. As I said, I have found a lot of this kind of Issues on different websites, I have been trying to change some properties. But this still does not solve the problem. Could it be that MS-AS settings are corrupt somewhere ? Is it a good idea to re-install MS-AS 2005 + SP1 + SP2 ? Or is there another reason possible ? I really appreciate any kind of help, because I'm

Memory error: The operation cannot be completed because the memory quota estimate when trying to dep

Hi All: We have installed SQL Server 2008 Integration Services in a Windows 2003 machine. RAM capacity is 4GB We have a created a sample project with necessary data source, data view, cubes and dimension definition. When we try to build the cube, it is throwing the below exception Memory error: The operation cannot be completed because the memory quota estimate (1504MB) exceeds the available system memory (1331MB). We even tried with data view of few columns but encountering the same error. How to fix this issue? Please help Regards, Swami

'Completed' is not an event of 'System.Activities.WorkflowApplication'

Hello,I have a C# code which i have converted into VB.But i am getting compile error in VB code:'Completed' is not an event of 'System.Activities.WorkflowApplication'find below C# and VB code:C#:application.Completed += delegate(WorkflowApplicationCompletedEventArgs e){completedEvent.Set();};VB : AddHandler PickSample.application.Completed, Sub(e As WorkflowApplicationCompletedEventArgs) completedEvent.Set()Can some one provide me solution ?

The operation 'xxxxx' could not be completed because the sessionful channel timed out waiting to r




I am getting following error while invoking a callback method.


"The operation 'NotifyPackageDownloadProgress' could not be completed because the sessionful channel timed out waiting to receive a message.  To increase the timeout, either set the receiveTimeout property on the binding in your configuration file, or set the ReceiveTimeout property on the Binding directly."


Can anybody help me how to resolve this issue.


Thanks & Regards,




[System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)]
    public bool AddProduct(int Id, Guid UserId, string Priimek)
        // Create a new ProductRow instance
        Northwind.tbl_zaposleniDataTable products = new Northwind.tbl_zaposleniDataTable();
        Northwind.tbl_zaposleniRow product = products.Newtbl_zaposleniRow();

        product.ID = Id;

        if (Priimek == null) product.SetPriimekNull(); else product.Priimek = Priimek.Value;
        // Add the new product
        int rowsAffected = Adapter.Update(products);

        // Return true if precisely one row was inserted, otherwise false
        return rowsAffected == 1;


Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0117: 'string' does not contain a definition for 'Value'

Source Error:

Line 92: 
Line 93: 
Line 94:         i

Using Reflection to get System.ComponentModel.DisplayName or Description

I have a class and on the properties I have assigned the attributes System.ComponentModel.DisplayName and System.ComponentModel.Description.  Using reflection I can't seem to retrieve these attribute values.  How can I do this?

The Operation could not Completed. Not enough storage is available to complete this operation

Good Day All

i am producing an XML from a Query and on result pane i clicked the XML results and it showed my XML nicely, now i wanted to save it in my local machine as an XML file, i clicked the save's and chooses the location and when i click on save it gave me this error

 The Operation could not Completed. Not enough storage is available to complete this operation

My XML 50 Megs

Vuyiswa Maseko

System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary Error

I have a WCF service that is using the SharePoint object model to query a list.  (I need my recurrence events.)

I have a Silverlight application referencing that service to display it using a datagrid.

Without referencing the sharepoint object model, everything works fine (test data).  Once I start using the SPsite, SPweb, I receive:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Timestamp: Mon, 21 Sep 2009 01:29:39 UTC
Message: Unhandled Error in Silverlight Application An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.   at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
   at CalendarSVCApplication.TestDataRef.GetTestDataCompletedEventArgs.get_Result()
   at CalendarSVCApplication.MainPage.AnonymousMethod1(Object s, GetTestDataCompletedEventArgs args)
   at CalendarSVCApplication.MainPage._Lambda$__1(Object s, GetTestDataCompletedEventArgs args)
   at CalendarSVCApplication.TestDataRef.TestData1Client.OnGetTestDataCompleted(Object state)
Line: 1
Char: 1
Code: 0
URI: http:/

System.ComponentModel.PropertyChangedEventHandler not handling the event



I'm working in a wpf app that is binding controls to a class that implements INotifyPropertyChanged. I'm trying to track when there are changes to the underlying object by setting a flag whenever a property is changed. To do so, I wired up an event handler to the PropertyChanged event of the class like so:

_facilityLogic.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(facilityLogic_PropertyChanged);


public void facilityLogic_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
Can anyone tell me why this event handler never gets called? The event is firing, but SetIsChanged() never gets called.

Exception Details: System.Net.WebException: The operation has timed out


Hi, I have a web page that uses System.Net.HttpWebRequest class that used to work perfectly fine for 2 years, and then all of a sudden I started to get the following error.

[WebException: The operation has timed out]
System.Net.HttpWebRequest.GetResponse() +5314029

Also, I tried the application on my local machine and it works fine, do you think it is a setting change on my hosting server?
I already tried the response.close and it didn't work.

System.ServiceModel.FaultException: Operation is not currently available on the service.


We have a sequential activity with multiple receive activities. When we call Receive Activity from WCF getting the following error

System.ServiceModel.FaultException: Operation is not currently available on the service.

WCF is hosted in IIS with domain account

WF is hosted in Self host running in the same domain account in which WCF is hosted.

Any idea why this error is coming? But when we run everything in VS 2008 (hosted in develpment server) ,everything is working fine






The service 'System.Workflow.ComponentModel.Design.IMemberCreationService' must be installed for t

I am getting this error

One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.

The service 'System.Workflow.ComponentModel.Design.IMemberCreationService' must be installed for this operation to succeed. Ensure that this service is available.


at System.Workflow.ComponentModel.Design.NamePropertyDescriptor.SetValue(Object component, Object value)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager m

The service 'System.Workflow.ComponentModel.Design.IIdentifierCreationService' must be installed f



I am trying to workthrough "Microsoft Workflow Foundation Tutorials".


I am creating workflow in VS 2008 by adding simple class with .vb extension and getting this error in designer view.

"The service 'System.Workflow.ComponentModel.Design.IIdentifierCreationService' must be installed for this operation to succeed. Ensure that this service is available."


Please guide what to do?

Should System.ComponentModel.Container() be used in a Custom Control


I have developed a simple custom control which is effectively a custom button with a timer, derived from Control. I am unsure of using "components = new System.ComponentModel.Container()". Since the control uses a timer, should it be added to the components container? i.e. components.Add(timer); ? If so, how is it disposed, components.Dispose() is only called if Dispose(true) is called, which i dont? Or should i have a destructor ~MyComponent() which calls timer.Dispose().

In short, when do you use a "components = new Container()" and "components.Add()" in a custom control.

Also, if my control uses Graphics, Brush & Pen objects, should Dispose() be called on them and if so where. In the deconstructor? Or do you leave it up to the garbage collector?


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