Jim Thatcher's Q&A profile
Software Development for Windows Vista How to build a generic runtime host?
Hi, I know this is a quite a big question, but I have to ask it :-) How would I write a generic windows workflow foundation runtime host. What I want to do is: 1. Write a Windows Service that exposes the Windows Workflow Foundation Runimte as a remoted Singleton object. Let's call that one WorkflowEngine. 2. The WorkflowEngine has state persistance and tracking services enabled. 3. The WorkflowEngine offers a method lets say Startworkflow( workflowToStart) that is able to start any given workflow as long as the assembly the workflow is defined in is available to the Engine. ( I can imagine how to do this this with System.Refelection.Assembly.Load() and GetType.... 4. The WorkflowEngine offers a method RaiseEvent( workf ...Show All
SQL Server oracle oledb provider not registered in local machine
Hi, I am trying to establish a connection to an Oracle database using the following code in a script task: Dim oOleDbConnection As OleDbConnection Dim sConnString As String = _ "Provider=OraOLEDB.Oracle;" & _ "Data Source=DBxxx;" & _ "User ID=Userxxx;" & _ "Password=Passxxx" oOleDbConnection = New OleDb.OleDbConnection(sConnString) oOleDbConnection.Open() When I execute the script task, I receive the following error: The 'OraOLEDB.Oracle' provider is not registered on the local machine. Am using the correct provider I do not know how to resolve the said error. Here are some facts: Oracle 8i is installed. Tnsnames.ora is updated. I have successfully ...Show All
SQL Server Tempdb Issues Urgent Help
Hi, I have an app that changed the tempdb such that now I have 123GB of free space on the tempdb and is filling up my drive. When i use sp_spaceused I get the follwoing name dbsize unallcated space tempdb 123969.12 MB 123866.02 MB 872 KB 320 KB 400 KB 152 KB reserved data index size unused My question is this is production so shrikfile is it an option as i think since it is the space at the end of the file that i need what can I do other than restarign SQL Thanks. Well what are the effects of shrinkng the tempdb. I tried using shrinkfile with truncate only, no turncate only but the size does not reduce to my understanding shrink works if we have a large used portion of data or log file but in ...Show All
.NET Development How many versions of .Net Framework do I need?
I am not a programmer so I am not doing any development. However, I know that there is a need for the system to have some version of .Net Framework installed. My system currently has .Net Framework 1.1 and 2.0 and now there is a 3.0 available. Unlike other products, when I run Microsoft Update, it doesn't replace an older version with a new version but justs installs the newer version. So my question is do I really need to have multiple versions and, if so, should I go ahead and install 3.0 actually Manishak is right but u dnt need ever all the versions installed.it dsnt mean all the time updates can renew ur versioning..but WCF WPF n WWF r damn true..thanks manishak. if u find this as ans plz ma ...Show All
Visual C# How can I start a Windows Service from A Web Service?
Hi In my web application I got a webservice that start the windows service Using the ServiceController when I debug my projest and when I start my Win Service it runs with no errors using the ASP.NET Development Server, as soon as I put my Web Application to wwwroot folder for IIS when I start the Win Service I get the following error, Im using the same PC. System.InvalidOperationException: Cannot open iBaseService service on computer '.'. ---> System.ComponentModel.Win32Exception: Access is denied --- End of inner exception stack trace --- at System.ServiceProcess.ServiceController.GetServiceHandle(Int32 desiredAccess) at System.ServiceProcess.ServiceController.Start(String[] args) at System.ServiceProcess.ServiceController.Start ...Show All
Visual Basic Type conversion problem
I'm using the .NET framework v1.1 and dominantly C#, but am having a problem with some VB code. First of all, I have a type: public class Field { object _fieldValue; private object FieldValue { get { return _fieldValue; } set { _fieldValue = value; } } public static implicit operator Field(string fromRawString) { Field untypedField = new Field(); untypedField.FieldValue = fromRawString; return untypedField; } } (Compiled using "csc /target:library MyType.cs") I then write a program to use this type: public class Klass { public static void Main() { string s = "Hello World"; Field f = s; } } (Compiled using "csc /r:MyType.dll MyProg.cs") I then write a similar program to use thi ...Show All
Visual Studio Team System Excluding projects from team build
I have a solution consisting of the following projects: 1. A web site project 2. Unit test project for testing the asp.net web project 3. A web setup project for deploying the web site VSTS Team build is attempting to build the unit test project as well even though I have un-checked the tick box against the test project in the Configuration Manager. How do I configure the TfsBuild.proj to exclude the unit test project from being build Does it have an ExcludeProject or ExcludeTarget option Thanks, Prashanth Prashanth, You will need to modify your build configuration at the solution level and then either create a new Team Build or update your existing Team Build's TFSBuild.proj file. To update the b ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Skinned mesh shadow volume
Using the DX9 "Shadow Volume" sample from the SDK as a base, I tried to generate a shadow mesh from a skinned mesh, but the bone indices do not seem to be copied into the newly created shadow mesh. The only alterations I made were changing some structs to conserve the bone indices, which now look like this: struct SKINNEDSHADOWVERT { D3DXVECTOR3 Position; D3DXVECTOR3 Normal; signed short BoneIndices[4]; const static D3DVERTEXELEMENT9 Decl[4]; }; const D3DVERTEXELEMENT9 SKINNEDSHADOWVERT::Decl[4] = { { 0, 0, D3DDECLTYPE_FLOAT3, D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_POSITION, 0 }, { 0, 12, D3DDECLTYPE_FLOAT3, D3DDECLMETHOD_DEFAULT, D3DDECLUSAGE_NORMAL, 0 }, { 0, 24, D3DDECLTYPE_SHORT4, ...Show All
SQL Server Assembly: returning "Globals!ReportName" but letting RS see it as code, not text?
I'm trying to make a reusable header function. In it, there is the report name and a couple other bits of info. The problem is making RS use the real report name If I return "Globals!ReportName" in an assembly function, then call that function, I get that exact text - but what I really want is the report name. I understand what it's doing, but how to I trick it: Is there some way to make RS aware of the fact that this is meant to be seen as something it needs to evaluate rather than just displaying the actual text If you mean in the .net assembly, I just tried it and no luck, but thanks. It seems any text returned is taken to be literal, not code. I even tried something like {Globals!Report ...Show All
Windows Forms Multiple executables delivered through 1 ClickOnce?
I have a solution which contains multiple executables, a widget player, a widget designer and others. My prior MSI allowed the user to run one msi and all executables would be installed with appropriate links in Start->All Programs->MyApp folder. I would like to do the same with ClickOnce. Is this possible If so, how It is very possible however because of the... simplicity of ClickOnce it's not as obvious as we'd think or like. First you'll need to add your other executables to the project that will be deployed and set their build type to content. Next you'll want to head into your projects properties page and from the Publish tab select the Application FIles button. From the provided dialog ...Show All
Software Development for Windows Vista INSTALLATION ERROR
Content of log files, [07/24/06,14:20:30] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603 [07/24/06,14:20:49] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.0 - was not attempted to be installed. Thanks. I passed it on to the owner of the .NET Framework install, and he'll get back to you. ...Show All
Visual C# How can start and stop the threads [Parameterized thread]?
Hi, I would like to know the threading concept and How to start and stop the threading in C# application. Please help. Hi, Prabu That's all about the other classes in System.Threading issues, please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources. And static method Thread.Sleep is not affected in .NET2.0. More details about System.Threading: http://msdn2.microsoft.com/en-us/library/system.threading.aspx Thank you BR ...Show All
Visual C# Printing Options C#
Hi, Having searched the web without a conclusive answer I hope someone can advise. I need to print an already created word document and at the same time set the printer name, tray, page orientation etc... for the printer the document is to be printed to. I have used System.Diagnostics.Process... however this does not seem to allow the setting of the various printer items mentioned above. System.Drawing.Printing does allow the setting of all these items but does not seem to allow the printing of an already existing document. Microsoft.Office.Interop.Word seems to allow the setting of some of the printer settings but in a slightly different format (eg: set the tray for page one or all the rest of the pages is not quite what I ...Show All
Visual Studio Express Editions Debbuger Failing to initiate
I have recently downloaded the C# Express since I heard it was free and I've always wanted to learn this language, but I can't seem to run my projects because the debbuger always fails to start with an error. Since I am Brazilian, the error is in Portuguese, but in English it should sound on the lines of "Invalid Linker Identifier". I have been searching all over the net and msdn help on how to solve this and I've been totally unsuccessful on it. I am pretty sure it is some simple misconfiguration o' mine, but I haven't the least idea of where to start looking for it. Any help would be appreciated. Thanks in advance. You must disable the 'enable visual studio process hoster" option on debug t ...Show All
Visual Basic Unexpected effect when closing a form
Hello all, I am developing a project that has several forms all globally visible: Public hndlToForm1 As frmForm1 Public hndlToForm2 As frmForm2 and so on. When switching from Form 1 to Form 2 for example, I want only form 2 to be open, so I use the following code: hndlToForm2 = New frmForm2 hndlToForm2.Show() hndlToForm1.Close() At this point my impression is hndlToForm2 points to an instance of Form 2 and, thanks to hndlToForm1.Close(), hndlToForm1 is NOTHING; however as I am debugging my code, that is not the case. Despite using hndlToForm1.Close(), hndlToForm1 is not NOTHING, the debugger shows. My questions follow: 1. Does this mean that hndlToForm1.Close() has not freed up the memory used by hndlT ...Show All
