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

Top 5 Contributors of the Month
Post New Web Links

SqlWorkflowInstanceStore fails when you have multiple cores

Posted By:      Posted Date: September 11, 2010    Points: 0   Category :Windows Application
Hello!I have a quite simple program, it basically creates workflows and resume one bookmark in each. When I'm not using an SqlWorkflowInstanceStore, the program works fine no matter if my operating system uses 1, 2 or 4 cores. If I use SqlWorkflowInstanceStore the program seems to work correct if my operating system uses only one core. If I use 2 or 4 cores the program always fails after a number of iterations. It looks like the larger the number of cores the sooner the program fails.The above mentioned result happens deterministically. The only things which differ is how many concrete iterations it takes until the multi-core attempts will fail.To me this looks like a typical situation where mutual dependencies in true parallelism have not been programmed correctly, perhaps in situations where quasi-parallelism do not bring the problem.Will this be fixed in .Net Framework 4.0 RC and above?Best regards,Henrik DahlDocumentation, as I've switched on tracking in the app.config file: System.Runtime Error: 57396 : 57396Throwing an exception. Source System.Runtime.QQQQ.exeSystem.InvalidOperationException, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089An incorrect implementation of the IAsyncResult interface may be returning incorrect values from the CompletedSynchronously property or calling the AsyncCallback more than once. The type System.Data.Com

View Complete Post

More Related Resource Links

Multiple Workflows hosted in IIS / WCF using WorkflowService causes SqlWorkflowInstanceStore polling


Not really sure how to ask this, but I will describe what I have and what I want.

1) I will have 10+ WCF wrapped Workflows created as Workflow Service xamlx files.  These are all in the same project.

2) I have configured the services to use the SqlWorkflowInstanceStore in the Web.Config

3) Everything seems to be running and i can execute the workflows.


Each WorkflowService polls the database for runnable instances. These means I have 10 "Workflow Runtimes (WorkflowService)" polling the database for runnable instances and/or locks.

On top of this, I will be hosting these in a Web Farm of ~ 5 servers.  This means there will be 50 WorkflowService instances polling my database.


Is there a way to configure the SqlWorkflowInstanceStore to only run once under each App Domain/Application?
It seems the SqlWorkflowInstanceStore only instantiates runnable instances of the given workflow thats polling.  I want a "global" SqlWorkflowInstanceStore that polls for all runnabled instances regardless of the workflow that created it.

NOTE:  I am aware of Appfabric, but we are not ready to deploy it. I wanted to get this working first. 


ewa refresh succeeds, but fails with multiple concurrent requests


we have about 30 excel web access web parts spread across 6 pages.  they all connect to ssas using windows authentication, and they all work fine.

we have a user that wants to set his browser to open the 6 pages on 6 tabs as his "home" tab arrangement.  so when he launches his browser, all 6 pages open simultaneously.  all of the ewa web parts give the error:

"An error has occurred trying to perform the requested action. Please try again."

when i check the logs, i don't see any exceptions.  i just see the messages below. i have set the "maximum concurrent queries per session" for the trusted file location to 1000.  i've tried changing various other settings in the excel services config.  i have no idea what else to try based on this information:



