Answer Questions
FadedNite XML selectSingleNode Issue....
i'm trying to extract the data in black below using selectSingleNode It works with everything else i'm extracting from the xml file, just not this.... Not working.... strXML(i) = strXML(i) & objNode.selectSingleNode ("Case/StatusUpdate").Text & "|" < StatusUpdate > < Beh Id =" 2 " Name =" Nutrition " /> < Met Id =" 38 " Name =" Unknown " /> ...Show All
Matt... THW How can we know that there is Concurrency Problem arised? (i.e Other than DBCOncurrancy Exception)
How can we know that there is Concurrency Problem arised (i.e Other than DBCOncurrancy Exception) Concurrency is a common cause of error in multi-threaded applications. The DBConcurrencyException will be thrown by a DataAdapter if the number of rows affected by an insert, update or delete operation is zero because this is "generally caused by a concurrency violation" according to the documentation. You may have other concurency bugs ...Show All
Dave Green WSE 3 install error
While trying to install WSE 3.0, I get the following error message: "Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor." Any reply welcome! I've downloaded another version of WSE and looks like it's working. Which version of WSE 3.0 Beta are you ...Show All
davidemile calling a COM object from c#
I am calling a COM object from c# using this code: string sProgID = "IData.Update"; // get the type using just the ProgID Type oType = Type.GetTypeFromProgID (sProgID); if (oType != null) { try { Object MyApp; MyApp = Activator.CreateInstance(oType); object[] args = new Object[7]; args[0] = args[1] = args[2] = args[3] = args[4] = args[5] = args[6 ] = true; oType.InvokeMember("uf_run_updates", BindingFlags. ...Show All
ckm3812 Does Microsoft charge to compile an application created in Visual C++ using the MFC?
I am new at this, but our company has purchased a small display application that uses MFC classes. If we purchased Visual Studio and i used this to make minor adjustments to the code, will we be charged a compile fee(ex: per seat)from Microsoft No you pay for the Visual Studio license, that's it. ...Show All
Markis_au using ADODB
im trying to execute a store procedure in a method written in c#, but i want that method to return a recordSet so i tried using adodb but how to execute the store procedure using adoodb is it possible thanks in advanced well.. in c# i wrote- public OleDbDataReader getData() { OleDbConnection conn= new OleDbConnection("connectionString"); OleDbCommand cmd= new OleDbCommand("SPname",conn); cmd.CommandTyp ...Show All
oh_Genry data adapter problem
Hi everyone, I have a problem that I have tried correct some days, but I still cannot found why it is not correct. string sqlCommand = ToString(adapter.SelectCommand); adapter.SelectCommand.CommandText = sqlCommand; int rowCount = adapter.Fill(dataset); protected virtual string GetSQL(string name) { return resourceHandler.GetStringFromTextResource("sql." + name + ".sql"); } /// <summary& ...Show All
Alex - IntraLAN Receiving ArgumentException while attempting to read Application.UserAppDataPath
Greetings, I've been accessing Application.UserAppDataPath in my application for a while but recently it's been throwing an exception that's leaving me scratching my head in wonder. I can't seem to find any good documentation or material to help me with this. This is a WinForms application being developed with .NET Framework 2.0 on a WinXP Pro machine. Here is the offending line of code: label3.Text = Application.UserAppDataPath.ToString(); A ...Show All
Anu Beniwal How do I enable useUnsafeHeaderParsing from code? (.NET 2.0)
Hi, We have several webservers that do not follow the correct RFC specification when performing some specific HTTP web requests, in order to communicate with them we need to enable unsafe header parsing. Changeing the webservers to respond correctly is NOT an option in our case. According to documentation, adding the following lines to the app.config enables the unsafe header parsing. <system.net> <settings> <httpWebReque ...Show All
CLM Transform an ArrayList to a generic List
Hello, I would like to transform an ArrayList into his generic corresponding List. There is a method to transform a IList to an ArrayList (ArrayList.Adapter) but I want the inverse. I apologize for my bad english but hope you understood. Thank you for answering Stephanie Stephanie, ArrayList implements IList so you should be able to do something like: ArrayList al = new Arra ...Show All
Lifeng No connection could be made because the target machine actively refused it
Trying to connect to a local host TCP port 3380 (the port number chosen arbitrarily): 10.1.10.176:3380 I got this error message: No connection could be made because the target machine actively refused it What shall I do to convince the target machine not to refuse it the next time I used a sock.Connect(serverEndPoint); statement. Thanks You were right. When I chose a post where a server was listening a connection was made right away, ...Show All
jcjj DataAdapter.Fill() is necessary?
Hi all, In ADO.NET 2.0, there's a new method called DataTable.Load (DataReader) method, so is it necessary to use DataAdapater.Fill(DataSet) anymore I think all developers don't mind to write a few more line to change .Fill() to .Load() if the performance can be improved greatly after moving from DataAdapter to DataReader (as DataReader is native and fastest approach in retrieving record). Thanks, In MSD ...Show All
fs - new to C# Generic types and the property grid
Hi, I'm struggling with generic data types and the display of properties of that type in the property grid (C#, VS 2005). My requirement is to have certain properties which can either get a constant value at design time, or, alternatively, a "rule" assigned to them (basically a declarative expression) which will be evaluated at run-time and set the property value. However, I want to avoid creating appropriate rule-bearing types for every r ...Show All
RSUser run servers localy
how can i run 2 servers localy in .net remoting i tried register two different ports in the server side but i got an exception. do i need to create 2 different projects , each one for a server thanks in advanced Hi, Yes what you are trying is supposed to work. Why dont try moving it to a config file and try Its easier to troubleshoot than code. Here is a sample config file for Remoting on the Server which has t ...Show All
halebob Framework 2.0 breaks app, supportedRuntime does not fix
Original Environment Windows 2000 Service Pack 4 1.0.3705 1.1.4322 Application written using VS.NET 2003 and 1.1.4322. Application calls unmanaged code. Everything works. Breaking Change One change was made, installation of 2.0.50727. It was expected (hoped ) this would not affect a 1.1 application. Details of unsuccessful workaround Added this to the application's config file: < startup > < supportedRuntime versio ...Show All
