vsts2008

ADO.Net DataReader timeout issue

Hello everyone, I am using ADO.Net + C# + VSTS 2008 + ADO.Net to connect to SQL Server 2008 Enterprise. I am using almost the same pattern/sample mentioned here -- using ADO.Net DataReader to retrieve data one entry (row) by one entry (row). http://msdn.microsoft.com/en-us/library/haa3afyz.aspx My question is, if I set the SqlCommand ...

"invalid XPath expression" error in Visual Studio 2008 TS

I'm learning XSLT via "Beginning XSLT 2.0 From Novice to Professional". Following the source code from the book, I've tried to compile this in Visual Studio 2008 TS: <xsl:template match="Program"> <div> <p> <xsl:if test="@flag"> <img src="{if (@flag = 'favorite') then 'favorite' else 'interest'}.gif" al...

WebClient upload file issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to develop a console application to upload a file to server. For the WebClient.UploadProgressChanged Event, I am wondering what is the rule when this event will be raised? I read the below document but find no accurate information (like will be raised 10 times during upload or somethi...

VisualStudio.TestTools.WebTesting.TestDescriptionAttribute Syntax

What is the syntax to use the [TestDescriptionAttribute][1] of a test to populate the Description column in the Test Results window? Context: Visual Studio 2008 Team System I've read the documentation, but am not able to find a concrete example. Based, loosely, on Ngu's suggestion, I've tried: using GlobalSim; using Microsoft.Visual...

open source instant messenger?

Hello everyone, I am using VSTS 2008 + ASP.Net + Forms Authentication + .Net 3.5 + IIS 7.0 + C# to develop a Web Application. I want to add web based instant messenging feature to my web application (using Forms authentication), I just need very basic features, like text based message, user presence status, etc. I want to know whether ...

why my WebClient upload file code hangs?

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 + ASP.Net + IIS 7.0 to develop a Windows Forms application at client side to upload a file, and at server side I receive this file using an aspx file. I find my client side application will hang after click the button to trigger upload event. Any ideas what is wrong and how to solve?...

Is there a way to run unit tests sequentially with MSTests?

I am working in an application that is mostly single-thread, single user. There are a few worker threads here and there, and they are only using thread safe objects and classes. The unit tests are actually testing those with multiple threads (explicitly created for the tests), and they test fine. The VSTS unit tests fail when testing bu...

GDR - deploying multiple database targets with one project

I'm using Visual Studio Team System 2008 with GDR Version 9.1.40413.00 and am trying to resolve the issue of deploying a single DB project to multiple databases. For instance if I have a Performance.DB project I would like to deploy databases called Performance, Performance2, Performance3 etc. However it seems if you go to the properti...

Automatic run of VSTS web tests daily

Hello, Please I want a way to make daily schedule to run a set of VSTS 2008 web tests automatically over night. Your help will be appreciated. Wael ...

send the VSTS 2008 test results by email

Can I send the VSTS 2008 test results by email automatically after test run? ...

network connection capability is not fully used, why?

Hello everyone, I am using the following code to try to test whether network consumption (monitored from network tab of task manager) will increase if I increase the concurrent connection number (i.e. the ClientCount application configuration value). But I find even if I increase client count from 100 to 500, the network consumption is ...

deep zoom image drag-and-drop issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to develop Silverlight 3 application using deep zoom. We could use mouse to drag and drop and image. But the image may be dragged out of the viewport area, which makes the viewport area empty -- causing bad user experience. Any ideas how to implement a solution to prevent from draggin...

XML file conversion issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to conversion the below input XML file into destination format. There may be arbitrary number of Image elements. And the new Price information is provided in List. Any quick way to implement the conversion function? source format, <?xml version="1.0"?> <Metadata version="1"> <Own...

Problem with load testing Web Service - VSTS 2008

Hello, I have a webtest with makes a simple call to a WebService which looks like that: MyWebService webService = new MyWebService(); webService.Timeout = 180000; webService.myMethod(); I am not using ThinkTimes, also the Run Duration is set to 5 minutes. When I ran this test simulating only 1 user, I check the counters and I found...

SQL Server connection issue

Hello everyone, I am using VSTS 2008 + .Net 3.5 + C# + SQL Server 2008 Enterprise on Windows Server 2003. I am using the following connection string, and labtest1 is the local machine name and I connect from local machine using ADO.Net. Then it always fail with connection error. But when I change in the connection string from "labtest1"...

C++ RPC tutorial?

Hello everyone, I want to learn programming C++ (native) on Windows platform for RPC communication. I want to learn both server and client side. I also want to learn some advanced topics, like performance and security. Any good recommended materials to read? (BTW: I Googled a few, but all of them either too brief or COM related, I wan...

SQL Server communication protocol issue

Hello everyone, I am using VSTS 2008 + C# + ADO.Net + SQL Server 2008. My questions about what kinds of communication protocols SQL Server 2008 will be using, more details of my questions, If the connection string looks like this, whether Named Pipe or TCP/IP is used? Will different communication protocol being used dependent on wheth...

sending Http request error (Http 503) in C#

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to develop a console application and I send request to another server (IIS 7.0 on Windows Server 2008). I find when the # of request threads are big, the IIS 7.0 will response with http 503 error. Any ideas what is wrong and how to tune to make IIS 7.0 serve more requests? Here is my...

Http request timeout issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to develop a console application and I send request to another server (IIS 7.0 on Windows Server 2008). Here is my code. My question is, as in my code, I use a while loop to read chunks by chunk from server. The timeout request.Timeout = Timeout * 1000 is responsible for (1) timeout f...

"Unable to connect to remote server fail" in HttpWebRequest

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to develop a console application and I send request to another server (IIS 7.0 on Windows Server 2008). I find when the # of request threads are big (e.g. 2000 threads), the client will receive error "Unable to connect to remote server fail" when invoking response = (HttpWebResponse)r...