Answer Questions
kennm Instance-wide Event-Listener - Not container of other Activities
Is it possible to have an Instance-wide Event-Listener Activity capable of handling external events I want such Instance-wide Event-Listener NOT to contain any of workflow child activities (to avoid Spawned Contexts issues that I still do not know how to avoid). In other words, can WF support something like, the First Activity in the WF is ListenForExternalEvents (keep the Listner ON) and move on with the execution of other activities. If an event occurs the Listener get the control-back at hand and does something (like dynamic update of the WF instance) and then the WF execution can continue. The scenario I want to support is, if I have a long running WF and I want to have a Listener for CustomerCancel Event to be able to cancel so ...Show All
huysmans Why Bitblt cannot capture sidebar gadget ?
Hi everyone, I'm developing some kind of screen capture application. I use API like CreateDC("DISPLAY",NULL,NULL,NULL) and BitBlt to capture desktop screen. All windows on desktop can capture normally. But sidebar and gadget not capture by this method. Does it require special API to do this Thank you Thank you very much Davis, you're right. With CAPTUREBLT flag, I can capture sidebar now. Did you try using the CAPTUREBLT flag (includes layered windows) with your BitBlt call ...Show All
Dessus Cant install games in Vista RC1 (5600)
Sorry guys. Not sure where else to put this. I need some help with installing software under windows Vista RC1 (build 5600) The games I have tried installing are Age Of Empires III and CivCity: Rome. Both get most of the way through the install before getting the following error: "Internal Error: 2350" Both games get the same error. From what i've read online this seems to be an error with windows installer itself relating to the installer being out of date and needing an upgrade. Obviously this isn't the case as Vista would have the latest windows installer version included. This is now proving very frustrating... Especially as i can't seem to install XP (the main board supplied drivers wont install) on my bran ...Show All
Manolis error code
i have the windows vista CR1, then when i am installing the updates, after apear a windows messege, says filed update error found code 643, and dont install the update, what can i do Windows Update on my Vista Ultimate downloaded the Net Framework 1.1 Service Pack Security Update - but the install fails for me as well - with error Code 643. Anybody else had the problem and has anyone got a fix Jonathan. Same error code #643 when trying to install auto update as follows: "Security Update for Microsoft.NET Framework, version 1.1 Service Pack" Anyone know anything about this one Me 3 and apparently noon ...Show All
JimIngleton How can I List events for a state in a state workflow xoml during runtime?
WWF Gurus, I have a state xoml workflow that needs to retrieve the events (i.e., EventDriven activity names in a specific state) for a specific state. Is there any sample code I can execute Thanks in advance, JP The ordering state machine sample in the SDK queries for this information and uses it to update the UI. http://msdn2.microsoft.com/en-us/library/ms741709.aspx Matt ...Show All
Prabagarane Problem with rmtool.exe
Hi, I'm using rmtool.exe to test my applications compatibility with vista restart manager. Unfortunatly it doesn't work as expected: most of the time the application (Project1) is shut down but not restarted (only on some very rare cases it is restarted). According to rmtools output it should have been restarted. Any ideas what can cause this System: Vista RTM Ultimate (Language: DE) best regards, Ulrich here the output: c:\users\admin\downloads>RMTool.exe -p 676 -w 15 -R Waiting 15 seconds. Starting Session StartSession() returned 0 SUCCESS: StartSession() Session Key: c5881e295ce5af40bae9020480ef03c2q Registering file RegisterResources() returned 0 SUCCESS: Allocating RM_PROCESS_INFO array SUCCESS: GetAffectedApps() My PID: 4012, Aff ...Show All
Ajamilan Trying to derive a custom activity from another
In the project we are wokring on we require a lot of almost identical activities. So instead of repeating all the common logic in every activity we created a "Base" activity and then tried deriving another activity from the BaseActivity. So we have something like… BaseActivity : SequenceActivity [HandleExternalActivity] Activity1 : BaseActivity [More Public Properties] Now I am running into problems after mapping the EventArgs that HandleExternalActivity’s interface requires in the BaseActivity. I get validation errors and/or already defined errors in the derived Activity class. Has anyone else tried doing someting like this I would really appreciate if someone could point me to th ...Show All
Jamie Thomson How to store data in a long running state based workflow
Hello everybody, at the moment i am building a little help desk solution, which is based on WF and WCF. The services are published as web services which uses the runtime of the workflow foundation. I added several services, e.g. the persistence, tracking and dataexchange service and everything works fine, the workflow persists and reloads somebody wants to go on with it. BUT now I am searching already for several days how I can make a class available in the workflow, filled with custom data (the data the user filled in), but I cannot find anything. I heard of the Tracking Profile but didn t find any real good example to understand how I can realize this, or I can realize this anyway. I think this is a really important and commo ...Show All
Sylvain in Ottawa How establishes workflow Namespace when vb.net language?
Hi all, I when use WorkflowCompiler compile .xoml file and .xoml.vb file to prompt a error "error CS0116: A namespace does not directly contain members such as fields or methods",also I when use the wfc tool compile them have the similar error,after I supplement the /rootnamespace parameter and the /language parameter the compiling is may pass.But I only found the LanguageToUse property in the WorkflowCompilerParameters class,does not have the place to be possible to establish namespace,The similar question cannot appear actually in the c# language situation.Ask how I should do Hi Angel, Thank for your reply. I had already tried , this may make mistakes when compiling and transla ...Show All
Samsudeen B Network access seems to be locked down until reboot?
Installing my company's product (which uses an older WISE based installer) it seems that Vista RC1 is marking the path that the programs are installed in as not allowed to do network accesses. (If you run the programs and try to do socket or HTTP calls, they fail with host not found type errors (e.g. 12007 from WinInet).) But if you copy the installed files to a different path, they work fine, or if you reboot then they work fine. That seems wrong...either they should never work, or they should work from installation on, without a reboot. So, what is going on So...after some experimentation, it looks like renaming our executables, and then renaming them back fixes the problem. That is clearly some sort of bizzaro b ...Show All
sofakng Problem running SQL Server 2005 on VISTA Ultimate
Hi, I've Vista ultimate installed on my machine. I tried to connect to Sql Server 2005 Standard Edition using windows authentication, but doesn't allow me to connect and displays error. After turning UAC off (Which is not a good idea for security purpose), I can easily connect to the server. I had the same problem and fix when I tried to connect to SQL Server through VS 2005 Tools->connect to databse. What is the problem and what is the fix for it Thanks in advance Maulik Afaik, you must install SP2 for SQL Server 2005 which is availible as a CTP-Build from the downloadcenter :) Hi Andre, Thanks for your reply, but I have already installed SQL Server 2005 SP2 CTP, still I cannot lo ...Show All
Jacawa State Machine Exception Handling
Can anyone tell me what the best practice is to handle exceptions in a state machine process. I would like to move the instance to different error states depending on the type of exception. It would seem that normal compensation processing is not available in a State Machine Regards Jaco Add an EventDriven or StateInitialization or StateFinalization activity; right click on them and you'll see the Cancel and Fault Handlers. Serge Sorry, no idea. Did you throw the exception See if you can create the exception hi,Serge ,I find them ! Thanks very much ! Hello, i also had this question, luckily I have the right book at hand .. ;-) this thing is well descr ...Show All
patria Calling CreateProcessAsUser() from service
According to some MS documents (e.g. http://www.microsoft.com/whdc/system/vista/services.mspx), it should be possible to use CreateProcessAsUser() API in a Vista service to create a process in user session. I am trying to achive this, but the function returns error code 1307 (ERROR_INVALID_OWNER) = "This security ID may not be assigned as the owner of this object." Does it work for somebody Many thanks in advance. I am doing basically the same thing, but I get "CreateProcessAsUser failed with 123" I have tried everything I cn think of with no luck Did you use start windbg.exe in session 0 and make the service interactive Dbgview has to run in the same session as the process ...Show All
calmal20 Routing LineIn directly to Speakers?
I'm having troubles with routing of LineIn directly to the speaker output internally (!) in the sound card (utilizing the sound card MUX.) I don't need to capture the stream, I just need to listen to the input line for monitoring purposes. With the old style mixer I just check the box under Line-In control on the Play Control page of the mixer, and that did the job. It was easy to do programmatically with the mixerXXX API too. What do I need to do with Vista to achieve the same functionality Windows has never supported this scenario. Some audio solutions have historically done so in their audio hardware, but most audio vendors have moved from providing that functionality. The good news is that it ...Show All
AllahIsGook SetTimeZoneInformation and Vista
Having a problem where I'm getting a error return code of 1314 (A required privilege is not held by the client) after calling SetTimeZoneInformation API in C++. This is after I adjusted the token privilege for the SeSystemtimePrivelege, which is just baffling me. This code works in XP, but alas, not in Vista Beta 2. The user thread is the administrator and like I mentioned earlier, he now has the seSystemtimePriveilege set in his token. Is there another privileg I need or is this a bug In Addition to the above, I have SE_TIME_ZONE_NAME turned on as well for this admin user. I'm having this exact same problem with RC2, anyone find a reason ...Show All
