I'm working with XML data from an application where we get XML like this:
<elt attrib="Swedish: ä ö Euro: € Quotes: ‘ ’ “ ”">
Swedish: ä ö Euro: € Quotes: ‘ ’ “ ”
</elt>
I want the attribute value and inner text values to be
Swedish: ä ö Euro: € Quotes: ‘ ’ “ ”
b...
Does anybody know how I can troubleshoot web services responses?
When I get my soap message back from a web service call I get this error "The string '' is not a valid AllXsd value" as soon as it's a value type like a datetime per example.
My proxy classes are generated from wsdl's using wsdl.exe, the wsdl seems valid.
I have seen not...
I created a form that overlays on top of another form in an alpha blended state. This works great on my laptop but I just transferred the program to a computer at work and the form is a solid colour. This is probably a completely obvious question but are there graphics card requirements or colour depth requirements for alpha blending, I ...
I'm trying to write a Windows Mobile app targeting Windows Mobile 6.x that will stream an internet radio stream delivered via MMS protocol (just one feature among other things).
Does the .NET Compact Framework have built-in controls or API's that will do this? Or would I need to start looking for a third-party library?
I'm a little co...
I have the following scenario where I want to pass in string and a generic type:
public class Worker {
public void DoSomeWork<T>(string value)
where T : struct, IComparable<T>, IEquatable<T> { ... }
}
At some point along the way I need to convert the string value to its T value. But I don't want to do a straight convert a...
I have a DataGridView where one of the columns is a DataGridViewComboBoxColumn. When the grid is populated, that column looks different because of the drop-down arrow appearing on each cell in the column. I'd like to change this so that the drop-down arrow is hidden and only shows up when the row is actually highlighted or when the combo...
I am looking to integrate with sales force, hence looking at different ways on their network of resources. I am looking to build this webservice on .Net platform. I am looking at simple fetch services. Best practices along with code samples are welcome.
...
This is a C# problem. I have a big object in memory at a certain time. I want to serialize it to a file. There are two steps to do it. 1st, I need to change the object to csv string. 2nd, I need to serialize the csv string.
I have a utility tool, which can append strings to a MemoryStream. I use this utility tool to convert the big obje...
Hello everyone,
I am using the popular sl2videoplayer from codeplex to play video, and everything is fine when I play remote video on an IIS web server. Sl2videoplayer could be found here, http://www.codeplex.com/sl2videoplayer
But when I open the default.html locally from disk (double click default.html to open in IE), there is error ...
Hello:
I've been thinking about nested try/catch statements and started to think about under which conditions, if any, the JIT can perform an optimization or simplification of the compiled IL.
To illustrate, consider the following functionally-equivalent representations of an exception handler.
// Nested try/catch
try
{
try
{
...
We developed a C#.Net application using .Net Framework 2.0 which works fine in 32 bit Computers. But when I am run my application in 64 Bit environment, it crashes.
I need to make my application to run on 64 Bit environment.
How do I do this?
...
Here is a question that I have had for some time but never actually got around to asking...
In quite a lot of the designer files that Visual Studio generates some of the variables are prefixed with global:: Can someone explain what this means, what this prefix does and where should I be using it?
...
I find that writing web apps and WinForm apps generally come out a lot cleaner than when I write a console application.
What do I mean by cleaner? Well the fact that the fact the UI (i.e. readline/writeline) is so intertwined with the logic code becomes horrible and the fact it is not event driven means that it is harder to get good ab...
Have you ever had to justify the choice over using .Net instead of Java based on performance?
For a typical high volume transaction processing system that can perform the following operations,
Concurrent Database transactions
Mathematical computations
Interaction with other web services (SOAP/XML, XML-RPC)
My approach would be to co...
I have VS2005. How can I compile my project under specific version of .NET? I have installed 1.0, 2.0, 3.0 & 3.5.
Tnx in advance.
...
I've developed a series of classes that are called from an asp.net website to create HTML from templates. A pair of the main methods create a pre-styled HTML box. Like so:
<%=ContentBox.DrawTop( title, textColour, backgroundColour )%>
<p>This is the content inside the box</p>
<%=ContentBox.DrawBottom()%>
This code works fine. Howeve...
I had a heated discussion with a colleague on the usage of stored procedures (SP) in a .NET application (on an SQL server 2005 database). [He has a Microsoft background and I Java - which may or may not be relevant].
I have to insert data captured in the UI. For this I would write a SP and use that in the .NET code? It's not required b...
I'm wonder about best approach of implementation auth. rules in Client-Server app using Business Objects.
I've noticed common tactic is:
- on DB side: implement one role for application, used for all app's users
- definition users right and roles and assign users to proper group
- Client side: add to Business Object's getters/setters r...
I have a COM object I imported in my test C# solution.
Everything works fine and continues to do so.
Then I imported the same COM object in my actual solution and as a test implemented the exact same lines as in the test project.
When I run the real project I get an InvalidCastException
Unable to cast COM object of type 'CTWebReport.We...
What is the best way to unit test heavily database dependant .NET middleware? E.g. a process which reads data from multiple databases, manipulates it, and then combines and writes it to other databases?
Should the databases be filled with static data which is somehow reset on each unit test run? Should the whole SQL Server access be som...