Simon Allardice's Q&A profile
.NET Development System.Diagnostics.Process Namespace question
I am trying to execute the following few commands in the web application using the Diagnostics.Process namespace. msdev.exe arguements <for compiling a workspace> copy souce destination <copy souce to destination> move source destination <rename source to destintaion> I used the following code for each of the line to execute the process Process process = new Process(); process.StartInfo.FileName = "cmd.exe"; process.StartInfo.Arguements = args.ToString(); <I am getting the arguements as input parameters> process.Start(); I dont have a WaitforExit() command for the process, as I am not sure how the process would exit when I am using the "cmd.exe" as my FileName to execute. Also for some reason ...Show All
Visual Basic Form show unrequested
To get some experience using VBE, I converted a simple program I once made for myself(VB5). It's a birthday calendar, using a VB5 commandbutton for each day of the year, i found that VBE has great problems handling this many controls, it is slow, very slow and realy unworkable. Some where else in this forum I found that others with a lot of controls experience the same problems and there is no neat solution for it. In the mid 80's the basicinterpreter was quicker than this VBE with a machine that is 2000 times faster. Another problem I have is that the main(start) form of the program shows up unrequested. In the load section of the (start)form I show another form from which I normally select whether I show the (start)form or not. The se ...Show All
SQL Server Microsoft SQL Server 2005 RTM merge replication issues
We are trying to implement merge replication between 2 servers. Database size is around 11GB. When I tried to create publication, snaphot agent is failing with following errror. Error: 14151, Severity: 18, State: 1. Replication-Replication Snapshot Subsystem: agent NBTENTSQL1X-PayDirectWeb-PayDirectPub-2 failed. The replication agent had encountered an exception. Source: Replication Exception Type: Microsoft.SqlServer.Replication.ReplicationAgentSqlException Exception Message: String or binary data would be truncated. Cannot find the object 'MSmerge_sel_4D388 The table where the snapshot is breaking contains around 169 columns. Can someone please help me get through this error Thanks Sudarshan, your reply is ver ...Show All
.NET Development string Replace function
using System; using System.Text.RegularExpressions; namespace ConsoleApplication1 { /// <summary> /// Summary description for Class1. /// </summary> class Class1 { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main(string[] args) { // // TODO: Add code to start application here // string text = "a0+a1X1+a2X2+a4X4+a10X1.X3+a12X2.X3"; string pattern = @"a.\d*"; MatchCollection matches = Regex.Matches(text,pattern); Console.WriteLine(text); Console.WriteLine(); string[] a = new string[mat ...Show All
SQL Server Default Report Server Web Page
I've only just started working on Sql Server Reporting Services 2005, My role is mainly that of administrator (some other unfortunate sole will be doing the development) However, I'm having some problems configuring the "Welcome" screen on the server. Currently it looks like a default web directory, I can click through to Data Sources and a directory containing the current test reports: Looks like: Wednesday, January 10, 2007 4:14 PM <dir> Data Sources Wednesday, January 10, 2007 4:14 PM <dir> Test Reports Clicking on Test Reports gives: [To Parent Directory] Wednesday, January 10, 2007 4:14 PM 15193 Basic Test Report Question is: Is there an XML (Or XSL) file somewhere where I can define how the websit ...Show All
Visual Basic Problem with Thread and Udp
Hi ppl! I have a litle promblem and i dont’n no to resolve. I have a form Login, send a msg whith a sql code, and de servers send-me a value.. this part its ok... but i howt ... if value x= 1 open 2oform(Principal) , but this form open and close very fast. whats wrong whith my code Form1 code Imports System. Threading Imports System. Text Imports System. Net Imports System. Net . Sockets Imports System. IO Imports System. Security . Cryptography Public Class login Private Sub Button1_Click ( ByVal sender As System. Object , ByVal e As System. EventArgs ) Handles Button1. Click 'Envia dados de login para o servidor Dim Md5 As New MD5CryptoServiceProvider Dim count As Int32 = 0 Dim strPlainT ...Show All
Visual Studio Team System Error: 28940, TFServerStatusValidator
I have installed IIS and WSS following the guide,but when i installing TFS it showed this error, i can open WSS site ,and IIS is all right solved, i do nothing but reinstalled again and the error disappeared maybe the error is caused by the status about the IIS ...Show All
Gadgets What's gimage.addImageObject for?
I know gbackground.addImageObject, but what is gimage.addImageObject for I tried it, but seems no effect (though no error). Interesting question, the MSDN documentation also states gimage.removeObjects is supported. I'd guess someone copied the gbackground method definitions. I'm sure Bruce will confirm if they are supported, it would certainly make some Gadgets easier to code if it was, as gbackground.removeObjects isn't very friendly. ...Show All
SQL Server Full Text Search
I have a strange issue with full text search. I have a table that has only 700 records in it, when I enable full text search and follow the wizard the index is not getting build. the storage full text say it is populating and it never does. I have restarted the service and rebuild the index few times with no benefits. I can do the same steps on another server with the same database and it works just fine. does anyone have any hints or things I can try Please help MSFTESQL is up and running. I don't get any errors when creating the Index. everything is successful status but when I am looking the property of the full text under storage the status is always "populating Catalog". The only error ...Show All
Visual Basic for loop issues with concatenating variable with text box
I have 10 text boxes textbox1, textbox2 ...etc I want to modify them with a loop this code does not work Dim w as int For w = 1 To 10 Me.TextBox & w = someStringArray(w - 1) Next w it does noe like the &, I tried + and () and [] and nothing works. Any suggestions thank you. DMan1 wrote: DOes your textbox array already exist Is this VB6 or .NET In .Net you will have to create your own "control" collection/array/list to manage a group of controls! Hi, The array already exists and its a VB6 project. TIA ...Show All
SQL Server Cannot use credentials for proxy account
Hi, because my package does not run with SQL-Server-Agent, but without problems if started by "hand", I created a new credential which contains the information needed for the package. I did this as described on: http://msdn2.microsoft.com/en-us/library/ms190703.aspx . After that i tried to create an proxy account, but when I chose the created credential, Management Studio says "Der Proxy "[name_of_credential] ist kein gultiger Windows-Benutzer(Microsoft SQL Server, Fehler: 14529)". This means something like: "This Proxy is not a valid windows-user. Error: 14529". Any hints how to use a credential that is not a windows-user Regards, Jan Wagner Hi, thanks ...Show All
Windows Forms AutoResizeColumns gives operation exception
Hi, I'm having a problem with the AutoResizeColumns method on a DataGridView. I'm calling it in the DataBindingComplete event handler: void DrmGridView_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e) { this.AutoResizeColumns(); } but I get an operation exception with this message: "This operation cannot be performed while an auto-filled column is being resized." My grid has five text columns that are the properties of objects collected in a BindingList<>, and using a BindingSource. It's fine without the AutoResizeColumns (apart from the column widths!). I get the same error if I try to drag the divider to change the column width. Any ideas, please The stack t ...Show All
.NET Development Mutex throwing DirectoryNotFound exception
The following line: Mutex mutex = new Mutex ( true , GetYourBackupProgram ._ProgramFolder, out mutexCreated ); throws System.IO.DirectoryNotFoundException. Does anybody know why The full exception is below. According to the ms documentation this exception is not thrown although IOException can be. There is no indication (that I saw) in the document that it checks the Mutex name for being a directory. The second odd thing is that the directory DOES exist, as that is where the program is running from. The workaround is to replace the ":" and "\" characters in the path of the path with something else. Can some one tell me if this is a bug in MS code MS documentation My brain Regards - Paul ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Detect 360 controller analog movement
can someone give me an example on how to detect an xbox 360 analog movement ...Show All
Visual Studio Express Editions Getting the WebBrowser LocationURL to show.
I am having a lot of trouble getting the webbrowser location to show up in the textbox that I use as my address bar. I am trying to make it so that the address bar always stays up to date with what URL the webbrowser is at. Can someone give me an example code of how this is done Sorry for all the questions. I'm very new to VB you have to code it. The strings will change in the statustextchanged event. I do have code where I've done. But I fear it's specialized code that may be more confusing than not. Let me see what I can find...... ...Show All
