Datawizard's Q&A profile
Software Development for Windows Vista Error when using SqlWorkflowPersistenceService
Hi Can someone explain why I keep getting the following error when I use SqlWorkflowPersistenceService - "Could not find stored procedure 'RetrieveNonblockingInstanceStateIds'." Where can I get this Procedure and where is it exactly being called Please help!!! Hi, Has the SQL Persistence data been created (required Sql 2000 SP4 or SQL 2005 Express or higher If so, then check to be sure the connection strings are correct. If not, I was able to create the needed database from the Hands On Labs - download them from the main windowsworkflow.net site, extract the contents and you'll find C ...Show All
.NET Development why does passing by ref change result of Type.IsGenericType?
Hi - the following code outputs: dictionary True dictionaryByRef False I would have expected both parameterTypes to return true for IsGenericType. What gives cheers, colin using System; using System.Reflection; using System.Collections.Generic; namespace AnotherTest { class TestType { public void EatDictionaries( Dictionary < Int32 , String > dictionary, ref Dictionary < Int32 , String > dictionaryByRef) { } } class MainClass { public static void Main( String [] args){ Type testType = Type .GetType( "AnotherTest.TestType" ); M ...Show All
Visual Studio Express Editions Global variables (ish) in C#
in Visual C#, how do you declare a variable so that is visible to any form in my project I used the following code to make an object called myRegistry that can be used to save settings in the correct place: Microsoft.Win32.RegistryKey myRegistry = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("software").CreateSubKey("RockGem"); What would I have to do so that i declare this once and then am able to use it in any form i add to my project Is this even possible Thanks, -Javawag sorry, i didn't red your post to deeply. indeed it is not a good idea to use registry keys this way. ...Show All
SQL Server SQL Express license for hosting
Can SQL Express used in a web hosting scenarion... Does that require any extra license or is free Yes. SQL Express can be used in web hosting scenarios with no extra licences required as long as SQL Express is not connecting to a higher SQL Server Edition. ...Show All
Software Development for Windows Vista Does anyone know how to get WF working with WSS Event Handlers?
I am trying to get a workflow instance to run from a Windows Sharepoint Services document library event handler. The problem I am encountering is that you can only run one instance of the WorkflowRuntime per appdomain - WSS events all seem to run in a single appdomain, so if I call the WSS event handler more than once, it crashes out with an error. I haven't been able to figure out a way to locate and re-use the exising instance. Ideally I'd like to use the instance of WorkflowRunTime loaded into IIS (in the same way that you would for an ASP app), but WorkflowRequestContext .Current.WorkflowRuntime doesn't work from ...Show All
Visual Basic what is the instead of sub main? in 2005
I have built my application my application need first to check if some configuration have been done then go to form2 else go to form1 how can I do this without disable framework options to use sub main!! what I did now is make form1 as start up abd then set it hide=true ...etc is there another soltuion Open the code to main form. type in public sub new() and press enter It should auto fill the rest. Put your code after the initcontrols call. ...Show All
SQL Server Exporting a Cube into MS Excel
Hello, I am wondering if it is possible to import hierarchies established in a SSAS 2005 cube into MS Excel. Right now, when I import a cube into MS Excel (Office 2003) through the following path in Excel: Data/Import External Data/New Database Query/Olap Cubes/"MyCube".cube, I am able to see cube's dimensions and measures but I cannot see my hiearchies. I would like my users to be able to drill down to the lowest level in a given hierarchy , the same way it works in a Cube Browser in BI Studio. Can it be done Any thoughts about it would be greatly appreciated. Thanks a lot! Hi. There shouldn't ...Show All
SQL Server How would you archive a subset of your db if you had to?
I have a database with 6 tables that are all joined together in one way or another. At certain points in time I want to take a subset of the records in one table(based on a criteria in that table) and 'catalog' them somehow along with the related records in the other tables. It's somewhat hard to explain. I want to preserve a point in time in the db so that at a later point in time I can reinstate the records as they were in the past. Is this even possible I thought one way to do it would be to create a view(with all 6 tables) that accepts a parameter and then exports all of the records that are returned into another table. Not sure how I wo ...Show All
SQL Server What version of SQL can I install for XP where I can use the enterprise manager???
Hello Everybody, I would like to know which version of sql server I could install locally in my personal laptop where i can create new databases and use the enterprise manager Thanks for suggestions, Ed. You can install both SQL2K and SQL2K5 on XP. Enterprise Manager will only work against SQL 2000. If you want to manage both SQL 2000 and 2005 use the SQL Server Management Studio. This comes with SQL 2005. ...Show All
Visual Studio 2008 (Pre-release) ElementName does not work on derived UserControls?
I used the sample http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=96651&SiteID=1 of Beatriz, where a slider changes the LayoutTransform of a TreeView. The only thing i changed was that i use "UserTreeView" instead of TreeView. Whereas UserTreeView ist derived from TreeView. Here is the exception: Cannot find source for binding with reference 'ElementName=slider'. BindingExpression:Path='Value'; DataItem=''null''; target element is 'UserTreeView (Name='tree')'; target property is 'LayoutTransform' (type 'Transform'); Is this a bug Or is anything wrong. Hi Roland ...Show All
Windows Forms ListBox and Resource Files
I am trying to figure out a way to use resource files to populate a ListBox or ComboBox. The problem that I am having is that only 1 of the items in the resource file populate the ListBox. Here is what I am doing: ' Create a ResXResourceReader for the file items.resx. Dim rsxr As ResXResourceReader ...Show All
Visual Studio Team System Permissions bug?
Scenario: userAdmin is a member of [SERVER]\Team Foundation Administrators userAdmin is also a member of [SERVER]\DevTeam [SERVER]\DevTeam have the following permissions (nothing derived): Access source control Create a workspace Fire events View server level info View system sync info Creating a Team project Now, creating a new team project logged in as userAdmin fails: User userAdmin needs the AdminConfiguration global permission(s). Workaround Add the following permission to [SERVER]\DevTeam: Edit server level info Bug Is this intended If userAdmin is a member of [SERVER]\Team Foundation Administrators, shoulden't this override th ...Show All
Visual C# Abstract methods and cannot declare body.
I just wanted to confirm my understanding that there's no way to implement an abstract class with a method that must be overrriden but also provides a method body in the abstract class. e.g. the equivilant of a pure virtual method with a body in C++. i.e. the only way to force a derived class to override a method is with the "abstract" keyword on the method declaration. correct - or of course use an interface ...Show All
Visual Studio Get callers of the function
In Visual Studio 2005 there is one interesting thing Call Browser. It can show all functions that call selected function (menu Call Browser -> Show callers graph). I wonder can I get the functionality like this from my add-in Is it any interface or method that can retrieve all functions that calls the function I selected You probably want to look at the topic "Supporting Symbol-Browsing Tools" in the latest sdk help. You might also be interested in an archive thread about this that Ed wrote, that is available at: http://www.codecomments.com/archive358-2005-9-577727.html In a nutshell, the ...Show All
Visual Studio Team System TFS Security
If I add "Domain\Domain Users" group to "Project\Contributors" then domain users ("Domain\User1") cannot access TFS. If I add "Domain\User1" to "Project\Contributors" group then everything works. Is this by design or a bug The Beta 3 refresh code has a problem detecting group membership if the group is set as the user's primary group. By default, all users have the Domain Users group set as their primary group, so the Beta 3 refresh code thinks that the Domain Users group has no members. The workaround is to create another group in Active Directory, and add the users to it. This problem is ...Show All
