pjdeets2's Q&A profile
.NET Development Process.GetProcessesByName and case sensitivity/uppercasing of process name
When listing processes using Process.GetProcesses() I sometimes see “notepad”, and sometimes I see “NOTEPAD”, sometimes I find process named “iexplore” sometimes “IEXPLORE”. (This is consistent with Task manager displaying “notepad.exe” vs “NOTEPAD.EXE”.) What is even stranger the following code ProcessStartInfo startInfo = new ProcessStartInfo(“notepad”); Process result = Process.Start(startInfo); Resulted on couple of occasions with “NOTEPAD” process being launched as opposed to “notepad”. Unfortunately, using Process.GetProcessesByName(“notepad”) will NOT return any hits for processes with process with name “NOTEPAD”. This looks to me like a bug, if process name should be either consistently case sensitive or not, if it i ...Show All
SQL Server Is Replication for Me? Help in understanding...
I have a situation where I need to distribute a db to 'subscribers' for use during network, and preferred application downtime. Currently, we do this by employing MS-Access. We update our db on the 'subscriber' by sending a text file with the new data using FTP. When the 'subscriber' opens their local copy of the Access db application, a macro fires off to check for any new file in the ftproot folder, and if one is detect that is newer than the last update, it truncates the existing table, and imports the text file using a predefined import specification format. The process works well enough as is. However, we were hoping to move beyond our dependency on MS-Access for a variety of reasons, so we are looking at developing windows forms ...Show All
.NET Development System.net.Webexception
Hi All, I am in serious trouble. We have a desktop Application that was originally developed in C#.NET 2003 and then upgraded to VS 2005 an year ago. This desktop application accesses its Oracle Database through some webservices also written in .Net 2003 and upgraded to VS 2005 later. Real Problem:- End users of this application takes out excel reports (apart from a loads of other things). They have 14 reports which they can take out from this. Out of these 14 reports one of them gives error in production and when I run the same code in development then it runs fine. This is the error that I get in Production:- The following exception has occured: System.Reflection.TargetInvocation. Exception has been thrown by t ...Show All
Visual Studio Team System TFS/IDE bug?
hi, not sure what forum to post this but it is relevant to TFS. in an earlier post i learned that a file checked out that is dependent upon another file as shown in the IDE gets a red check mark as does the file it is dependent upon even if that file is not checked out! here is a case where i think the concept is breaking down, consider the following image: notice that BaseObject.cs has a red check. it is not checked out, one of it's children is, the Plate.cs file is the one checked out. i would expect the BaseObjectFixed...cs to have teh check mark too. maybe this is a side effect of how i got all those .cs files to come under the BaseObject.cs file. i got those in there with a hack by editing the .csproj file, but i only added the Depe ...Show All
Visual Studio Problem building Managed C++ project with Msbuild that has multiple assembly references
I have a VS2005 solution that includes a Managed C++ project as well as several C# projects. The C++ project references several of the C# projects. All projects in the solution reference log4net.dll (as an AssemblyReference). My C++ project builds without any warnings using the VS2005 IDE. However, when I build the solution using MSBuild, I get zillions of warning messages such as: log4net.dll : warning C4945: 'LogicalThreadContextProperties' : cannot import symbol from '<some path>\log4net.dll': as 'log4net::Util::LogicalThreadContextProperties' has already been imported from another assembly 'log4net' For my managed C++ project, I set all references to be: Copy Local: true Copy Local Depencies: false Use Depend ...Show All
Software Development for Windows Vista ***.wmv is not indexed and cannot be imported
I am trying to make a dvd with windows dvd maker in vista, yet when I add a .wmv, it gives me the error message: .wmv is not indexed and cannot be imported. What should I do! ! Yes I did! I figured out that you need to install Windows Media Editor!! Here: http://www.microsoft.com/downloads/details.aspx familyid=5691ba02-e496-465a-bba9-b2f1182cdf24&displaylang=en open the video and click save and index and there you Go! Good luck! ...Show All
SQL Server RDA Error 28622
I have seen this error posted here in the past but have not yet seen an answer. I am developing an RDA Pull on a Compact Framework 2.0 enabled device. I am following several examples all of which are very alike. (Including Rory Blythes webcast.) When I perform the RAD.Pull method I receive the error 28622 - " Internal Error: Failure setting up a non parameterized query, possible incorrect SQL query." I know my SQL query is correct and I have patterned the entire procedure exactly as the examples I have seen. Could it possibly be an issue with IIS My IIS was setup using the Configure Web synchronization wizard and I receive the appropriate page when I link to it on both my desktop and mobile devices. If anyone has encoun ...Show All
Windows Forms WebBrowser - strange behaviour using hyperlinks
Hi, I have an embedded WebBrowser in my c# application. The application displays documents in the webbrowser pane. If the document is not available on the local hard disk, I download it from another source. My documents may have a hyperlinks to other documents. If a hyperlink is clicked, I want to use the Navigating event to check if the document exists on disk or whether it needs to be downloaded. The strange behaviour, is that... If the document exists on disk, the Navigating event 'e' parameter contains the correct url (including href query). i.e. file:///c:/temp/file1.htm#bm01 However, if the documents doesn't exists on disk, the Navigating event 'e' parameter contains only the file path in the url and not the href query ...Show All
Visual Basic Updating a dataset (Syntax error (missing operator) in query expression)
Hi all I keep getting a syntax error when I try updating my dataset. I can add and delete no problem it is just when I try to edit existing records. I have attached my update code below. Private Sub UpdateDataSet() 'Procedure to update the dataset if new record is to be added 'or existing one edited. Try Cursor.Current = Cursors.WaitCursor '------------------------------------------------------------------ Dim updateCommandBuilder As OleDbCommandBuilder = New OleDbCommandBuilder(daComplaints) '------------------------------------------------------------------ If CurrProcess = "ADDING" Then 'Create a new row and add to table. Dim newRowValues As DataRow newRowVa ...Show All
Visual Studio Team System calling policy from orchestration.
We were using to Expression shape with the following code. We were not getting the results and there is no error reported in biztalk.same thing executing using call rule shape. Any advice. Br = new Microsoft.RuleEngine.Policy("CBSEAI_EOD_TE"); Br.Execute (SendMsg); SendMsg is a variable of type XSD file. Thanks in Advance. Ramesh More. You might also try one of the BizTalk forums: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.biztalk.server&mid=3390aed3-ab5a-4c67-8e50-d898b2e0bdb1 ...Show All
SQL Server Error 15401 Adding Domain Group to SQL Server
I have tried rebooting the system, I have ran the script to look for duplicate sids and am still having the issue when trying to add a domain group to SQL. I get the Error 15401: Windows NT user or group'mi\Trust Legal' not found. Check the name again. Running SQL 2000 Std, with SP3a, and the collation is set to SQL_Latin1_General_CP850_BIN, which makes this instance case sensitive, and the group name is spelt right and am following the case sensitivity of the name as well. No, you're right. sp_grantlogin is the right command. You're using the right command and what appears to be the correct group name. So the issue is probably elsewhere. Does the command work for other groups or users in the same domain or does it consistently fa ...Show All
Visual Studio 2008 (Pre-release) 2 questions on WPF
1) Is it possible to hide Title text and Icon in my Window I want it visible in Tasmanager but not in Window caption bar. Is there some property (bool)IconVisible like in WinForms 2) How to Clear Focus on TextBox When my TextBox is Focused, I want to programaticaly remove that focus, is it posible There is only LostFocus event, I am looking for some method to clear focus. If you do set WindowStyle=None, how can you move the window on the screen To move a window you normally have to grab the Title Bar. ...Show All
SQL Server Problem with Transaction Logs
Hi, I have a big problem with transaction log. I need to reduce the transaction log file becouse, the have 25 GB, but when i run the statement for BACKUP LOG with TUNCATE_ONLY, dont work, becouse i have database mirroring installed. Please is very urgent. Oh I also got this big problem, and I amazing that no MS SQL supporter answer this question clear. Perhaps this has been explained scattered in Ms SQL help. There is 2 way: 1. Take the SQL server model to: simple and schedule 1 daily database backup 2. If the model is: full recovery: must schedule two job after check on: auto shrink database option a./ Backup transaction log file b./ Backup database file And after that you have just enjoy the working ...Show All
.NET Development Percentage Sign in DataTable.Select()
I'm using the Select method of the DataTable in .Net 2.0 in order to return a DataRow[] which match a set of criteria. One of those columns contains strings and I want an exact match. The filter parameter of the Select method seems to use a SQL-like syntax where % acts as a wildcard character. However, it's possible for the value of the string to contain a percentage sign. Using the SQL rules solved an earlier issue I had with an apostrophe (I escaped the single apostrophe into a double apostrophe). However, nothing I try seems to convince the Select method to treat my percentage sign as a literal character instead of a wildcard. I've tried [%], \%, %% , but no luck. Both the Select() method and Expression property documentation in t ...Show All
Windows Forms listbox prob
Ok, So i would like to make it so that when no one selects something from the listbox, that i can pop up something and tell them like a messagebox. Thanks in advance Hi Is this what you want: if (listbox.SelectedItem == -1) { MessageBox.Show("Select some item."); } Yours Markku ...Show All
