I'm a beginner when it comes to XML. I created a simple XML file and tried to parse it and assign the values into variables. It worked but the method I used made me wonder if there're better ways, more elegant if you will, for this task. Are there any?
Here's my XML file:
<start>
<record>
<var1>hello</var1>
<var2>world</var2>
</record>...
The dllmap configuration file entry is used in Mono to map requests for windows DLLs to Linux (.so) libraries. But it seems that if Microsoft's .NET framework tries to parse a configuration file with such an entry, an error occurs because it doesn't understand "dllmap". I think everything else in my distribution can be distributed unch...
I'm creating a web service in WCF that returns JSON, but the DataContractJsonSerializer is balking on some circular references (which I can't remove in this particular case).
Instead, I'd like to use the Newtonsoft json library. What's the easiest way to create a custom serializer in WCF?
Note: I know I could just return a stream, bu...
I have some services that an application needs running in order for some of the app's features to work. I would like to enable the option to only start the external Windows services to initialize after the application is launched. (as opposed to having them start automatically with the machine and take up memory when the application is ...
Is there as base class library out there with entities like customer, address, order etc?
...
I came across a situation where I would like to step back through the app's methods up the "tree" until I decided to catch it (if I do) - like an exception; it's raised through all the code until you catch it or hits the roof.
The general concensus is that you only use exception for exceptions. That being the case, what would be the me...
I need simple and free write-behind cache for .NET. Does not have to be 100% reliable or fast. I have a growing website and I need something till Microsoft finally releases Velocity which should have write-behind in the near future.
Do we have a simple write behind cache implementation for .NET?
Do we have any .NET code samples on writ...
Hi,
Is it considered bad practice to expose events in .net interfaces?
I have found very few .net framework interfaces that expose events.
Thanks
...
As many would have discovered .net does not handle long paths names well.
So when will .net support long paths natively?
By natively I mean with out any of the suggested workarounds like subst and pinvoke
Some reading:
http://blogs.msdn.com/bclteam/archive/2007/03/26/long-paths-in-net-part-2-of-3-long-path-workarounds-kim-hamilton.as...
Hi,
i have a WPF Application with a LoginWindow to access,so i create a Splash Screen for this Login window as follow :
- in App.xaml
< Application x:Class="WPF.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Startup="Application_Startup"
/>
...
I want to create a varchar folumn in SQL should contain N'guid' while guid is a generated Guid by .net (Guid.NewGuid).
What is the length of the varchar I should expect from a Guid?
is it a static length?
Should I use nvarchar (will Guid ever use unicode chars)?
varchar(Guid.Length)
PS. I don't want to use SQL row guid data-type, jus...
Hi,
Its Ershad here.I am working on lucene.
Now i am able to search the word.But if i type part of word, i am unable to get the results.
Can you pls suggest what to be done.
For indexing, i am using the below code
writer = new IndexWriter(directory, new StandardAnalyzer(), true);
writer.SetUseCompoundFile(true);
doc.Add(Field.UnStored...
What is the SystemColors of the Textbox's border?
...
what is ipc in .net..... whether it's possible to use in .net 2003.....if possible explain it ......
...
Hi guys,
I have an ancient mess I'm trying to shovel into tiers using subsonic. Trouble is, I have this scenario:
When Hal logs in, his login uses database X for lookup data, database Y for his accounts and database Z for his contacts.
When Barry logs in, his login uses database X for lookupdata, database Q for his accounts and databa...
Hi,
What is scchema importer Extension class in .net webservice.Recently i came across this class in one of the support project.
In that project its not using now.
So i am curious to find the practical implementation of this calss.I have gone through few artcles but not clear about the concept.
Is this avilable in WCF services also.I...
I'm looking for good performance when sending a lot of e-mails.
I have heard that the right way to do it is to open a connection send ~20 e-mails and close the connection. And do that over and over again.
Is this correct?
And how does SmtpClient work, does it open a connection for it's own lifetime? (not IDisposable, so doesn't look li...
I'm serving a .net user control in .dll form.
It displays in IE7 fine when served from my external IIS 6 server.
However when served from a IIS 5 the control is rendered as a Text Area control with a Scrollbar control on the side.
I had a look at the http response - IIS5 is serving this:
<html><head><title>Error</title></head><body>T...
Hi,
as in title I want to see the code of the messages exchanged in local testing.
I want to do it to ensure that they are really encrypted as I set to do.
Can someone help me?
Thanks,
Alberto
...
Hi,
I have a XElement that maps like follows:
<book>
<author>sadfasdf</author>
<title>asdfasdf</title>
<year>1999</year>
</book>
<book>
<author>asdfasdf</author>
<title>asdfasdf</title>
<year>1888</year>
</book>
<book>
<author>asdfsdf</author>
<title>asdfasdf</title>
<year>1777</year>
</book>
How ca...