.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

Clearing WF instances?

Posted By:      Posted Date: August 29, 2010    Points: 0   Category :Windows Application
Hi, I have been creating lot of WF instances, and now im running of memory after running the program for 15 min or so. Is there any way to clean up the resources in Workflow Application Completed method?

View Complete Post

More Related Resource Links

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.


Textbox not clearing on data add


Hi, I am new to ASP.Net development, trying to develo pa simple access based library system.

I am using panel to place a few textboxes and buttons on it, on page load, i open db conenction and bound textboxes to recordsets to show data (and navigate using first and previous buttons)

On add button I call a function to clear textboxes, so user can input data, then when i try to write the data back in DB it shows me textbox still showing old record from record set, means "textbox.text="" didn't work.

Any help or idea?


How to run multiple instances of workflow



I've created simple sequential workflow. It's only creates one task and is waiting in while loop until task is Approved. It works fine when I run only one instance of this workflow, but if I start another instance before first one is finished it gets stack and doesn't complete task an workflow stays in In Progress state forever.

Network failure in Cluster Environment,will it stop the SQL Server Instances?

Hi All I have problem with cluster Environment that is there is network failure in Cluster Environment,will it stop SQL Server Instances Event viewrer Information 6:22:09 The MSSQLSERVER service entered the stopped state. 6:22:05 The MSSQLSERVER service was successfully sent a stop control. 6:22:04 The SQLSERVERAGENT service entered the stopped state. 6:21:43 The node lost communication with cluster node 'MSSQL0002' on network 'LAN'. 6:22:02 The SQLSERVERAGENT service was successfully sent a stop control. 6:22:02 Cluster resource 'SQL IP Address1(SQLCLUSTER)' in Resource Group 'SQL' failed. 6:22:02 The TCP/IP interface for Cluster IP Address 'Cluster IP Address' has failed. 6:22:02 The TCP/IP interface for Cluster IP Address 'Cluster IP Address' has failed. 6:22:02 The TCP/IP interface for Cluster IP Address 'MSDTC IP address' has failed. 6:22:02 The TCP/IP interface for Cluster IP Address 'MSDTC IP address' has failed. 6:22:02 The TCP/IP interface for Cluster IP Address 'SQL IP Address1(SQLCLUSTER)' has failed. 6:21:58 The TCP/IP interface for Cluster IP Address 'SQL IP Address1(SQLCLUSTER)' has failed. 6:21:58 Cluster network 'LAN' is operational (up). All available server cluster nodes attached to the network can communicate using it. 6:21:58 The interface for cluster node 'MSSQL0002' on network 'LAN' failed. If the condition persist

Detect other versions of SQL Server, or SQL server instances on a computer

Hi All, I want to detect other versions of SQL Server, or SQL server instances on a computer. I used the recommended Microsoft C# example by using the SQL Server Windows® Management Instrumentation (WMI) provider. http://msdn.microsoft.com/he-il/library/dd981032(en-us,SQL.100).aspx SQL server 2005 has been correctly identified on my PC with Windows 7 64 bit OS. Then I uninstalled the SQLserver and all its tools/components. But even after uninstall the utility detects the SQL server 2005 as if it was not removed. What is an alternative for the correct detection of the SQL server installed on PC? Thanks in advance Dmitry

governing service instances?

We have a WCF service that uses a third party component.  The third party component has strict concurrent licensing security built in and will throw errors if you attempt to concurrently process more than your license will allow.  My question is how to configure our WCF Service to only allow up to a maximum number of service instances at any given time and thus stay under our third party control licensed limit?   (Note, running net.tcp under IIS7/WAS with 16 CPU cores)    thanks    

Unwanted form clearing

Hi all, Some users have somtetimes problem with unwanted reload and clearing form after they do some action. For instance they fill grid with some data then click "add another position" and form reload and lose its data. There is no rule cuz they can add 10 position and on 11 the error occur or even 100 and on 101 the error appear. The form looks as you click "CTRL + R" or go to it again through menu.  This is not only one form but generally it may appear on all forms. Any ideas what may cause this error? I am not sure if it is a WCF problem but on other apps I have't noticed such a problem.

Different SQL Server instances on one server

Good afternoon. I have a Windows Server 2003 with SP2 loaded. On it I have SQL Server 2000 - 8.00.760 SP3 Developer Edition along with SQL Server 2005 - 9.00.1399.06 RTM Developer Edition. Can I also install an instance of SQL Server 2008 on this server without cauing a problem with the otherSQL instances? Thank you.

FormView clearing value I set in page_load.

I have a page with a FormView on it. The page is strictly for adding records to a Table. I have the FormView bound to an EntityDataSource and everything works greate except for one thing. I want to initialize a date field in the FormView to today's date. So, in my page_load event I have:               if (!Page.IsPostBack)            {                //Initialize SetupDate to today.                TextBox setupdate = (TextBox)fvJob.FindControl("txtSetupDate");                setupdate.Text = DateTime.Now.ToShortDateString();            } The first time this page loads, the txtSetupDate field is initialized. Although, and subsequent loads of the page doesn't initialize the Text Box. I step through the code in the debugger and I can see that the code is executig, but something (the FormView bind?) is "clearing" the Text Box. Any ideas? Why does it work on the first load, but not subsequent ones? Thanks for any help!  

