MarcoB's Q&A profile
Visual Studio Team System Error while running the script second time
When I run the web test, the test is passed, but when I run the same web test after 10 mins it is failed by throwing following errors. Request failed: Context parameter '$HIDDEN1._ctl0:DCT_DESCRIPTION0_MEMO' not found in test context. RequestFailed: Context parameter '$HIDDEN1._ctl1_ParID' not found in test context Can anyone help me how do we solve this problem (Note: On the error message "DCT_DESCRITPION_MEMO" where the value of this field is going into DB. ) Thanks Tampali Apparently the hidden fields are not on the page when you visit it the second time. You can verify this ...Show All
.NET Development Problem with XsltCompiledTransform for large data
Hello! I was wondering if anybody could help me to solve my problem: I call a stored proc in SQL server with ExecuteXmlReader, then load my xslt stylesheet into XsltCompiledTransform, create a output file stream. and call Transform method. The problem is that it works fine for small resultsets. Fot large resultsets ( ~1Mil Rows ) the process in Task Manager increases memory allocation and slows down extremely. I hoped that as I used xmlreader and streamwriter there should not be a big memory problem like with the case of DataSet instead of XmlWriter. Alas, this is not true. Could anybody give any suggestions on this Thanks in advance ...Show All
Software Development for Windows Vista Windows Workflow Foundation from a business perspective
As a developer I am really enthousiastic about the new Windows Vista related technologies, and especially Windows Workflow Foundation. Being a developer, I have lots of stuff to read about this subject. There are many good-quality articles, whitepapers, webcasts and forums such as this one to help me get started. The problem is, however, that if I want to convince the management team of my company that WWF and WCF are the way to go (which I think it is), I can't seem to find (really) good information from a business perspective. All presentations directly dive into code on slide 3 or 5 or so, and most articles I found are too developer ...Show All
Software Development for Windows Vista SqlWorkflowPersistenceService exception using beta2
Hi, I've tried to created a web application using workflow. but there was an exception (array index out of bound exception) occurred when i tried to call 'startRuntime()'. Here is the code: --------------------------------------------------------------------- private WorkflowRuntime runtime; private WorkflowInstance instance; private AutoResetEvent waitHandle; and in button_click(): runtime = new WorkflowRuntime (); waitHandle = new AutoResetEvent ( false ); SqlWorkflowPersistenceService sqlService = runtime.GetService< SqlWorkflowPersistenceService >(); if (sqlService == null ) { ...Show All
Windows Forms programmatically find a row in a DataGridView and select it
Hi There, I've got a DataView populated with data from a Table. The Table contains a PrimaryKey. With this DataView I populate a DataGridView and show all Columns except the PrimaryKey Column. What I now want is to find a row due to a given PrimaryKey Value. How can I do this without to iterate thorugh all rows and check the PrimaryKey from each DataRowView Thanks in advance... Greet Markus thank yiou. Now I understand your design choices. I guess you must either be using the datagrid in read only mode or have some other GUI for use to start editing. I am still sort of a newbie to visual st ...Show All
.NET Development Add a new Record in my Access database
Hi! I have try to use this Dim newRow As PcgDataSet.elvalRow = Me .PcgDataSet.eval.NewRow() newRow.kunde= "A124" newRow.name= "Acme" Me .PcgDataSet.eval.Rows.Add(newRow) I take it from Dim newRow As NorthwindDataSet.CustomersRow = Me .NorthwindDataSet.Customers.NewRow() newRow.CustomerID= "A124" newRow.CompanyName= "Acme" Me .NorthwindDataSet.Customers.Rows.Add(newRow) I don't get an error but nothing happens , what i want is a new record in my Access database Call PCG and in my table call eval I have try, and No errors but i dont get a new ...Show All
Windows Forms Redirecting to a form
Hi, In my application, i have a connect form(to connect to different applications DB) which is supposed to the entry form. When i load the application, only after the connect form is enabled or selected, the other forms are to be used. If other forms are opened before the connect form is used, then the control is to be redircted to the connect form and after establishing the connection only, the other fom is to be loaded. There is another problem, after connection, i have opened some other forms, now if i change the connection, then the other opened forms should be closed and then only the new connect form is ...Show All
Visual Basic Use string value as variable name
How do I use a value of a string as a public variable name/object that I can then change.... dim var1 as integer dim var2 as integer dim var3 as integer...ect... Dim vroot as string = "var" Dim i as integer = 1 Do var + i.tostring 'this returns "var1" 'now how do i use this var1 returned value to act like a variable i=i+1 loop until i = 15 Also how would i do this with objects....say i had a series of labels named label1, labe2, label3...ect... to call these through a "label + i.tostring + .text" script also...... Catch my drift....is this possible Thanks! Hi, I don't think that this is possible. B ...Show All
SQL Server Secure .NET 1.1 application from users
Hi all. I am developing an distributed VB.NET 1.1 application with a TripleDES capable socket layer for communication with my server app. I need to secure the distributed app from the users within the organization I am developing it for (a franchise). I do not wish to store any encryption keys in the source code as these would be obvious to any seasoned hacker through decompilation of my binaries (even with obfuscation). I have decided to use the windows DPAPI (under machine storage mode) to secure manually entered (at installation) encryption layer keys in the registry. The salt values for this DPAPI mode also need to be secured, ...Show All
Visual C++ integer with 2 number
i want to convert my int variable to String, but i want that my String variable have 2 number. example: int | String 1 01 2 02 10 10 11 11 how can i do this thanks This MSDN describes numeric formatting strings: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconnumericformatstrings.asp I would do something like the following: int main() { int i = 4; System::Console::WriteLine("i = {0}", i.ToString("d2")); } ...Show All
Visual Basic Deployment .NET 2 problem
Hi all, I have a window form application. This is program i converted from VB6 to VB.NET (.NET 2). This program use ADO, and some COM. I use setup project to deployment this program. Everything is ok, when i install setup program to client machine but i can't run it. (the client machine has .NET framwork 2). But when i install .NET Framework 2 SDK, i can run my application. Someone tell me the reason why I think we only need the .NET Framework 2. Thanks If your app won't run on a machine that has .NET 2.0, then you have another dependency and you need to work out what it is. ...Show All
Visual Basic running cmd.exe using System.Diagnostics.Process
Hi guys, I am running cmd.exe to start a executable from a web application.Howvever, i need to input 2 more parameters for the account and pwd as shown below. CMD.EXE c:\Documents and setting\desktop>perl scriptest.pl test.txt account(domain/user): xxx password:xxxx 'User enter perl scriptest.pl test.txt, then cmd.exe will prompt for account and password for user to enter. How do i let the web application enter the account and password. My program is such Dim proc As System.Diagnostics.Process proc = New System.Diagnostics.Process &n ...Show All
Visual Studio Team System Cannot acces source control after upgrading to RC
The upgrade process from TFSB3R to RC worked fine. After reinstalling the Team Explorer, I can't acces the source control from the Team Explorer Window. The message is : Either source control has not been configured for this team project or you do not have permission to access it. Would you like to create the source control folder, $/Proj1 And if I choose Yes, the message is : Error. The Item $/Proj1 already exists So, the solution works well with the source control but I can't acces the source control management window. What is happening (I'm a Team Foundation Server Administrator) Thank you I a ...Show All
Visual C++ Changed the COM signatures....using ildasm.....
Hi, I have a .exe COM which I used in .NET but some signatures got changed....so I opened it with ildasm and changed the signatures so that it should return something from the function....This is the error I'm getting now.... The runtime has encountered a fatal error. The address of the error was at 0x79e8aff6, on thread 0xb4. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack. Any Ideas.... Thanks, Harsimrat ...Show All
Windows Forms Windows Forms application closes unexpectedly
Hi, we have a quite large Windows Forms application (one small executable and about 30 assemblies). On several client PCs (Windows XP SP2) the application suddenly disappears (like a crash but without an exception). We register a ThreadExceptionHandler with the application instance to catch otherwise not caught exceptions, which normally works. But in the case of the above issue the application seems to close without calling the Form.OnClosing handle; we always ask the user if the application may be closed, but in the case of the problem no message box is displayed. In our internal logs i see several garbage collector cleanup for some ...Show All
