Ben Dot Smith's Q&A profile
Software Development for Windows Vista Using InvokeWorkFlow Activity
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 Michael - Does the first workflow get 'terminated' or 'completed'. If it gets terminated, can you find out the reason for termination by subscribing to the workflowtermi ...Show All
Visual Studio Team System Web Test recording unreliable - help!
I've just installed the release version of VisualStudio Team Suite 2005, to use the web testing tools. (I had previously used beta 2 on a different PC). I go through the standard process of recording a web test. However not all the posts are recorded. In more detail: - Start recording - OK - Type in the URL of our logon page (we use our own authentication) - OK - Enter the logon credentials and press Logon - OK - We do a Response.Redirect to our 'main page'. Our URL remains fixed after this, including the query string. ... The web test recording does not spot this, so type in the URL manually - OK - S ...Show All
Visual Studio Remove Template security warning dialog
We have created templates for classes used in our product integrated in Visual Studio 2005. Currently we place them in the My Documents location. When the user selects "Add New Item..." and the template, a scary dialog appears, Microsoft Visual Studio - Security Warning The following template is attempting to open one or more documents in a manner that could pose a security risk. ..... This is horrible! The template has no custom wizard and is no security risk, much less than the security risk from any possible add-in, which seem to have no such dialog. How do we prevent this dialog from appearing If we put the template into the sta ...Show All
SQL Server ambiguity performance problem
The first query execution time less than 1 second But the second query takes around one minute SELECT ACC_KEY1,ACC_STATUS_LAST FROM PSSIG.CLNT_ACCOUNTS INNER JOIN PSSIG.CLNT_CUSTOMERS ON PSSIG.CLNT_ACCOUNTS.CSTMR_OID = PSSIG.CLNT_CUSTOMERS.CSTMR_OID WHERE (PSSIG.CLNT_CUSTOMERS.CSTMR_START_DT >= '1900-1-1 12:00:00') AND (PSSIG.CLNT_CUSTOMERS.CSTMR_END_DT <= '2106-12-31 12:00:00') AND (PSSIG.CLNT_ACCOUNTS.ACC_KEY1 >= '0000000000000') AND (PSSIG.CLNT_ACCOUNTS.ACC_KEY1 <= '9999999999999') AND (PSSIG.CLNT_ACCOUNTS.ACC_STATUS_LAST in (5,-999)) AND ACC_KEY1 > '0' ORDER BY ACC_KEY1 ...Show All
Software Development for Windows Vista ConditionalExpression in if-else-branch Activity
hi all, i created a custom activity (SequenceActivity) and added an if-else Activity. now i tried to add a condition to the first branch, but get a compiler error, when doing this: // // ifElseBranchActivity1 // this.ifElseBranchActivity1.Activities.Add(this.delayActivity1); codecondition1.Condition += new System.Workflow.Activities.ConditionalExpression(this.isDependent); this.ifElseBranchActivity1.Condition = codecondition1; this.ifElseBranchActivity1.Name = "ifElseBranchActivity1"; the error is: The type or namespace name 'ConditionalExpression' does not exist in the namespace 'System.Workflow.Act ...Show All
Visual Basic Database Update Error - REALY WEARD
Hi every one, Every time i try to update my database i get the following exception : System.Runtime.InteropServices.InvalidComObjectException: COM object that has been separated from its underlying RCW can not be used. at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping) at System.Data.Common.DbDataAdapter.Update(DataTable dataTable) This is a the code that's generating the exception 'Fill Connections Table dbaConnections.Fill(ConnTable) 'Create a New Record ConnRow = ConnTable.NewRow ConnRow.Item(getConfig("ConnectionsDatabase.ColConnectionMethod")) = 1 ConnRow.Item(getConfig("Con ...Show All
Visual Studio Crystal Reports connection string
I am brand new at Crystal Reports... I am using VS2005 Professional, writing a VB.net Windows app with 3 Crystal reports. While developing I connected to our development SQL server, with the server name and db name specified in the app.config file. When I added a Crystal report (a last-minute user request), I found I had to parse the contents of the connection string from the app.config file in order to isolate and assign the server name and db name for Crystal. Q1: Was there a better way Q2: Even though I changed the SQL server name to our production SQL server when I published the app, Crystal is still trying to access the deve ...Show All
Windows Forms How to avoid dragging a form
Hi everybody! I have a main form in my Windows applications that contains other form as a Explorer of folders. I don't want to allow to drag the Explorer form (FrmExplorer). FrmExplorer has a TreeView. I have been looking for information about it and have written the following code: public partial class FrmExplorer : Form { public FrmExplorer(string fileName) { InitializeComponent(); this.QueryContinueDrag += new System.Windows.Forms.QueryContinueDragEventHandler(this.FrmExplorer_CancelDrag); } private void FrmExplorer_CancelDrag(object sender, QueryContinueDra ...Show All
Visual Studio ProxyGen tool on VS2005 STK Feb
Hi, I'm using the proxygen tool to generate a proxy for my host application. This is the first step to integrate with Visual Studio 2005 Tools for Applications. I'm executing the following command line: proxygen / i'm getting this errors: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'ProxyGen, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) File name: 'ProxyGen, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.Security.SecurityException: ...Show All
.NET Development garbage collection
how GC will find which variables need to be collected (how .net will find memory references that are not being used.it will construct a directed graph of memory variables.when exactly this digraph will be constructed is this created by compiler or GC in CLR how gc.collect() is a costly process ) Please go through the following article. I hope that it will help you. http://msdn.microsoft.com/msdnmag/issues/1100/gci/ Regards, Jimmy ...Show All
Visual Studio Team System Answer NUnit or VSTS Team Test
Discuss.... We have mstest.exe for running tests from the command line (in case you're not using MSBuild.exe) and we also work with msbuild's "tasks" where you can specify which tests you'd like to run. These are authored from the UI when you're creating a new "build type" as part of VSTS. Tom ...Show All
Visual Studio 2008 (Pre-release) Back to the 2-tier?
It seems to me that Dlinq with this nice new feature of Entity = Class is good for a Client/Server scenario only. How would it worlk in a SOA at all I admit this code looks very efficient, but only in a C/S scenario. How would delayed execution work if you're not in C/S scenario, but need to call a webservice for retrieving your data, and also a webservice for updating your data ...Show All
SQL Server Many-To-Many Self-Join
I hope somebody can help me with a rather complicated problem I am having involving triggers and foreign keys. I am working on a database that manages projects in terms of Tasks and the other Tasks (I call them "Pretasks") that must be completed before the Task in question can be completed. Any Task can be a Pretask for one or more other Tasks, and any Task can have any number of Pretasks, which calls for a many-to-many self-join on my tasks table, tblTask. I handle this with a linking table, tblTaskChain, which contains two fields, CurrentTask and Pretask, each of which contains a TaskID referencing a record in tblTask. I hi ...Show All
Visual Studio Express Editions nothing after if statement works
I have made a blank windows form and added a timer with this code " private : System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e) { if (y==1) MessageBoxA(hWnd, "hi" , "cool" ,MB_OK); y=y+1; } " I declared static int y earlier and I just keep getting never-ending messageboxes why doesn't my compiler process the y=y+1 here " public : static int y; static int sketchpad; static int news; HWND hWnd; Form1( void ) { InitializeComponent(); y=0; // //TODO: Add the constructor code here ...Show All
Visual Basic Database question....
In my VB 6 app I used an access DB with 77 tables each representing a different company products. They are ALL the same format just different company names for each table. In VS2005 I would like to use just one table and have about 3000 records with the column MFG. Obvioulsy this makes for quick response from the program. Here's the problem.... In the old app I populated a combobox with each table so the user could quickly navigate to the MFG of choice. In VS2005 I am using the BindingNav but there are 3000 plus records to sort through....HOW in heavens name can I populate a combo box with ONE record from each MFG name and keep its ...Show All
