AfCo's Q&A profile
Software Development for Windows Vista FileNotFoundException in GetWorkflowDefinition
When I used GetWorkflowDefinition, I got a FileNotFoundException: Could not load file or assembly 'file:///E:\MyWorkflow.dll' or one of its dependencies. The system cannot find the file specified. MyWorkflow.dll is the DLL containing my workflow definition. If I copy this DLL file to the directory of my program, the problem will be solved. What I don't understand is that, why does GetWorkflowDefinition still need the DLL file now that it is a method of WorkflowInstance Workflow types are just like normal .NET CLR types. CLR assumes it has access to the original DLL when loading types since it may not load and cache the whole DLL in memory, e.g. lazy loading. You need to have your workflow DLL accessible to ...Show All
Visual Studio Team System Advice needed: delete old builds using a Task(?)
I have the following. A build type called "Nighly Build" that is scheduled to run every night. It will drop the output on a shared folder on a server in the following structure: \\server\drops\ProjectA\Nightly Builds\ However after a couple of weeks there will be a lot of nightly builds in this folder. I was wandering what would be a good practice to only keep the Nightly Builds of the last week and delete the ones older than one week Should I add this as a custom task to the "Nightly Build" Build Type Or should I use a batch file or script file and run it on scheduled intervals using the Windows Scheduler Any advice is appreciated or how do you guys deal with this Hi Gabriel, In version 1 we don't have m ...Show All
Visual Studio Setting up debugging with ISA
I have developers using VS 2005 who connect to a development environment using VPN. The development environment exists behind ISA 2006. How do I configure the ISA to enable a developer who connects using a VPN to debug a webservice I've installed the debugging tool from VS 2005. Any assistance and guidance will be appreciated. ...Show All
Smart Device Development Newby question about Syncronization
Hi, I made a small application to a PocketPC 2003 that creates a xml file. I want to copy that file to a specific folder in a computer... Anyone knows how can I copy that file (by code) to the computer Thanks for your help. ...Show All
SQL Server Visual C++ 2005 (C++/CLI) - Newbie with ADO
Hi, I've been working for about 20 years now with databases on other platforms but am at my first step with ADO. I created an application which is drawing as requested different forms on screen using GDI+, eventually DirectX. Now I'm at the stage of saving several infos into a Database. For simplicity, I would like to use a database for which there is no need to install any other components. I thought of using Access Database but I realized that I'm unable to create it except from Microsoft Access which is not installed on my machine... When programming with Clarion (SoftVelocity), apart interfacing with Oracle, any other files (ex: TopSpeed files) could be designed from within application designer and then created from scratc ...Show All
Visual Studio Express Editions waiting without holding the thread...
hello how can I wait in VB without using the System.Threading.Thread.Sleep method because all this does is excecute and does not give the lines before and after it time to execute....like i want to turn a button the color red, and then just wait a few seconds. This is not working currently because the sleeping is happening too fast, what can I do plesae advide...shyma I guess that Shyma is using sleep for the same reason as I - we have newer been able to find any alternative! In Windows terms, sleep means that you are completely dead for the specified amount of time, so in the world of Windows programmers there is no meaningful utilization of sleep. That why a cup of coffee has become the symbol of programmers and even a progr ...Show All
Visual C# prevent multiple instances of an application
How can I prevent multiple instances of a C# windows forms application. VB.NET provides My.Application.StartupNextInstance Event to do this. Is there any C# equivalent as well Thanks you could do this... Process[] theProcesses = System.Diagnostics.Process.GetProcessesByName(Application.ProductName); //maybe add .exe at the end of Application.ProductName if (theProcesses.Length > 1) { MessageBox.Show("There is already another instance of the application running"); Application.Exit(); } ...Show All
SQL Server Rendering problem in PDF and TIFF
using ssrs 2005 I have a report that looks fine in the preview and in mhtml. But in Tiff and PDF it page ejects and takes another blank page and an eject prior to printing a textbox. The textbox is as wide as the page width (I have made it narrower and played around with the height in the layout envirnoment to no avail) and the data is a varchar(8000) with about 700 characters in it in this instance. The report also takes an extra page eject at the end when in PDF or Tiff format. I have not objects in the report that are overlapping and there are no warnings. What could be causing this behavior. Regards, Gary I'm really not sure what you mean by "page eject". Do you mean ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Function found in samples but not docs
I have found this function in the samples but not in the docs. Does it not draw color on the mesh Where can I find out more about it DXUT_BeginPerfEvent( DXUT_PERFEVENTCOLOR, L "Draw Code" ); Look up D3DPERF_BeginEvent() , D3DPERF_EndEvent() and D3DPERF_SetMarker() in the regular Direct3D documentation. The DXUT code you refer to should just be a wrapper to the aforementioned core API calls. But, as Wessam pointed out, they are for nothing more than monitoring and profiling your D3D applications - an extremely powerful and valuable feature but they don't change the rendering process in the slightest. hth Jack ...Show All
.NET Development Microsoft.Practices.ObjectBuilder.dll not being copied to a Project through a reference
Hi Here is my situation: Firstly I have a class library called Data, I'm using Enterprise Libraries Data block so I have the following references in the Data Project Microsoft.Practices.EnterpriseLibrary.Common.dll Microsoft.Practices.EnterpriseLibrary.Data.dll Microsoft.Practices.ObjectBuilder.dll System System.Data System.Xml Inside the Data project is a class called DataAccess. This is what DataAccess looks like: using System; using Microsoft.Practices.EnterpriseLibrary.Data; namespace Data { public class DataAccess { public DataAccess( bool useTransactions) { Database database = DatabaseFactory .CreateDatabase(); } } } Lastly I have another Console application project called ...Show All
SQL Server SQL Server 2005 Service Pack 2 CTP is available
Hi, SQL Server Service 2005 Pack 2 CTP (Community Technology Preview) is available... http://www.microsoft.com/sql/ctp.mspx The list of new features and fixed was published here on KB Article http://support.microsoft.com/default.aspx/kb/921896 Regards Nilton Pinheiro www.mcdbabrasil.com.br Hi maddesco, Is there a date yet for the public version No. Now, the December CTP of SP2 is available at: http://www.microsoft.com/sql/ctp.mspx If not, any estimate of when it might be Dec CTP is the last SP2 CTP release, so I believe that between Jan end and Feb middle will be a most likely date. thanks Nilton Pinheiro www.mcdbabrasil.com.br ...Show All
Visual C++ collapsing outline at random times in VS05
[Moved this discussion from " Visual Studio Debugger "] I recently migrated from VS03 to VS05 (using VC++). I've always used Outlining to manage large code, but VS05 seems to have introduced a bug in the outlining functionality. I will be working in a section of code and all of a sudden it will collapse and the section I am working in will be hidden. It seems to happen at random times -- usually in a section that was previously hidden but was subsequently expanded. Sometimes just the opposite happens -- sections will suddenly expand that were previously collapsed. I suspect that it has to do with the new (helpful) feature in VS05 that "remembers" outlining states from previous sessions. It's acting like it has s ...Show All
Smart Device Development Process does not exit when using Process.Start & WaitForExit
if i start another CF app using the following code in NetCF2.0 the app never exits, it just seems to hang Dim p As New Process Dim info As New ProcessStartInfo( "Sync.exe" , "1") p.StartInfo = info p.Start() p.WaitForExit() If i run the app manually or step through it then it exits as expected. It's almost like the WaitForExit is keeping it alive or something Any ideas No,WaitForExit() just waits for application to exits, it does not keep it alive. Must be something in Sync.exe which never exits if launched by main application. May be Sync.exe waits for resource held by main application, it’s up to you to investigate. ...Show All
Visual Studio Tools for Office use excel add-in on the client side without installation
hi guys i have created a excel add-in using VSTO.. i have got the setup of excel add-in but on the cient side i dont want to use that setup. is there any way possible way to use excel add-in on client side and avoid excel add-in setup. ...Show All
Visual Studio Express Editions Help with retrieving code
To make a long story short, I made a huge mistake that not only destroyed my main hard drive....It killed my backup hard drive that made me lose the entire code for a program I was working on. It's easily a few months worth of work. I do have the most recent version of the published code. Is there a way that I can retreive the code from that Please help. Thanks. Eric You may want to look into the .NET Reflector and Reflector.FileDisassembler . ...Show All
