bob v's Q&A profile
Windows Forms Unistall icon on the program menu!
I wolud like to have an uninstall.exe generated with my setup project. My plan is to make a shortcut to it from the program menu. Or exactly, a shortcut to a .vbs-file on tne program menu. The .vbs-file is shuting down a service then it deleting a database the it deleting a odbc-connection then it will start the uninstall.exe. But I dont have any unistall.exe, how to create it and place it with the other files in the installation Yes! I only did this and added a shortcut to it from the start menu. msiexec /x {EB678418-F144-47E6-B2DB-7FEFA528B421} EB678418-F144-47E6-B2DB-7FEFA528B421 this is the product code of the installed package. ...Show All
Visual Studio Team System How to use admin user at TeamServer PC to unlock the file locked by other user at his PC?
For example: 1--Project Name: $OKProject/TTD 2--User Name: A, his PC is named A_PC, his workspace is named A_WorkSpace. His workspace local D:\OKProject at his PC . 3--He lock a file : TT.cs. 4--I, admin, my username : liujj, at Team Foundation Server PC, my workspace on the server pc is named liujjWorkSpace. My worksapce local E:\OKProject at ServerPC. 5--I must use ServerPC to unlock this file by Team Server Admin user. 6--I search 'unlock' on MSDN, find some ways, but when I use 'tf lock /lock:none /workspace:liujjWorkSpace E:\OKProject \TTD' command , that not succese. 7--I have try : If this file is locked by me and locked at TeamServer PC, this command is OK. 8--My Team Foundation Server is workgroup, not Dom ...Show All
Visual Studio Team System FxCop run "Out of Memory"
Hi all, when running FxCop on a Assembly sized over 8 MB, FxCop run "Out of Memory". Any ideas out there Thanks! Hubertus I have discussed this with my colleagues. Unfortunately, there is no possibility - it is too much is business logic in the assembly. ISorry, but many thanks for your support Regards Hubertus ...Show All
Visual C# ftpwebrequest
Hi, Why does FTPWebRequest throw an exception when you execute a GetResponse And more importantly can I turn it off. Surely I am getting the response to examine it and see what happened so I do not need and exception to tell me something was wrong as the response will contain any errors In all the examples I have seen for it no one uses a Try so I diligently went ahead and wrote code to manage using the response content; only to have exceptions throw my code out and have to reform the code and use Try to manage it. Beats me. Michael. For instance...I want to upload a file but FTPWebRequest does not provide a method of overwriting existing file automatically so as I want to give the use an opportunity to choose overwrite I sen ...Show All
Visual C# An unhandled exception of type 'System.StackOverflowException', how to handle this problem?
class CreateCage (simple code, not complete) // this.cButton.Location = new System.Drawing.Point(88, 168); this.cButton.Name = "cButton"; this.cButton.Size = new System.Drawing.Size(88, 23); this.cButton.TabIndex = 3; this.cButton.Text = "Create Cage"; cButton.Click += new System.EventHandler(cButton_click); fmhandler = new Form1(); private void cButton_click(Object sender, System.EventArgs e) { string temp = fmhandler.getCstring(); MessageBox.Show(temp); fmhandler.infotextBox.Text= temp; this.Hide(); } public int getNumber() { try { number = Convert.ToInt32(inputtextBox.Text); return number; } catch(FormatException) { MessageBox.Show("pls input integer"); return -1; ...Show All
Visual Studio Team System Problem with source control (Data is Null. This method or property cannot be called on Null values)
Hi, VS hangs up during project loading. Re-getting the project from source control does not help. VS installation does not help either :( The following error in the server's event log: Edit: it does not hang. After a few minutes in unfreezes and says 'look into your server event log'. the project is open as source-control ounbound. TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 6/26/2006 12:48:55 PM Machine: VSSERVER Application Domain: /LM/W3SVC/3/Root/VersionControl-1-127957963704837131 Assembly: Microsoft.TeamFoundation.Common, Version ...Show All
Visual C++ OpenMP vcomp.dll problem
Hi everyone, I have just bought and installed Visual Studio 2005 Pro, and I have a problem with its OpenMP support. I have been using the Beta 2 before, and wrote code that uses OpenMP. As you might know, vcomp.dll is required when using OpenMP. The files can be found inside some redist folder of VS 2005. So I copy this file to the executable folder, and try to start the exe. I get an error which says that it tries to load vcomp.dll wrong. However, I don't control the loading myself, so I assume this is a bug. Also it worked fine with the Beta. The Beta 2 vcomp.dll does work. But it causes some hang/lockup/deadlock somewhere, which didn't happen in the Beta. Does anyone know what I should do Is it possible that they shipped a wrong DLL fi ...Show All
Visual Studio Team System Permission ACE Feature Request - Create branch
We would like to limit where folks can create branches. It would be nice to have a "create branch" ACE. I would like to enforce that branches can only be created by developers in: $/proj/Branches/Developer $/proj/Branches/BugFix And project admins can also create branches in: $/proj/Branches/Release $/proj/Branches/Feature The implication is that *no one* can create a branch in or below: $/proj/Trunk Done. http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=181621 ...Show All
Visual Basic Problem with Singleton Code
I have a class that is invoked in multiple ways, but no matter how it is invoked, I only want one instance to exist at any one time. The class looks like this: [code langauage="VB"] Imports System.Threading Public Class SingletonClass Private Shared _mu As New Mutex Private Shared _instance As SingletonClass Public Shared ReadOnly Property GetInstance() As SingletonClass Get _mu.WaitOne() Try If _instance Is Nothing Then MsgBox("Creating New Instance of SingletonClass") _instance = New SingletonClass End If Finally ...Show All
SQL Server How to delete rows in tables...
I need to delete some rows in some of my tables after tranfering data from my OLTP to SQL database. Im using SQL 2000 I have tried with the following: Delete from fsalesinvoiceline Join dsalesinvoiceheader on Fsalesinvoiceline.salesid= dsalesinvoiceheader.salesid and Fsalesinvoiceline.company= dsalesinvoiceheader.company Where dsalesinvoiceheader.billtocustomerno=’INDTAST DEBITORNUMMER’ Go Delete from dsalesinvoiceheader Where dsalesinvoiceheader.billtocustomerno=’INDTAST DEBITORNUMMER’ I get the following error message: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'JOIN' What am I doing wrong /Soren D. Jensen ...Show All
Architecture Scalable Windows services
Hi, We have a WIndows Services app with the following layers: 1. DAL 2. BLL 3.Windows Service To give maximum scalability , availability and performance for this application, what are steps that we would need to take Is it recommended that the Windows Service application be load balanced Thanks. Lakshmi There is no one solution to give you "maximum" scalability, availability and performance it all depends on your usage scenarios - what are your specific goals in order for load balancing to work your logic sould be context-free (a.k.a. "stateless") and get all its context either on the call or from a database - is your application like that Arnon ...Show All
Visual C# Compiling Java code from C#.net
Hi, How can i compile java source code from C#.I should not use any .java file for compilation. Just i am writing java code in text area and whenever i click compile button, it need to compile from c# and if any errors it need show.Here i should not use VJ# compiler also. Please let me know the solution ASAP. Regards, Hanumanth Reddy.k CodeDom compilation creates temporary files. You just never really see them. I'm not sure exactly what files it does or does not create. However, I know when you set the "Generate in Memory" flag, I know that it still creates an assembly file on disk which then is automatically loaded into memory. So, I don't see any reason you couldn't do t ...Show All
Visual Studio Express Editions Replacing Text with Text from another form
For my program I need to be able to take text from one text box where the user will enter information and include that in a text box with information. (ex. for an aircraft callsign, Cessna N4734W is entered in a textbox on one form, then when they are viewing another form, the text wil need to have the callsign in the info - Cessna N4734W, requesting takeoff - or something among that sort.) I also need to know howto make it so when a button is pressed, that information will be entered into a textbox. The textbox where the "request takeoff" part is a masked textbox. This is a major part of my program and I need any help anyone can provide me with! Thanks Is this one among the same details l ...Show All
.NET Development Web Service Snafu
I am trying to build a web service that supports a single signon transaction. This would be using vb.net / framework v1.1. The transaction is a SAML assertion request. I have all functionality coded, but I believe I need to use xml serialization to handle the request and deliver the required response (see request message below) Here is an example of the incoming message: < xml version='1.0' encoding='UTF-8' > <SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'> <SOAP-ENV:Body> <samlp:Request xmlns:samlp='urn:oasis:names:tc:SAML:1.0:protocol' ...Show All
SQL Server How can I programmatically tell if agents are running?
Ideally I am looking for a procedure that I can call in T-SQL to verify that the Log Reader, Snapshot, and Sql Agents are all up and running on a given server. I found the undocumented sp_MSrepl_distributionagentstatussummary proc and got it to work for the distribution agent. I also found sp_MSrepl_agentstatusummary, but I've yet to get this to work. Overall, I'd really like to have a better way to do this. This absolutely must be something callable from the sqlcmd interface. It can not be through a UI nor anthing more complicated than standard T-SQL. Any suggestions Books Online explains each column for each table, as well as the various values for column runstatus. For example, MSdistribution_histor ...Show All
