laiseng's Q&A profile
Visual Studio Team System Profile Fails
Problem: 1. Create a simple project. e.g. namespace profiletest { class Program { static void Main( string [] args) { for ( int i = 0; i < 100000; i++) { Console .Write( "." ); } } } } 2. Create and exectued a profile session. 3. Everything runs fine, but upon completion of the process I get the following error: Performance report c:\profiletest\profiletest060811.vsp contains no data The file profiletest060811.vsp exists and is 212 KB long, but Visual Studio will not display anything after the error. If I run the exact same project on a different computer it profies without any problems. I formatted my hard drive and reinstalled Windows ...Show All
SQL Server Need debugging help--stored procedure to move database objects
Hi all--I'm adapting a stored procedure to work on transferring SQL Server 2005 tables and other objects owned under the dbo schema on a database to another non-dbo schema. Given that, I'm trying to use an "if...else" to prevent dbo-owned stored procedures and tables like dtproperties from moving with the rest of the objects to the non-dbo schema. Here's the code: if exists ( select * from sys.objects where object_id = object_id ( N '[dbo].[chObjOwner]' ) and OBJECTPROPERTY ( object_id , N 'IsProcedure' ) = 1 ) drop procedure [dbo] . [chObjOwner] GO SET QUOTED_IDENTIFIER OFF SET ANSI_NULLS ON GO CREATE proc chObjOwner ( @usrName varchar ( 20 ), @newUsrName varchar ( 50 )) a ...Show All
.NET Development I want to program multi-language winform software with C# and xml. how can I do
the following is my code, use xml file as language package. but when I run it, button's text didn't change. what do I need to config namespace mulLan { public partial class Demo : Form { public Demo() { InitializeComponent(); } /*********************** derrick language *****************/ //read default language public static string ReadDefaultLanguage() { XmlReader reader = new XmlTextReader("resources/LanguageDefine.xml"); XmlDocument doc = new XmlDocument(); doc.Load(reader); XmlNode root = doc.DocumentElement; //select DefaultLangugae node XmlNode node = root.SelectSingleNode("DefaultLanguage"); string result = node.Value; ...Show All
SQL Server Merge Replication not replicating updates
I have an issue that is only occurring in a production environment. The architecture is filtered merge replication between two SQL Server 2000 SP4 databases. The publisher is standard edition and the subscriber is personal edition. The issue is that is I update certain rows on the subscriber the data is not replicated to the publisher. Inserts and deletes seem to replicate correctly. The issue is specific to certain rows in some tables. If I update other rows the updates replicate correctly. The subscription has been re-initialized once and it did not fix the issue. The replication process indicates that there was not data to merge and the subscriber updates remain and are at that point different form the publisher row values af ...Show All
Visual Basic Multithreading cancellation Methode
Hi All, Lately I explore about multi threading,because there is a urgent need to implement this feature.I came up with a case of multi threading cancellation. There is two kind of multi threading we have. 1. threading in the program itself. ex. Private Sub Worker_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles Worker.DoWork Dim intI As Integer Dim intJ As Integer Dim intK As Integer Dim counter As Integer For intI = 1 To 20 For intJ = 1 To 20 For intK = 1 To 20 counter = counter + 1 'DO SOMETHING HERE Next Worker.ReportProgress(counter / 8000 * 100) Next Next End Su b 2. threading t ...Show All
Visual Studio 2008 (Pre-release) Next .Net 3.0 release date, Orcas- When?
I was wondering if there is another .Net 3.0 release will be coinciding with the projected RC1 release of Vista in the next couple of weeks, and if we should expect a .Net 3.0 RTM at the same time Vista is at the RTM stage. On a side note, although we're all very grateful to have Visual Studio 2005, has anyone heard when we will have complete visual tools for WPF development The current offering isn't of much use! Thanks in advance, Josh I think a visual Studio Add-in based on Expression Interactive Designer should be a very good thing (as ID is far more advanced than Cider, and far more stable and powerfull). However, EID is not yet perfect. I encountered some issues like disordonned xaml generati ...Show All
Visual Studio Team System Create work items using TFS API?
Hi, I'm trying to import all of our bugs from Bugzilla to TFS. I'm able to pull the data out of Bugzilla's MySQL DB just fine using C#, but how do I use the TFS API to import these bugs I downloaded the TFS SDK and read through some samples, but they seem overly complicated. Can someone please post a very simple example in C# on how to create one work item Bug in TFS I can then take it from there. I need to be referencing Microsoft.TeamFoundation.Client and Microsoft.TeamFoundation.WorkItemTracking.Client correct Thanks, Ethan Thanks. Now I am getting this exception on the workItem.Save() line: TF26201: This work item has unsupported fields, or user does not have permissions. I am assuming that this h ...Show All
Game Technologies: DirectX, XNA, XACT, etc. By the numbers - why so big?
My content, using JPG's, is roughly 14.4 MB. However, the XNB version is roughly 515 MB. About 38 times bigger than the original. Is this normal What steps do I need to take to reduce the size of this I'm just begining with my development but if I can't augment this behavior of the Framework I'll have to serverly strip down my game. Maybe, I'll have to replace Content<T> altogether ( ) Power of 2 is not the problem I guess I could go monochrome And that would eliminate item 3. Since when is an 8kb image large The issue at hand is that the framework is magnifying it 32 times. Microsoft already has the code written to read, write, and modify images in numerous formats. JPG is just one of the many that ...Show All
Smart Device Development not a valid Windows CE SETUP file
Hello, I try to debug an application - Visual Studio 2005, C#, .NET2.0 - on a DataLogic Jet running WinCE.NET Version 4.20 (not Second Edition). I installed .NET CF2.0 SP1. Debugging starts with deploying System_SR_enu_WM.CAB. This fails with ".. not a valid Windows CE Setup file". I tried to install in manually, which failed with same message. Debugging works but I there occurs an error in calling a web service. error.message does not contain information about the error. How can I install System_SR_enu_WM.CAB on this device Thanks for help. Jorg System_SR_en_wm.cab is for Windows Mobile 5.0 only, it can't be installed on anything else. There's System_SR_en.cab which you should u ...Show All
SQL Server Service broker on the same database.
I'm trying to create a service broker on the same database...with one service and one queue. But my queue ends up with nothing in it. Here is the source...what's wrong Alter Database adventureworks set ENABLE_BROKER ; ALTER AUTHORIZATION ON DATABASE :: [adventureworks] TO [SA] ; create master key encryption by password = 'P@SSw0Rds' ; CREATE MESSAGE TYPE CreateQBLetters VALIDATION = NONE CREATE MESSAGE TYPE LetterResponse VALIDATION = NONE CREATE CONTRACT BuildQBLetters ( CreateQBLetters SENT BY INITIATOR , LetterResponse SENT BY TARGET ) CREATE QUEUE BuildLettersQueue with status = on CREATE SERVICE CreateQBLetters ON QUEUE BuildLettersQueue -- At ...Show All
SQL Server A transport-level error has occurred when receiving results from the server.(provider:TCP Provider,error:0-The handle is inv
Hi, I am using SQL Server 2005, while trying to retrieve data from the database; I am getting the following error: A transport-level error has occurred when receiving results from the server. (Provider: TCP Provider, error: 0 - The handle is invalid .) But I am getting this error randomly. Can some one help me out Waiting for your response Sudhakar Hi Sudhakar Please can you be a little more specific. Are you getting this error in SQL Query Analyzer Are you getting this from some sort of Access or .NET front end application Or is it from an ASP application if you provide a little more info im sure we can work this out. Barry ...Show All
Visual C++ In vc2005, How can add Mappoint control to my project, do i need to download a Mappoint control and register it ,is it a Active
In vc2005, How can add Mappoint control to my project, do i need to download a Mappoint control and register it ,is it a ActiveX control You can use the #import statement to create a wrapper for the ActiveX control by the compiler. Read about the #import statement in the MSDN. http://msdn2.microsoft.com/en-us/library/8etzzkb6.aspx http://msdn2.microsoft.com/en-us/library/h31ekh7e.aspx ...Show All
Visual Basic array help
I need help with an array. i have an excel spreadsheet that I'm transferring to a datagrid for viewing and then loading that information into an access database. The one fuction I have takes over 10 minutes loading 2-columns of 7000+ lines into the database. I have 3 other excel spreadsheets that need loading also and will take to long for the whole process. Is there a way I can use an array to load the 7000+ lines into the database You can do all this in Excel VBA code and it will be a lot faster than your current method. VBA in Excel is almost exactly like VB6 except with the Excel objects predefined and it not being compiled to a binary. All you have to do is place your code in a template, load and run the template, select your ...Show All
Visual Studio Tools for Office How to Associate Custom Data with XMLNode object?
What is the best way of associating application-defined data with XMLNode objects Word's XMLNode object doesn't unfortunately have the Tag property (like many other Office objects), where I could store some data. Also I can't create a Dictionary, because XMLNode objects cannot be used as dictionary keys - they are obviously (like Range objects) volatile views of some opaque internal objects. In other words, (node1 is node2) can be false even if node1 and node2 are actually the same node in the source XML. Another option is to use what I call "paths", i.e. an array of integers where each element represents the index in the array of sibling nodes of the current parent node, recursively. This method would be great but it goes ...Show All
Visual Studio 2008 (Pre-release) What if i expose my implementation class as a service contract.
hi, i have a doubt regarding the contracts being exposed to the external world. Usually we expose a interface by marking it as a servicecontract with the operation contracts defined. What if i declare a normal implementation class as a service contract and the methods in it as operation contracts is it correct Thanks in advance. -Rajesh I just wanted to add a bit of clarification to TR's post. You can apply the [ServiceContract] and [OperationContract] attributes to a class rather than an interface. And TR is correct when he states that this is not the recommended approach. I wanted to comment about "sharing types rather than using svcutil." You cannot simply use a type in place o ...Show All
