Answer Questions
grasshole how do i validate and deserialise xml?
I want to use the XmlSerializer to deserialize an xml data file to an object. As part of this process, I want to validate the xml data against a schema to avoid errors. My solution was to use a XmlValidatingReader to load the xml file into an XmlDocument object and validate against the schema. If the data is valid, the XmlDocument data is passed to the XmlSerializer. It works but there a simpler way Thanks Jason ...Show All
Orantho Populate DataSet from CSV
Hi there! I'm trying to populate a DataSet from a CSV-File. The CSV-File looks like: "Name";"Given name";"Department";"E-Mail";"Telephone" "Test";"Test";"Dep 1";" Test@Test.com";"+49 555 555 555" And my Code looks like this: string strConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + System.IO.Path.GetDirectoryName(strFileName) +";" + "Extended Properties=\"Te ...Show All
Berney .NET HttpListener has a limit of 2 concurrent requests handled at a time per process, How can I increase it ?
I created a simple server using HttpListener using .NET 2.0 The server simply accepts http connections from clients, sleep 3 seconds and return "OK" message. Server Code : HttpListener m_Listener = new HttpListener (); public void StartListening() { m_Listener.AuthenticationSchemes = AuthenticationSchemes .Anonymous; m_Listener.Prefixes.Add( & ...Show All
ToshibaT1 Why are config files mapped to StaticFileHandler?
I have been trying to figure out why two types of config files are mapped to the StaticFileHandler in the machine.config. The following two handlers are mapped: <add verb="GET,HEAD" path="*.dll.config" type="System.Web.StaticFileHandler"/> <add verb="GET,HEAD" path="*.exe.config" type="System.Web.StaticFileHandler"/> Does any know why these httpHandlers would be mapped like this by default &n ...Show All
erikkl2000 Is there a way not to terminate the application when unhandled exception is thrown on background thread?
An unhandled exception thrown on background thread causes the application to terminate in CLR v2.0. It is possible to do anything so that it does not terminate but rather ignores the exception Thanks, Michael ICLRPolicyManager is part of the CLR hosting interface, so you won't be able to use it from pure managed code. Instead, you'll have to write an unmanaged CLR host to boostrap your application.  ...Show All
Leonardo Carlos Prada Moving from RC to full release version
Is this going to be a simple uninstall of the rc version Or do I have to run the auto uninstaller I used for removing Beta 2 Or is this going to be a completely manual process to remove all the associated programs 1 by 1 Thanks! I would use the unistall tool. yes...thanks. i just wasn't sure if it was set up to uninstall only the beta or not, but it's not. :) ...Show All
byerh FORTRAN
Hi Not quite sure if this is the right forum to raise my question, but at least I hope to be pointed in the right direction. We have over the last 25 years developed software, started in FORTRAN and now mainly uses C++. We have used "the mixed language" technics in the microsoft products, to keep our old good working code. We rewrite something that works !!! Now we would like to move to the newest development platform that is Visual studio 2005. ...Show All
kelley DBNULL value question
Using VB.NET, I perform a trim function on a SQL server table field trim(row1(''account'')) . When the field is empty I get an error: cast from 'DBNULL' to String is not valid. I want to be able to perform that Trim function without testing each single field if it s equal to DBNULL or not. That s because I have many fields in the same string generated big string and I wanna insert some spac ...Show All
stacybleger HELPPPPPPP....for Async Socket COnnection..
i used async socket connection... so server is listening...& client has Timer which starts new thread (new Connection request) every 20 seconds... after connecting and sending data to server..i shutdown socket..like socket.Shutdown() but when i c 'netstat -an' command i can see many socket opens ..and it increases after every 20 second.. so i think i m unable to kill threads which stared after every 20 seconds....and unable to c ...Show All
CRJ HOW TO ADD '&' in XML text...
i want to create a XML tag like <info>a & b</info> but XML doesnt allow this ....SO if any1 knows plz reply.... Thankxx... Use & instead. For further information, search google for predefined XML entities. ...Show All
JonathanKay Permissions with unmanaged code.
Hi, I need, to create a XmlDocument after accessing unmanaged code. When I do this the application stops without throwing any exception. What's the matter... Thanks in advance. ///////////////////////////////////////////////////////////// using System; using System.Runtime.InteropServices; namespace Error { class Class1 { [DllImport("haspms32.dll", CallingConvention=CallingConvention.StdCall)] static extern void hasp(int service ...Show All
jaycee regex to match all chars?
in regex - is it possible to match a pattern on each character in a specified string if i put in to match "a" in a string, it just finds the first instance of it in the first word it comes to.... so i may have a string like: a house has a room will only find the first a instance (but there are 3 chars of 'a' in total in the string) solved looked more at the instances and found a nextmatch method therefore ...Show All
Jiteshk Binary attachments in WSE 3.0
Hello, I'm using WSE 3.0, but I'm having some trouble passing a binary attachment. In WSE 2.0 we had SoapEnvelope.Context.Attachments where I would put binary attachments. Where can I put attachments in WSE 3.0 Thanks in advance for any help given. Regards, paulo Honestly, I have never used the Policies so I dont know how they work. But I have written a few SoapExtensions. One of them was a compression ex ...Show All
ChrisJohnsonVan Windows App Not working over Network
I've got a windows app that connects to a DB and copies a few files from a network share to the local PC. The app is ran on the network share because everybody in our company uses it and when modifications are made, we don't want to have to redistribute 50 or so copies of the .exe. Every time I run the program from the network, I get a standard Windows error and Microsoft wants me to send them the information, it doesn't get too involved oth ...Show All
Robin Alexander - MSFT Parsing HTML with no UI context
I'm trying to retreive and parse an HTML document from a website. I've succesfuly done so in a WinForms app using the web browser control. The problem is that I'd really like to create command line utility which just dumps the results to a file with no UI (and at some point migrate it to a service) - something akin to the "curl" linux utility. The issue is that webbrowser seems to insist on a UI context being present. Anyone ...Show All