10/03/2010 19:19:30.98 	w3wp.exe (0x0AB0)            	0x1160	Excel Services Application  	Excel Calculation Services  	6v6o	Assert 	(0): location: (0) condition:  StackTrace: at Microsoft.Office.Server.Native.dll: (sig=35b73ac2-5d4b-41d9-b101-286fc6f53dd5|2|microsoft.office.server.native.pdb, offset=203FD) at Microsoft.Office.Server.Native.dll: (offset=20959) at xlsrv.dll: (sig=ae42e7c5-84bd-429e-bec2-0fdd9dad3ee7|2|xlsrv.pdb, offset=4C58E8) at xlsrv.dll: (offset=33

Upload Multiple Documents to Asset Library fails for files >100 MB


The upload of large files > 100 MB fails with the "Upload Multiple Documents / Drag & Drop"-Feature, where it is no problem to upload the failed files as single file via Upload Document - "Browse..." with filesize up to 2GB.

Any workaround or configuration tricks known?

(Windows Server 2008 R2, SQL Server 2008 R2, SharePoint Server 2010)


Multiple database support with Entity Framework

One of the features introduced in Entity Framework is being database independent. Which mean each database provider can support Entity Framework by implementing its provider.

This feature allows you build applications independent from the underplaying database provider. In this post I'm going to show how to build an application that support multiple databases using same conceptual model made by Entity Framework.

Binding the multiple drop down boxes in GridView using JQuery in ASP.NET

Here is the code for binding the multiple drop down boxes in GridView using JQuery in ASP.NET

Upload Multiple File using JQuery in asp.net

In this article I have explained how to upload multiple files using file upload control. I have used jQuery plugin for uploading multiple files.

I have also explained how to check for file type, file maximum size limit using jQuery & also using server side validation code.

Adding Multiple Columns and Rows in GridView without using a Database

This article describes on how to add multiple columns and rows in GridView without using a database. Basically the GridView will be populated with data based on the values entered in each TextBoxes on Button Click and retain the GridView data on post back.

GridView Multiple Filter AJAX Control

This AJAX control enables the user to filter data within any column inside a GridView. The user can add multiple filters and can delete existing ones too.

Multiple Column Dropdownlist for the ASP.NET DataGrid

Based on my previous control "Multiple Column DropDownList for ASP.NET", I received many emails asking for the same control to be used in the DataGrid for web applications. Here we go.. This control can be used as the regular MS DropDownList in the DataGrid and also as a regular dropdownlist. It has all the properties, like DataTextField, DataValueField, DataSource, SelectedIndex etc. The download file contains the samples both in VB.NET and C#. In this sample, I have used the Northwind database of SQL Server.

ASP.NET Multiple Selection DropDownList with AJAX HoverMenuExtender

Recently, I was looking for a multiple selection dropdownlist control for my new project. After spending some time researching for it, I decided to put together all my finding in one web user control. This web user control consists of an ASP.NET AJAX HoverMenuExtender, JavaScript, StyleSheet and CheckBoxListExCtrl . The final product will work with or without a MasterPage and you can drag and drop more than one instances of the control on to the page.

jquery autocomplete multiple values


i got some samples and i did autocomplete using jquery , its working well for single input values

but i need to pass multiples values after one by one in the textbox. Is it possible to pass multiple

values in the textbox for autocomplete in jquery in asp.net?


Gmail style multiple Sign-in type combo...is it possible in asp.net?


I am developing a multi-company application and want my users to give the functionality like the following to switch companies.


Is this possible? then how?

Please help


Multiple Instances of User Control


I have a user control that I place on a page severl times.  When I make a selection on a ddl in one one control the SelectedIndexChanged event fires for all the control on the page for that ddl.  So I get duplication of an insert that I do.  Is there a way to make sure these events are isolated so this doesn't happen.


>>>How to update multiple rows of gidview by one click



I want to add multiple rows of a gridview if the data for multiple fields are same.

Idea for this is that a user may search a record with some parameter e.g. Sector, plot.

For example 15 records being displayed in gridview.

There should be checkbox before every row and if user wants to update Plot and Flat No that is same for 10 rows out of 15 so he will check the rows and update.

For this a dialog box should appear asking for the parameter i.e. Plot and Flat or something else next time may be it will be City or country. Moreover, there is already an Edit button to update records, when user click it another page open for the record to be updated and whatever he wants to update, it updates.

Hope everone understand the scenario.

I don't want to disturb the already provided Edit functionality and want to provide same record to be updated.

Any idea in this regard would be appreciated.

Multiple membership providers



In my web.config I have:

        <add name="ADProvider1"
        <add name="ADProvider2"

If I just have ADProvider1 it works, when I add ADProvider2, even though for testing I only use ADProvider1 I get an error: "Unable to establish secure connection with the server"

Am I adding the second provider to the membership section incorrectly?



Error: Encountered multiple versions of the same assembly with GUID...try pre-importing...TlbImp


Hi!  Can someone tell me how I can troubleshoot the following error: "Encountered multiple versions of the same assembly with GUID...try pre-importing one of these assemblies".

The website developed in VS 2010 (.Net 3.5). This error is only received on my workstation.  Another person developing the site does not experience this issue at all.  Also, not sure if this matters, but on my workstation the 'Assembly Information...' dialog contains no values even though the 'AssemblyInfo.vb' file does specify values for the title, desc, etc.  The GUID being referenced in the error is the main project of the three projects within the solution.

I tried looking through the GAC, but do not see any references to the projects or DLLs in the VS solution and am not sure what else/where to look.

If I delete the copy of the solution on my local machine and pull down a copy from source control (AnkhSVN) the solution will build with no error.  Once I make any changes, such as adding a new aspx file, then the error is received.

I can provide any additional information needed.

one or multiple dbmls


I have two database connections that connect to two separate SQL severs.  The connection strings are stored in a separate ConnectionStrings.config file  I have the following in my Web.config


<connectionStrings configSource="ConnectionStrings.config" />


I use LINQ to SQL and a DBML file is created.  I finished dragging and dropping tables from the first db.  When switched to the second connection and try to drag and drop tables to the surface, I got a warning "The objects you are adding to the designer use a different data conneciton than the designer is currently using.  Do you want to replace the conneciton used by the designer?".  Should I add a second DML and drag and drop the tables from the second db so I don't get problems with multiple connections?  If say Person is a class in the first DBML and PersonPrivacyContent is on the second DMBL.  How could I associate these two classes?  If only one DBML is needed, how do I switch between two connections and execute LINQ queries in each db?  Thank you.

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