RossDempster's Q&A profile
Software Development for Windows Vista How to serialize xoml only workflows
I am creating workflows dynamically and serializing them with the XomlMarkupSerializer. My problem is that the x:Class attribute gets serialized. This attribute can not exist when performing xoml only activation. How can I tell the serializer not to write out this attribute I tried not setting the WorkflowMarkupSerializer.XClassProperty but this causes an exception to be thrown when loading the workflow. I assume it can be done by extending the XomlMarkupSerializer however I would prefer not to do this. Any suggestions I figured it out. I was using an example of designer hosting that was compiling the xoml as well as serializing it. When compiling it looked for the XClassProperty and attempted to find the type in an ITypeProvider s ...Show All
SQL Server Error: The task with the name "Data Flow Task" and the creation name "DTS.Pipeline.1" is not registered for use on this computer
Hi, I am trying to create a simple BI Application for SSIS. In Visual Studio 2005 I just get a Data Flow Task from the toolbar and add it to the project. When I double click it I get the following error: The task with the name "Data Flow Task" and the creation name "DTS.Pipeline.1" is not registered for use on this computer. Then when I try to delete it it gives this other error: Cannot remove the specified item because it was not found in the specified Collection. I am creating this application in an administrator account in this computer, so I doubt the problem is related to permissions. I am running SQL Server 2005 and Visual Studio 2005 in WinXP Tablet PC Edition. Any suggestions why this is ha ...Show All
Visual Studio Team System PVCS to TFS conversion?
Hello, we are currently working with the PVCS Version Manager and I want to migrate the data from our PVCS database into TFS because we want to use TFS in the near future. Is there any way to get the data to work in TFS Maybe with a third-party-tool I'm searching since 6 hours now and I can't find anything to do this. Regards Thomas I am evaluating the ComponentSoftware toolsand have found them to not be very robust. I am trying to leverage them in several test scenarios for migrating PVCS (via SVN) and Visual SourceSafe conversions and have had problems every step of the way. Only being able to interact with support via Email has slowed down the evaluation process considerably. Their is not cu ...Show All
SQL Server fn_virtualfilestats doesn't work
Hi everyone, Primary platform is Sql2k. I'm trying this sentence: SELECT * FROM::FN_VIRTUALFILESTATS and from our production server doesn't return results. Why the hell not However from other servers it returns data. Is needed to enable any feature for that Thanks for your time, No, both own the same. The same OS (2000 Advanced Server) and running with Sp3 Microsoft SQL Server 2000 - 8.00.760 (Intel X86) Dec 17 2002 14:22:05 Copyright (c) 1988-2003 Microsoft Corporation Enterprise Edition on Windows NT 5.0 (Build 2195: Service Pack 4) I'm totally stuck ...Show All
Internet Explorer Development How can I launch IE in protected mode from a high integrity process?
Hi All, I need to launch IE in protected mode from a high integrity process. I could launch IE with low IL using samples provided on MSDN, but its protected mode status is off. How can I launch IE in protected mode from a high integrity process Thanks, Mojo Hi Todd and Sarath, I don’t need to control navigation, just need to launch. I tried with IELaunchURL. The results in different cases are as follows. 1. Use IELaunchURL from a high integrity process Result: IE is launched with high integrity and protected mode is OFF. 2. Create a medium integrity process from a high integrity process, and try IELa ...Show All
Software Development for Windows Vista Problem with InstanceOwnershipDuration
hello everybody, I have a little problem with understanding the InstanceOwnershipDuration. For testing I have a sequential workflow with 2 Delay Activities; and I added SqlPersistencyService with a TimeSpan of the ownershipDuration for 0 seconds... My sequential workflow looks like: codeActivity => delayActivity for 5 seconds => codeActivity => delayActivity for 10 seconds SqlWorkflowPersistenceService persistence = new SqlWorkflowPersistenceService (connstr, true , new TimeSpan (0,0,0,0), new TimeSpan (0,0,0,2)); workflowRuntime.AddService(persistence); When I start the application, the second codeActivity repeats and never ends like a infinite loop... Why does it behave like this thank you in ...Show All
SQL Server Performance problem
Hi, MyTable : RowNum INT (IDENTITY) PageTitle NVARCHAR(MAX) DomainName VARCHAR(1000) Indexes : Primary key, clustered on RowNum Full Text index on PageTitle , Index on DomainName Data patterns : hundreds or thousands rows per each DomainName value When user performs search, the task is to present 1 entry per DomainName (despite the fact that hundreds of pages on the same site can contain the word). 10 entries per page are presented. Now it is implemented in the following way (using application): 1-st result : SELECT top 1 * FROM MyTable WHERE CONTAINS (PageTitle, '"word"') Let's say, 1st Domain was www.cnn.com 2-nd result : SELECT top 1 * FROM MyTable WHERE CONTAINS (PageTitle, '"word"') AND DamainName NOT IN ('www ...Show All
.NET Development dotnet 3.0 general question
I just installed the .net 3.0 sdk on my home computer with visual studio 2005. Does installing the framework have any effect on 2.0 projects Like will i have to say in visual studio what to compile under I'm confused about if there is a compile as 3.0 option, or if everything still compiles as 2.0. Also, if it is 2.0, what do you include to use new language features like var I'm confused about this and i also want to install it at work, but i don't want to mess up any of our projects. What about raw language enhancements then like for instance "var" Do you have to include a using statement or dll for them How does it know to include it ...Show All
Windows Forms Making a scrollable panel scroll with mousewheel just by hovering mouse
Hi, I have a particular problem with a possible solution and I am interested in hearing peoples opinions if it is the right way to go about it (or not ) Some applications I have come across, such as Firefox, will allow the user to scroll the document window just by hovering the mouse over the display area and using the mouse wheel. You don't have to focus / select the display area first. With Firefox, the address bar can have the focus and the keyboard input but you can still scroll the document. Contrasting with IE and Visual Studio, you have to click into the document area before it responds to mouse wheel messages. In my winforms app, I have a tab control with several scrollable tabpages as well as scrollable panels in ...Show All
Windows Forms Visual Studio 2005 View Form Designer
Let me explain the whole schenario-- I am using Win XP on my machine. I am developing one windows based appliction in Visual Studio 2005 with the third party controls used on my forms.I can run and open the designer on my machine easily. But when I try to open (especially, the form designer) the same application on my other machine it shows me the following error. However, I am able to run the application too but not able to view the form designer in the design mode. "An error occurred while parsing EntityName. Line 2, position 93." and then all XML lines.....as below------ at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderIm ...Show All
Visual Studio 2008 (Pre-release) Support for Group By, Having etc
How sophisticated are the query capabilities for LINQ. Can a SELECT includes Group Bys, Aggregate Functions, Having Clauses. I have a sophisticated query which runs within the MS Access query designer, but running the same query using .NET OleDb provider results in an error. The query uses joins to selects which have group by and aggregate functions in them. The error message says there is an error in the Syntax after the From clause. So I'm thinking to return result sets back to VB.NET and use LINQ to further process the data into the final result set. The other alternative is use a lot more code to massage the data into the final result set which is going to be nasty. LINQ includes a whole r ...Show All
Windows Live Developer Forums Coordinate for Map
Is it possible to get the corner coordinates for the viewable area of the map Google's Map provides a simple function that gives you those coordinates, does Virtual Earth have one as well Any help would be great. Thanks, Eric I use: var curr_width = 800; var curr_height = 600; alert(map.PixelToLatLong(0,0)); alert(map.PixelToLatLong(curr_width ,curr_height)); To get the topleft and bottomright co-ords. I allow resizing so my width and height change, use ordnary js functions to get current height and width. John ...Show All
Visual C# Saving Music Files
I have a Media Player that I made but I can't figure out the streaming involved with saving the music that is currently playing on the player. I can play music with my player but I can't save it. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; namespace Media_Player { public partial class Main : Form { public Main() { InitializeComponent(); } private void openMediaToolStripMenuItem_Click( object sender, EventArgs e) { openFileDialog1.ShowDialog(); WindowsMediaPlayer.URL = openFileDialog1.FileName; } private ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Integration into .Net
Is it possible that some time in the future, the XNA framework will be integrated into the .Net framework Or, if not that, at least being included with future versions of windows.. Future integration or ship vehicles for the XNA Framework haven't been decided at this time. The plan of record is that it is a stand alone product that is independent of the .NET Framework or Windows. ...Show All
SQL Server Need help to Create SSIS package to send mails
Hi All, I am new to SQL Server 2005, I need Help to create a SSIS package for the below taks, My task is Refer a Column [Status] in the Logtable which is used to maintain the logs for the running processes, When ever any Rows with the "FAIL" status in Status column occurs in the LogTable then get the Respective ErrorRowNumber and get the Details of the Error from other 2, 3 tables which will be a simple SQL statements, when you get the Error Details then mail these details to the given Email id. For this I need a help In creating a SSIS package which will continuously check the Status and if any FAIL status occurs then the Error details need to mail to mail id which are stored in the config files of SSIS package. ...Show All
