vsts2008

vs 2008 c# app won't run on win vista

hi i have written app on vs2008 c# (express edition) on win XP which reads and creates excel files (excel 2003) using microsoft excel 11.0 object library (because that's the only available one through add references in COM section)... now i publish this project, then copy the setup.exe and take it to my friend's win vista machine, setup ...

C# list file in directory issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.0. I want to enumerate all files in a directory by creation time, i.e. files created more recently will be enumarate at first, files created for a long time (older) will be enumerated at last. Any ideas how to implment this? thanks in advance, George ...

C# MD5 calculation issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.0. I want to find the most efficient way to calculate the MD5 result for the whole content of a txt file. What is the most efficient solution? thanks in advance, George ...

WebTesting using VSTS 2008

I've been trying to create and execute webtests for one of my websites using VSTS 2008 SP1. The problem is that during playback VSTS does not play back the javascript. How can i solve this and where can I find comprehensive information on configuring VSTS to do web tests exactly as i want. ...

WCF security issue in Silverlight

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 + Silverlight 3.0. I host a WCF service in IIS 7.0. My question is, besides using https + basicHttpBinding, are there any other security solutions? I want to find a security solution which does not need certificate on server side. I am not sure whether message security works without c...

https certificate issue

Hello everyone, I need to use some certificate on IIS 7.0 web server to test my https code at client side (console application). I have created self-signed certificate and it is fine. Now I want to test with formal certificate which IE could recognize, like certificates from verisign or other formal certificate issuing companies. Any e...

IIS http request authentication issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 + IIS 7.0 + ASP.Net. I have two IIS web site, site A and site B. When user request url http://sitea/abc.aspx, my ASP.Net code handler will authenticate user (using Forms authentication), and if authenticaiton passed, I will redirect user to http://siteb/bcd.aspx. My current issue is,...

ASP.Net session issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 + IIS 7.0 + ASP.Net. I am wondering if I have both aspx page and html page in my web site, will session variable be transferred only in aspx page? Or session could be transferred in both aspx and html page? (transfer I mean user click link inside my web site to traverse through my sit...

reading USB Flash disk issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 + IIS 7.0 + ASP.Net. I am using Silverlight 3.0 as well. I want to read the content of USB Flash disk at client side, the using the information in the USB Flash disk as user profile identifier -- just like online bank service is using USB key to store client certificate (but my securi...

can we lock a directory?

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to develop a console application. For file access, we can access file in exclusive mode which blocks other process/thread from access the file -- which has the effect of "lock" the file. I am wondering for directory, are there any built-in API or solution to make the directory exclus...

file enumerate issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to develop a console application. I need to enumerate the most recent 50 files in current folder (to read file content, to get file meta data like file name, creation time, etc.). Since the current folder has about 5,000 files, and if I use Directory.GetFiles API, all 5,000 files' met...

.Net based open source search engine?

Hello eveyone, I am looking for an easy to use, maintain and extensible search engine (intranet, enterprise search engine) based on .Net technologies, better open source which is more capable of extension. Just similar to Apache Lucene and Apache Solr. I want to search html page only. I tried Microsoft Search Server and find it is not ...

.Net based web crawler sample

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5. I want to find a tool (open source) which crawls all web pages for a web site, and for any other domain pages which is linked by this web site, I want to skip to crawl them (I only need page for this specific domain only). For crawled web page, I want to store them into local file di...

How to get real code coverage using vsinstr/vsperfmon

Hi, my microsoft-based development environment looks like this: - huge native c++ codebase, seperated into 10 projects - each project has a dependent test project (GoogleTest unit tests), the sources to test are simply referenced. I generated the coverage-report using vsinstr and vsperfmon (the visual studio tools for instrumenting/...

authentication issue of IIS 6.0

Hello everyone, I am using Windows Server 2003 + VSTS 2008 + .Net 3.5 + C# + ASP.Net + IIS 6.0. I host some files (wmv video file and html file) on the web server, I want to know whether there are any easy to use authentication approach to let user input username and password before they can access (I want to prevent anonymous access)? ...

why Windows Service crash?

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to develop a Windows Service application. The code is very simple below, and I find when File.Copy throws exception (e.g. path not valid, no permission, etc.), the service will crash and pop-up a dialog to let me debug. My confusion is, I think unhandled exception of a thread created ...

Create subfolders in Team Queries in VSTS 2008 using Team Explorer or Web Access

Is there a way to create subfolders in the Team queries in VSTS 2008 using Team Explorer or Web Access or command line tool? I would like to put the queries in different categories, one per team of developers. Thanks, Damian ...

VSTS Test Edition or HP's LoadRunner?

I have had this debate with some peers off and on for a while. I am certified in the HP tools, but have been spending more and more time with VSTS Test Edition 2008. I am looking for opinions on what people think of the future of both products and how they compete. LoadRunner's strengths include its vast array of protocols supported. ...

What "Gotchas" are should I look out for migrating from VS Pro to VSTS?

I recently got a copy of Visual Studio Team System Suite 2008. I am currently running Visual Studio Professional 2008. I am sure others have done this migration in the past. What problems, if any, did you encounter? Should I first uninstall Pro? What about existing add-ons, Code Rush, GhostDoc etc? Do I need to uninstall these? W...

WebClient.UploadProgressChanged Event issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to develop a console application to upload a file to server. I want to show upload progress. I want to use WebClient.UploadProgressChanged Event, but confused about its function -- "Occurs when an asynchronous upload operation successfully transfers some or all of the data." My confus...