Page cannot be found error on clearing cookies while running application

Hello all,            I've a web application which is running on sql state session .. And is running well under normal conditions. But when my application is in home page or landing page after loging to the application, if user clears all his history and cookies and click on any menu in the application . It is giving  Internet Explorer cannot display the webpage error.. I'm not able to debug the error.. am getting the same problem even under deploying conditions. How to handle this issue?   Thanks in advance, Hari.

Identical instances listed by installer after upgrade

I ran the edition upgrade on a SS2005 installation to bring it up to 2008 R2. Now I am seeing two identically named instances (MSSQLSERVER) when I run setup again. Not only the instance name, but also the details (version, edition, installed features) are identical.  I tried running a repair on the first "instance" and got a file locking error that crashed the setup. Rebooted, then tried again, this time on the second "instance". Same error: The process cannot access the file 'C:\Windows\SysWOW64\perf-MSSQL10_50.MSSQLSERVER-sqlagtctr.dll' because it is being used by another process. Background: Reporting Services had been misconfigured, so I was going to uninstall and reinstall SSRS; that is why I had gone back to the setup program. This is Std x64 Edition, running on Server 2008 Std.  

SSRS2005: Is it safe to manually remove instances from the Keys table in the report server database?

I have a problem with redundant reporting services instances still hanging around in the initialization pane of the RS configuration wizard and I can't get rid of them. The problem arose when we had new webfarms and before I had removed all references to the old ones from the initialization screen, the old webfarms had been switched off, removed from the network and dismantled. Therefore when I try to 'de-initialize' them, I get an error stating that reporting services cannot connect to them and when I run reports, a fair few are trying to run on the old webfarms which no longer exist and are disappearing into the void. There's a table in the report server database called Keys whch contains details of these intances and i'm wondering if its safe to remove these via SQL commands without breaking reporting services on other machines.   As a side note: All this stems from the fact that when you uninstall Reporting Services, not all of the files / references are removed. So as a general word of warning, if you do an uninstall of RS2005, you'll need to make sure everything's gone before re-installing, throwing away old machines etc. These include folders in IIS and these old instances as mentioned above.  

multiple instances of report manager VS multiple users

Hello, I want multiple users to access same report or different reports through report manager for a report server. Will the scenario of opening multiple windows of report manager on same machine and execute reports from all windows simultaneously mean same as multiple users accessing the reports at the same time? If not, then how should I generate the scenario of multiple users? Regards.

Gridview not clearing

I have a grid view I bind to a datasource when the page loads.  There is also a drop down list that can be used to filter the gridview.  When the page loads, it correctly displays all the data in the gridview.  When a item is selected in the dropdown list, it correctly retrieves the new rows but it also displays the original rows.  page load displays the following A B C D Selecting D from drop down list displays D A B C D Each additional filter correctly removes the previous filter but still leaves the orginal data so selecting C at this point displays C A B C D Code:  protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack)         {                  //sql connection                 SqlConnection sqlConnection1 = new SqlConnection();                 sqlConnection1.ConnectionString = ConfigurationManager.ConnectionStrings["MyConnectionString"].ConnectionString;                  //get events from database          &n

Can I have two instances (SQL 2005 - 2008) at the same server?

Hello, I have a Windows 2008 R2 with sql server 2005 x64. I would like to have both instances (SQL server 2005 x64 and 2008 x64) at the same server, each one having its own databases. Is the possible? What should I pay attention to? Thank youChristos

SQL Express instances

Please is there a way of locating where the instance names are stored. I have a problem in that I only want to use the default instance name but I cannot do that as a failed installation has left that value as in use. If I try to use a specified name I get errors that do not allow me to install the full packge. I have  tried ridding the registry of any reference to SQLEXPRESS, but the installation program still finds it as being in use. I've looked in hiiden files but I cannot find where it is. Any help would be appreciated.   Regards Keith Moss

Can not connect to SQL 2005 Instances from Client

Dear Experts I have a problem. I am not able to connect to Remote SQL Server instances from my PC. Though some of my team members are able to connect to the Instances without any problem. We have tried with all the below options and no joy. 1. We tried connecting, with the IP Address, like IP\<ServerInstance>, Port# 2. Added the IP address to Host file with the network address and tried, like <WINServerName>.<networkaddress>\<ServerInstance>, Port#, even without the Port#. 3. Tried to create an ODBC DSN, why this because, this had resolved the issue some times. Thought will help, but didn't work out. After all these, whenever we tried to connect to the server, we received the below error message. Error Message : Can not connect to <WINSERVER>.NetworkAddress\<DBInstance> A network-related or instance-specific error occured while establishing a connection to SQL Server. The server was not found or was not  accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (Provider :TCP Provider, error:0 - No such Host is known) (Microsoft SQL Server, Error - 11001). Kindly help to resolve this issue. I have been strugling since quite some time. Regard Deepak
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