Andy Robb's Q&A profile
Software Development for Windows Vista How to use the cancel handler?
I have two workflows A and B. In workflow A I have the instance Id of workflow B. How do I gracefully cancel workflow B from workflow A Is this where the cancel handler should be invoked How When the cancel handler completes does the workflow exit Thanks. Workflows cannot perform instance operations on other workflows, only the host can do that. What you can do is make a request to the host from one workflow instance to terminate/suspend/unload/etc. another workflow instance. The CancelHandler is something completely different. This is used to store cleanup logic for activities that are canceled during e ...Show All
Visual C# Common Language runtime detected invalid program
Hi There, I keep on getting this error message and it does not even step into the code , earlier it was working fine, can someone please let me know what's happening. Thanks, Server Error in '/WebApplication1' Application. ---------------------------------------- ---------- ---------- ---------- ---------- Common Language Runtime detected an invalid program . 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.InvalidProgramException: Common Language Runtime de ...Show All
Visual Studio Team System TF30177: Team Project Creation Failed
Hi all, I install Team Foundation Server Beta3 in Single-Server mode, and I didn't have errors on the installation, but when I try to create a new team project the follow error appears: ------------------------------------------------------------------------------------------------------ Error TF30170: The Plugin Microsoft.ProjectCreationWizard.Portal failed during task SharePointPortal from group Portal. Explanation Plugin error text: "Client found response contect type of 'text/html', but expected 'text/html'. The request failed with the error message:-- Server Application Unavailable The web application you ar ...Show All
Visual Studio Express Editions quick console error?
hi, my program compiles and builds well but when it is run, the quick console gets stuck at getchar(). it even though i input something into the console (upon a request for user input), the getchar() doesn't seem to take in my keyboard input at all. any idea what's wrong with the quick console on this and what's the difference between a "quick" console and a normal console thanks! -gab Dear Luke, My main purpose of using Visual C++ is writing small win32 programs, and coming from an embedded world, printf() is still my favorite debugging tool. Did you consider just making the quick console output only It's a very usefull feature. T ...Show All
Visual Studio Debugging your packages.
The solution built by the Guidance Package toolkit doesn't let you debug your package easily. First, check out my other post about "Making buiding faster". If you do what I say in that post, you will have the single package project in your solution. If you don't then you have to make just make the package project the Startup Project. Make sure your in "Debug" not "Release" mode. Go to Properties and pick the Debug tab on the left. Change the Start Action to "Start external program" and enter in the path to your devenv.exe. Mine is: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe Now put some breakpoints in ...Show All
.NET Development Help debugging bad web services call
I'm fairly new to the web services side of .NET. I've inherited some code I'm trying to get to work. It was only partially implemented and the original programmers are gone. Sorry if I don't have all the terminology right. Basically I'm making a function call from regular code to a web service function (Validate(string s, ...)). There is a "Web References" folder that's been created, and a References.cs file that has been automatically generated. I debug and trace up to the point of the Validate(string s,...) call. At this point s has valid information (valid reference, valid string data), according to the ...Show All
.NET Development How to send custom made datagram packets in C#
The requirement is to sent custom made datagram packets using TCP to custom made ftp server. The datagram should have custom header field such as version,type,payload length(custom fields). It should also have a custom payload portion. Any idea how to create this custom packet and send it over tcp Regards, Hema. Sending a custom payload in the body of a TCP packet is pretty simple with the System.Net namespace. The classes you will want to look at are: TCPClient or Socket. We also have an FTP implementation, but it does not allow custom FTP commands to be sent. For Socket code exam ...Show All
.NET Development Security issue with using .NET to consume J2EE web services
Hi all, I am currently working on .NET(C#/ASP.NET) client with Apache/Axis/UNIX Web Services. The server is using Basic Authentication . I created a proxy as usual by adding web reference with the WS URI. And also, I created a service object as below: " EventService service = new EventService(); service.url = "web services URI here"; X509Certificate x509 = X509Certificate.CreateFromCertFile(Server.MapPath("SSL CERT NAME")); service.ClientCertificates.Add(x509); service.Credentials = new System.Net.NetworkCredential(USERNAME, PASSWORD); //invoke web method service.searchByName(); " However, there is always err ...Show All
Visual C# buttons
how do i have it so a button when clicked goes to a website Hi, Do you mean mark as i declare If so: <datatype> <variablename>; eg int var = 0; myClass c = new myClass(); string myString = "Paul June A. Domag"; As you can see its pretty much similar to C++. cheers, Paul June A. Domag ...Show All
SQL Server Huge issue with the Lookup problem
Hi, I have Script Component in the Transformation phase that returns me values like NO, OTH, OWN (comma separated string coded value) Now I want to use the Lookup component (preferably or any other task really) to get the description by looking up a table in another database. So eventually my string needs to look something like this None, Other, Owned (comma separated string decoded value) I tried using the Script component again to do this, but failed miserably. I am having such a hard time connecting to another database within the VB.NET script designer. When I tried using the Lookup task, I ONLY end up getting the first value returned. So ...Show All
Visual C++ How to read a binary file?
Hi! I'm just a beginner in C++, though i had tried to learn and do some examples from books,i find it was hard to manage my project. I was trying to open a binary file but i failed. As i had mentioned, i searched through a few books but all i got was just a line of command. I'm not sure how it is supposed to work...... like after i open the binary file, should i represent the binary value with something if not, how to process the values then I'm supposed to use Visual C++ for my project, so applying C++ language will work perfectly in Visual C++ I hope someone will help me out of this problem because i don't know what should i do an ...Show All
Windows Forms Master-Details using Listboxes
Hi, I am using Windows Forms, not Web Forms. My desire is to set up a Master-Details interface using 3 Listboxes. I have three Listboxes (not DataList and not DataGrid): 1) Listbox_A 2) Listbox_B 3) Listbox_C Listbox_A is the master of Listbox_B Listbox_B is the master of Listbox_C One DataSet contains three DataTables: 1) DataTable_A 2) DataTable_B 3) DataTable_C ListBox_A is bound to DataTable_A Lis ...Show All
.NET Development very new and unexpected Error with database
hi masters, i am using dot net 2005 C# with sqlexpress, i have made connection and start inserting values to the tabels and its working fine. BUT.. when i am close this application and restart again this application then there is no previous data i have checked using direct opening the tabels , no data found. please help me where data are going i like to know from you all thankx actully few days ago i am doing the same application in 2003 with sql server 2000. And now i have converted the same applicition in2005 and i have not found the export option in 2005 , so that i have made new database and tabels with ...Show All
Visual Studio Express Editions Next page - HasMorePages
Hi, I fill my printdocument with handly positions. Page 1 works correct. But it doesn't go to page 2. Dim intHoogte As Integer = 120 while (blablabla) If intHoogte Mod 73 = 0 Then ev.HasMorePages = True intHoogte = 120 End If intHoogte += 15 End While After this code, the text for page 2 appears on height 120 on page 1. Guessing a bit here. I assume this code is inside a PrintPage event handler and that you use intHoogte to track how much you've printed sofar, generating a new page when you've output 73 lines of text. Make sure you exit the event handler after yo ...Show All
Windows Forms How-to Start .Net executable with parameters?
I have not been able to find some documentation on how to pass parameters to a .Net windows forms executable. I am not sure what changes I need to make to the application to accept parameters I want to be able to issue something like System.Diagnostics.Process.Start("c:\myfolder\myapp.exe 1 T") where in myapp.exe I am able to read the two parameters on startup and implement some logic accordingly. Thanks in advance. My .Application.CommandLineArgs ...Show All
