problem about archived-forums-w-forums-Collection of common programming errors
msdn
archived-forums-w-forums windows-workflow-foundation-3
I’m building a base workflow engine for a couple workflows. I know a persistence service , for instance, can raise ServiceExceptionNotHandled, and I can catch it listening in the engine. My question is, if this happens, what happens with the workflow instance that triggered the operation that raised the Exception? If the ServicesExceptionNotHandled condition was something temporal, can I just suspend the workflow and resume ? Or the instance is in a useless state, and I should just cancel it a
msdn
archived-forums-w-forums windows-workflow-foundation-3
Hello -We have a program hosted by the Console that consists of two workflows. The first waits in a while loop for text files to appear in a folder; when one does, this workflow uses InvokeWorkFlow to kick off the second workflow which will write the file name into another file.The problem is that when the second workflow is finished, the first workflow gets terminated.Why is that? I’ve understood from the documentation that this should not happen.Thanks,Mike
msdn
archived-forums-w-forums windows-workflow-foundation-3
I have my state machine workflow designed. It has multiple states. I have fault handlers in the sequences I know may fail. But beyond that, I would like to implement a mechanism to suspend my workflow when any unexpected exception occurs, because if I don’t do that it will terminate and that is not an option. First I was looking for something like a general fault handler at the State Machine level for catching every unhandled error. Now I know that is not possible. The solution I found was addin
msdn
archived-forums-w-forums windows-workflow-foundation-3
Hi,A strange think append and I would like to know if somebody can explain that :I setup workflow persistence via constructor like this : SqlWorkflowPersistenceService persistence = new SqlWorkflowPersistenceService(“bla bla bla “,true, new TimeSpan (0,3,0), new TimeSpan (0,1,0)); runtime.AddService(persistence);When I running workflow and it become idle, the workflow is persist and unloaded but OwnerID and OwnerUntil (in SQL Server) are not null and set for 3 min
msdn
archived-forums-w-forums windows-workflow-foundation-3
I have two questions.1) can you have more than one type provider for a runtime?System.Workflow.ComponentModel.Compiler.TypeProvider typeProvider = new System.Workflow.ComponentModel.Compiler.TypeProvider(workflowRuntime);typeProvider.AddAssembly(typeof(BDW.Workflow.BasePipeline).Assembly);workflowRuntime.AddService(typeProvider);2) if I add a property to the type referenced for a type provider (lets says BasePipeline in the previous example). What will happen to a workflow that is reconstituted
msdn
archived-forums-w-forums windows-workflow-foundation-3
I’m always getting the following error at the CreateWorkflow statement, workflowRuntime.CreateWorkflow An unhandled exception of type ‘System.UnauthorizedAccessException’ occurred in mscorlib.dllAdditional information: Access to the registry key ‘Global’ is denied.when I run any workflow. I have,> Vista Build 5472> Vista SDK July> Orcas June CTP> Visual Studio 2005 Extensions for Windows Workflow Foundation RC4(EN)Is there any rights issue involved? However, I’m working as administr
msdn
archived-forums-w-forums windows-workflow-foundation-3
I have just moved an ASP.Net workflow on to my shared hosting environment to try it out, but it seems that the WorkflowRuntime on start up is trying to access a registry key that it is not authorised too. Since it is a shared hoosting envronment (maximumasp.com) it is not an option to change access rights. See below, is there any way of disabling this behaviour:Access to the registry key ‘Global’ is denied. Description: An unhandled exception occurred during the execution of the current web requ
msdn
msdn
archived-forums-w-forums windows-workflow-foundation-3
Hi,I have a workflow that has a parallel activity with each of it’s child sequences either listening for an external event or acting on a delay activity. If the delay fires off, the child activities use a while activity to go back into a listening state until an external event comes in. The problem is that when all of the parallel activity’s child activites complete and the workflow reaches it’s end, I get the following NullReferenceException and stack trace:System.Transactions Critical: 0 : &
msdn
archived-forums-w-forums windows-workflow-foundation-3
I have been trying to get the July version of the Expense Reporting Example working and I keep receiving an error stating:System.ServiceModel.EndpointNotFoundException was unhandled Message=”Could not connect to http://localhost:8081/WFSamples/ExpenseService. TCP error code 10061: No connection could be made because the target machine actively refused it. ” I have run the database scripts that were included in the June release and I have the June CTP of the .NET Framework 3.0 installed with the
msdn
archived-forums-w-forums windows-workflow-foundation-3
It seems the persistence data is deleted if a workflow runs into a runtime error and terminates. Why is that? I still need the persistence data so that I can try to work with the workflow instance at another time. Because the data is deleted, I get the following error message.Workflow with id “19b7e359-008d-4c2d-acce-35cb309316d4” not found in state persistence store.
msdn
archived-forums-w-forums windows-live-controls-development
Hi,All of the LiveID controls and forms login controls work, but as soon as I try to associate the two IDs I get this:Server Error in ‘/’ Application.Object reference not set to an instance of an object. 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.NullReferenceException: Object reference not set to an instance of an ob
msdn
archived-forums-w-forums windows-workflow-foundation-3
I have an activity that calls static method defined in the form: MyForm.MyStaticMethod(…)Inside that method an instance of MyForm is created (without being shown) and then it performs various actions.The form is complex and has a lot of UI controls, but I wanted to get needed functionality as quick as possible so I choose this not very elegant way.Now, In the InitializeComponents method of MyForm I’m getting the following exceptions:System.InvalidOperationException was unhandled by user code
msdn
archived-forums-w-forums windows-workflow-foundation-3
Without any changes pushed out? We have this Windows Service that’s hosting our Workflows. Yesterday at 4pm we processed a bunch of Workflows which worked fine and the tracking service tracked them. Today at 8am we had a bunch of workflows run again and they worked fine as well but there’s absolutely nothing in the tracking database for them. There has been no changes to the host service or to the workflows. Basically we changed nothing but the SQLTracking service has stopped working. Any ideas
msdn
archived-forums-w-forums windows-workflow-foundation-3
when TransactionScopeActivity completed , i reach to persist point .now how can i prevent it ?I mean when transactionScopeCompleted , then the computer crash . I want to run my application again and start from start point .thanks hema
msdn
archived-forums-w-forums windows-workflow-foundation-3
hi alli have downloaded an windows workflow example from the net. The name of the project is “HelpDeskWorkflow”.When I execute the project I get the error: “An unhandled exception of type ‘System.Data.SqlClient.SqlException’ occurred in System.Workflow.Runtime.dllAdditional information: Could not find stored procedure ‘RetrieveNonblockingInstanceStateIds’.”I mentioned by Shawn I have executed the “CreateDatabaseObjects.cmd” executatble. The “TrackingStore”
msdn
archived-forums-w-forums windows-workflow-foundation-3
I’m implementing error handling in my workflow app and I’m looking into catching unhandled exceptions in the WorkflowRuntime.WorkflowTerminated event. But the WorkflowTerminatedEventArgs doesn’t provide a lot of context information and I would like to at least retrieve some info about which activity that threw the exception initially. I’ve noticed that the WorkflowInstance contained in the WorkflowTerminatedEventArgs has an unaccessible field _deadWorkflow (WorkflowExecutor) that has a lot of t
msdn
archived-forums-w-forums windows-workflow-foundation-3
Hi,We’re running an environment with multiple runtimes and we’ve seen some strange behavior around the servicing of delay timers – specifically, unhandled WorkflowOwnershipExceptions thrown from the persistence layer. It seemed odd to me that the workflow engine would (automatically, on its own) attempt to load a workflow that was already owned by another runtime.In this scenario, it looks like the competing runtimes both call the RetrieveExpiredTimerIds stored procedure, then both attempt to
msdn
archived-forums-w-forums windows-workflow-foundation-3
I have installed the sample on WWF titled “ASPNETWFPageFlow” and when I run the application, I bump into the following error –> System.InvalidOperationException was unhandled by user code”The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.”This occurs in the following file in the code sample.WorkflowHost class in the module.cs fileCan anyone help me figure out why this error occurs?
msdn
archived-forums-w-forums windows-workflow-foundation-3
There doesn’t seem to be a lot of information available on the use of the CancellationHandlerActivity. I can see how the FaultHandlersActivity is used when an unhandled exception is thrown and I’m assuming the CancellationHandlerActivity is similar. But it’s not clear when the CancellationHandlerActivity is actually executed. Can someone please give a short explanation or point me to one that’s already there?Thanks much.Bruce BukovicsAuthor of .NET 2.0 Interoperability Recipeshttp://www.apres
msdn
archived-forums-w-forums windows-workflow-foundation-3
When an unhandled exception occurs a workflow is terminated automatically. But for some types of exceptions I want to abort the flow instead of terminating it. How can I accomplish this? It seems to me that a terminated flow is persisted before the terminated event is triggered, so I can’t do it that way
msdn
archived-forums-w-forums windows-cardspace-39infocard39
I play around with VB.Net and do a lot of web development on my PC. My questions are…What is infocard.exe?Why do I have to have it?Can I just remove the damned thing?I have read that other applications may interfere with infocard (not that I care), but these apps have worked just great for a long time. Only recently has infocard started puking all over my desktop. When will Microsoft fix the infocard compatability issues?
msdn
archived-forums-w-forums building-windows-store-apps-with-c-or-vb-windows-81-preview-and-rtm
Hi, I have the following codeWindows.Storage.StorageFile xsltFile = await storageFolder.GetFileAsync(“DocX2Html_IE.xslt”);// Read XSLT Windows.Data.Xml.Dom.XmlDocument xslDoc = await Windows.Data.Xml.Dom.XmlDocument.LoadFromFileAsync(xsltFile);getting the below exception at LoadFromFileAsync().DocX2Html_IE.xslt can be downloaded from net.Please Help to resolve this.Ashok
msdn
archived-forums-w-forums windows-live-search-development
This is very weird. (Hopefully I’ve put this feedback actually onto the right forum)Requirements to reproduce this bug:Windows XP Professional.Visual Studio 2005 (not the bèta, with Service Pack 1 installed!) (VC8 SP1)Internet Explorer 7.0 (Of course). Home page is: http://www.live.comAll latest updates have been installed.Error message:Just in Time debugger of VC8 SP1 complains with an unhandled win32 exception (3956).How to reproduce:If I open Internet explorer the first time, ther
msdn
archived-forums-w-forums windows-workflow-foundation-3
I Icreate a state machine workflow and hosted it in winform or wcf.It worked well but i load it from sql database the error come:System.Workflow.Activities.EventDeliveryFailedException was unhandled Message=”Event “Confirm” on interface type “WorkflowInterface.IOrder” for instance id “f8e05185-3a4b-48c8-8c37-3b4ebd03b7aa” cannot be delivered.” ………..InnerException: System.Workflow.Runtime.QueueExceptionMessage=”Queue ‘Message PropertiesInterfa
msdn
archived-forums-w-forums windows-workflow-foundation-3
I have a Workflow project when I run (F5) it throws the following error: << An unhandled exception of type ‘System.InvalidOperationException’ occurred in System.dllAdditional information: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly. >>And points to the 28th line of the Program.cs file . Here is the code:WorkflowInstance instance = workflowRuntime.CreateWorkflow(typeof WorkFlowPrj1.Workflow1));I have no idea why this Error occurs.
msdn
archived-forums-w-forums building-windows-store-apps-with-c-or-vb-windows-81-preview-and-rtm
Setting: Windows Store App 8.1Scope:BackgroundTaskIssue: Running a background task in debugger results in unhandled InvalidCastException. It literally hits the App’s Unhandled Exceptions handler. I have no context of what cast attempt was being performed.Reference the following snippet:public sealed class GetLatestGroupAlertTask : IBackgroundTask{public async void Run(IBackgroundTaskInstance taskInstance){// …}}
msdn
archived-forums-w-forums windows-live-search-development
regarding message “Unhandled win32 exception (3956) starting a new instance of Internet explorer 7.0″I experience the same problems after installing Explorer 7Starting Explorer 7 with two tabs as homepage gives in 50% of the case the win32 exception 2228Also other programs give rise to exceptions i never seen before.Like closing microsoft word (by clicking on the cross) gives exception 3544
msdn
archived-forums-w-forums building-windows-store-apps-with-c-or-vb-windows-81-preview-and-rtm
While migrating a app to 8.1 I get the following Exception when starting my app in snapped mode.Im loading a observablecollection of items, bound to a grouped CollectionView that is bound to a Listbox using a GroupStyle.When I remove the grouping from the collectionview, it works. When I set the source to the collectionview after the items have been loaded, it works also.When Im starting and in Unsapped mode and the same collection and loading code is bound to a grouped gridview,it wor
Originally posted 2013-11-27 11:54:18.