Answer Questions
refaeldakar Following item failed to download
Setup has stopped because the item listed above could not be downloaded... It dows that trying to install any Visual Studio Product. I have seen several problems like this, Make sure that your Virus or security systems allows the files to be downloaded... If that fails follow the manual instal procedures and download the CD Image files and install from the CD. The problem you are having could be that your security systems on you network or Machine are stopping some of the internal download, or the network connection that you have is dropping to many packets and the install fails. Downloading the image will or should allow you to continue. This has happened to me too. The line says the sa ...Show All
Rajesh batchu How to count the diff like line added, line deleted and line modified in TFS.
In my project , I need to count the line added, deleted and modified between the different Version. I know the Tf.exe and the code churn report, but the TF.exe have no summary, and the code churn count the changement every check in. for example, from version A to version B, we check in two times,the first add 5 line and the 2rd delete 2 line which is in the 5 line add by first time. so the code churn reports line added: 5 and line deleted: 2, but I need the difference between the A and B is Add 3 line . Do you have any idea of this, if you HAVE, please let me know. Your best bet will be to find a 3rd-party diff tool that has this feature. For example, Araxis Merge can generate reports like this: ...Show All
Zhen WEI Publish errors for prerequisite components
Hi, I use VB 2005 Express Edition to create and publish a project. In Project Designer - Publish page - Prerequisites Dialog Box, if check 'Download prerequisites from the component vendor's web site' and publish the project there's no problem. If check 'Download prerequisites from the same location as my application' and publish, there're errors as the following: "The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\instmsia.exe' in item '.NET Framework 2.0' can not be located on disk. See Help for more information." "The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\WindowsInstaller-KB893803-v2-x86.exe' ...Show All
leugim TF30170 error
Hi! I get the following error when trying to create a new Team project from my workstation with Team Explorer Error TF30170: The plugin Microsoft.ProjectCreationWizard.Portal failed during task SharePointPortal from group Portal. Explanation Plugin error text: “The server committed a protocol violation. Section=ResponseStatusLine” I can create new team projects directly from our TF server with my credentials... I can log on to the TF server from my client I can see all Team projects from my client I can access the portals of the projects etc The error log is here TFS version is the trial (RTM i think) What could be wrong BR John ...Show All
Cesar Francisco C# almost double as fast as VB.NET?
Check this out: C# code: using System; class SpectralNorm { // // // // Var Def // static DateTime startTime; static DateTime stopTime; static TimeSpan elapsedTime; static long elapsedMS; static void Main(String[] args) { startTime = DateTime.Now; int n = 1000; if (args.Length > 0) n = Int32.Parse(args[0]); Console.WriteLine("{0:f9}", new SpectralNorm().Approximate(n)); stopTime = DateTime.Now; elapsedTime = stopTime.Subtract(startTime); elapsedMS = (long)elapsedTime.TotalMilliseconds; Console.WriteLine("Elapsed Time: {0}", elapsedMS); Console.ReadLine(); } double Approximate(int n) { // create unit vector double[] u = new double[5000]; for (int i=0; i&l ...Show All
Ash8Fee Sample code for VB 2005 that does not work.
I am learning VB 2005 Express Edition with a sample in the class09 that is found in the MS web page. I am trying to save new records to the customer table but the records are not saved. This is what I am doing: I run the program. I add more records. With navigator I go back and I can see the new records. I close the program. I check the in database and the new records are not there. Seems like the records are saved in the DataSet but they are not saved in the table. The sample has the following code located in the click event of the Save button in the BindingNavigator object: Private Sub bindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) If Me.Validate Then M ...Show All
Re2Porter Problem Adding DLL to C# Project
Hi, I wrote a simple dll in C++. I am trying to add it to a new C# project but I get this: "A reference to... could no be added. This is a not valid assembly or COM component. Only assemblies with extension 'dll' and COM components can be referenced. Please make sure that the file is accessible , and that it is a valid assembly or COM component" The file I'm trying to add called: Worker_Class.dll Please help, what could be the problem Iram Your C++ dll is native and references can only be managed dlls (assemblies). You'll have to include your dll using interop. For example, if your dll exports a method like this: void Do_Work( void ); Then you'd write this ...Show All
JocularJoe Saving Entire Forms
How can I simply save an entire form in Visual Basic Express I have created two forms in in my project. One form asks the user to input information in text boxes. The other form simply reads the input in form1 and duplicates the user input. How do I then save form2 as it is Please help! I've been searching this answer for two days. I know it's probably right in front of me. I should have stated, my bad, to import these namespaces: Imports System.Xml Imports System.Xml.Serialization Imports System.IO at the very top of the Form class Looking at your code, you need to make some modifications. I will also modify my post to reflect the changes Public C ...Show All
zeroguitar Explorer in checked list box?
How do i get a checkedlistbox to show window files (like in windows explorer) thanks in advance. Real simple. Its easy to show in an example. this example will display a list of files in the current user My Documents folder. It uses the System.Io.Path.GetFilename to only show the filename rather than the full pathname. And uses the My.Computer.Filesystem.GetFiles to get a list of filenames. Simply iterate through this list and add to the checkedlistbox items collection. Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click For Each foundFile As String In My.Computer.FileSystem.GetFiles _ (My.Computer.FileSystem. ...Show All
anydobbo Code Coverage for User Controls
Is it possible to perform Code Coverage Analysis for User Controls in Visual Studio Team System. If Yes, do we need to do any thing different from that what is needed for normal Windows control Yes. It is indeed possible to perform code coverage for user controls. What I missed during my earlier analysis was that we need to add the assembly file for user control explicity in the code coverage artifact list. ...Show All
DMillerNCR Unit testing Web Services - Code coverage failing
Hi All, I'm having an issue with unit testing webservices from the command-line (works fine from within Visual Studio). I have a testrunconfig file that has codecoverage enabled for this test web service (the default hello world). The method I am testing is: [ WebMethod ] public string HelloWorld() { return "Hello World" ; } The code I am using for the testing (basically the auto generated code modified to actually test correctly) is: [ TestMethod (), AspNetDevelopmentServer ( "WebServicesTestServer" , "MyWebService" )] public void HelloWorldTest() { Directory target = new Directory (); if ( WebServiceHelper .TryUrlRedirection( ...Show All
Jupiter13 bacis progam problems
#include <iostream> using namespace std; int main() { int age; cout<<"Type a number between 1 and 10: "; cin>> age; cin.ignore(); if ( age < 10 ); { cout<<"Yay you can follow instructions\n"; } if ( age >= 11 ); { cout<<"were going to try this again and you going to do it right\n"; } for ( int x; age < 10; ); { cout<<"Type a number between 1 and 10: "; cin>> age; cin.ignore(); if ( age < 10 ); { cout<<"Yay you can follow instructions\n"; } if ( age > 10 ); { cout<<"w ...Show All
Ed209 Error relating to System Insufficient Buffer Space during a "Get Latest" operation
A co-worker got the following error message when attempting to "get latest" on a group of files: C:\cr\branded\TWS\help\webhelp.jar: Unable to read data from the transport connection: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. It appears as if the error only applies to the file indicated on the message. The "get latest" was performed successfully for all other files so it was not a network issue as one might suspect. How could this be explained Thanks, Maggie One possibility is that the client machine had too many concurrently connected sockets open. This article -- http://www.dispi.com/proxyp ...Show All
Zakamon HELP: Accidently deleted an important project and I need it back!
[Originally posted under Version Control but it was suggested I ask this over here because I might have a permission issue.] Hi all, Here is the deal. I was attempting to move a project in TeamSystem to another project. I had everything checked in and I had a copy on my hard drive. I deleted the project with TFSDeleteProject.exe and then went to create a new one but when I set up my new Workspace and started to add my source I found my source was no longer on my drive. Ok. So I started to freak because this was approx 3 months work for me. We have nightly backups but I had left the backup to my systems team and they only backed up the databases. So I created a new install of TeamSystem on another machine and restored the databa ...Show All
BortNE24 Starting with TS builds
Hello We have recently migrated all .NET projects from VisualSourceSafe to Team Foundation and we are quite happy with the results, so we are continuing in our path towards TS-TFS. The next step is builds. We currently use MSBuild scripts for developers and for automatic builds. I am trying to understand how to "migrate" these scripts to TFSBuild. I am very confused because I have seen that TFSBuild is based on MSBuild and that the TFSBuild.proj files generated in VS look exactly like MSBuild files, but nowhere is it explained how to "migrate" my current scripts to the new VSTS-TFS environment. It should be really simple if one tool is based on the other. I get the impression I'm missing something. Can you give ...Show All
