Answer Questions
Jim Wooley Xml reference is Nothing in Framework 2
Hi, I have a WebService at a server with Framework v1.1.4322 and retrives a xmlDocument. <WebMethod()> _ Public Function Save( ByVal AccountName As String , ByVal Password As String , ByRef xmlOrderDocument As XmlDocument) As Boolean At our new server with Framework v.2.0.50727 the xmlOrderDocument is nothing when it passes to the function. Does anyone has any idea why Rgds Cynkan (Moderator: Thread moved to this forum for better responses) Hmmm, I really hope so. I have to check with the software developer at that server (a WebShop site server). A very very good idea/thought Many thanks for all your nice answers. I keep you posted regarding this ...Show All
SuperCoder0101 DataTable.Rows.RemoveAt (0) problem
I run into this problem daily and so far had to ignore it for various reasons but can no loger afford it. I have a large DataTable that is filled with records coming from a server in a stream at a rate of perhaps a dozen records per second. I need a slice of them (the most recent ones) for a period of perhaps 30 min and then I transfer them to SQL Server. Next I delete the records that have been transferred from the DataTable. I do it in a for loop with RemoveAt (0) command. It works just fine with one exception. In about 9 instances out of 10 it tries to perform the transfer and deletion twice. The transfer/deletion algorithm is simple. I will use some numbers for illustration but the numbers of course vary. When the number of recor ...Show All
winsyss XML File Handling Using C#
hi how can i check whether the XML file is exist or not. in case of existing how can i go to particular Node and Update it. i am finding tons of sample code for reading and writing XML files. but i have to check whether the file exist or not. pls help me out. Thanks and regards ranu. To check if the file exists you can use the System.IO.File.Exists method, that will tell you if a file exists. Then to update a particular node then one way is to load the data into an XmlDocument and use the SelectSingleNode method to retrieve the node you want, this uses an XPath query to obtain the node. Mark. This should do it for you : string path = "Accounts/" + ID + ...Show All
Atiz AccessViolationException with C# Ping class
I have a "watchdog" program, c# console application, coded with VS 2005. Program runs every 3 minutes. And one part of program checks pings to ~20 ip's. I'll give that function code: static private bool ping ( ref String ip) { bool success = false ; Ping pingSender = new Ping (); if (pingSender.Send(ip).Status.Equals( IPStatus .Success)) { success = true ; } else { success = false ; } return success; } Usually this works.. but sometimes (once a day on the average) it throws an exception and program crashes: Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. I checke ...Show All
Alex Banks BC2017: could not find library
Hope this is the right forum. I keep getting the following message when trying to access the website I am building. Ayone have any ideas as to how to resolve this BC2017: could not find library 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6acb8b87\f5bfb61a\App_Web_a8shcvd0.dll' Nope, wrong forum. forums.asp.net is where you need to go. ...Show All
trogdor2323 “SchemaImporterExtensions" helps you not to modify the Reference.cs file each time you "Update Web Reference"?
Hello everyone, I have read that “SchemaImporterExtensions" can modify the way the proxy class is generated. I currently need that ability of modifying the proxy class generation but I don't know how. My case is the following: 1- I am using the same ClassLibrary on the server and client side. 2- Web Methods are returning objects of types that exist in the ClassLibrary (example: ClassA). 3- When I “Update Web Reference” in Visual Studio 2005 it creates a Reference.cs file. It implements a new dynamically generated version of ClassA (from the WSDL), which only contains private fields and public properties with the same names as the alternate properties in the original ClassA of the ClassLibrary. 4- Each time their would be ...Show All
Shrek.NET DoEvents not working?
This code doesn't seem to be working right. What I need to do is watch for left and mouse downs, and when both are down at the same time, show a window. This class should do it, but isn't working. The processMessage variable tells the mousehook to send the message to the appropriate window or to consume it. Public Class mouseComboWatcher Private WithEvents mh As WickedOrange.MouseHook Public Event ComboPressed() Public Event ComboReleased() Sub New () Me .mh = New WickedOrange.MouseHook End Sub Private leftMouseDown As Boolean = False Private rightMouseDown As Boolean = False Private comboDown As Boolean = False Private Sub mh_Mouse ...Show All
Dhondtie Create XML document from DTD
How can you create xml document from dtd using C#2.0. I have to create it using preexisting dtd and not schema. Yes, you can. This is not exectly "creating xml document FROM dtd". so what is the right approach... Hi, This might not be what your looking for but add an XmlDocumentType object (DOCTYPE) element to the XML document. XmlDocument example = new XmlDocument(); XmlDocumentType docType = example.CreateDocumentType("name", "publicID", "systemID", "internalSubset") You can convert the dtd to schema and then create a sample xml from the schema. To do that, you can open ...Show All
Babbage I Don't Know if this helps but i will try.
Does the CLR natively support SIMD operations, such as SSE2 or 3DNow! I'm afraid I'm going to have to bump this, I think a week is long enough ;) The only way I can think of is by using intrinsics in a C++/CLI library, and calling it from another assembley, but I would prefer to know how to do it from within any language. So, any help first off using the common language runtime and expecting speed seams mutaly exclusive. Intel(r) and AMD(r) both have manuals in pdf format telling you how to use MMX and 3dNow! instruction sets, but there is no geting around using intristics or Assembly Language. there is a header containing interistics called "MM3dNow.h". I' ...Show All
kangalert question about classes
I am a fairly new to oop programming and have a question. I have a class defined as follows: namespace CapitalRequest { class CapitalRequestData { private bool _editMode; private string _requestID; private string _projectNo; private string _employeeID; public bool editMode { get { return _editMode; } set { _editMode = value; } } public string requestID { get { return _requestID; } set { _requestID = value.ToString(); } } public string projectNo { get { return _projectNo; } set { _projectNo = value.ToString(); } } public string employeeID { get { return _employeeID; } set { _employeeID = value.ToString(); } } ...Show All
Teos SelectSingleNode for .NET Compact Framework 1.0
Hi, I want to use SelectSingleNode from .NET CF 1.0, it is available with .NET CF 2.0. IS there any wayout to use it in.NET CF 1.0 As far as I know, no, neither SelectNodes nor SelectSingleNode as methods of XmlNode are available in the .NET compact framework 1.0. ...Show All
Scott McKeown Accessing File type associations and icons in code
How can you access file type associations and icons made in Windows in C# code. for example if the user has associated mp3 files with WinAmp, I want to be able to see what the mp3 file has been associated with (in this case WinAmp) and to get the icon that is used for the mp3 file type when it is associated with WinAmp. The icon itself is probably stored in the EXE file itself. I am unsure how you would go about actually getting the icon from the EXE file. To get the path of the executable, once you have obtained the filename of the program associated with the extension, in my example, simply search for that key (filename.ext) in the HKCU\Software subkey. sometimes the path to the executable (an ...Show All
Marauderz database diagram node in server explorer
I'm using Visual Studio 2005 to create a .net web application. When I connect to the SQL server database in the server explorer, I don't get the database diagram node. Do I need to load something so I can see this Thanks. Hi, In VS 2005 database diagrams are not available for versions of SQL Server prior to 2005. Which version of SQL Server are you using Also which edition of Visual Studio are you using Thanks. Hi Paul, So how in SQL2005 do I create a new Database Diagram as all I see is stuff about connecting to reports. It might be that this is all taken care of in reporting services But I am connecting to a sql2000 db via sql2005 sqlwb. It wou ...Show All
tradle DuplicateAndClose - Sockets and Processes
Hi People, Okay so, I'm basically trying to duplicate a socket and and pass it to a new target process id, that seems to be completely do-able via the Socket.DuplicateAndClose method. How would I go about retrieving the the new SocketInformation within the other process, How would I pass the SocketInformation This can be done via AppDomains and calling a function/method but I'm trying to send it to a completely different process. Any ideas Using another socket for example :). Just that you have to synchronize with the new process so you know that it's ready to receive the data. Using a named event for example. ...Show All
Ryan C. Price Dataset Update
I have a dataset, and a save button that issues an update: myDataAdapter(myDataSet).Update() This works fine the first time the button is clicked. However, it I make changes to the record then click it a second time, it does not save the record. Is there another command/code i should be entering after the first update just to add - be sure NOT to call AcceptChanges() BEFORE doing the update :-) - in fact avoid it altogether if possible in this case How are you changing your rows Sometimes an EndEdit() or EndCurrentEdit() need to be done to commit the changes to the DataRow. I bet that this is all you're missing. Also, Paul, an AcceptChanges() is not needed when using the DataAd ...Show All
