I have some messages in my queue. Now I notice that after 3 tries the service host faults. Is this a normal behavior? Where does the 3 times comes from? I thought it came from receiveRetryCount. But I set that one to 1.
I got 20 messages in my queue waiting to be processed. The WCF operation that is responsible to process the message s...
DataContractSerializer config section under System.Runtime.Serialization section group could not be loaded. Verify that machine.config is correctly set up.
Do i need to reinstall something?
...
Let's say I have:
public class Item
{
public string SKU {get; set; }
public string Description {get; set; }
}
....
Is there a built-in method in .NET that will let me get the properties and values for variable i of type Item that might look like this:
{SKU: "123-4556", Description: "Millennial Radio Classic"}
I know that ....
Anybody manage to get .net 4.0 applications compiling on a CI server without installing visual studio 2010 on a CI server. No SDK exists for .net 4.0. Have installed .NET 4.0
on CI Server. Msbuild.exe works for simple projects and give the following warning
(GetReferenceAssemblyPaths target) ->
C:\Windows\Microsoft.NET\Framework\v4....
Hi
The MSDN library entry to Enumerable.ElementAt(TSource) Method says
"If the type of source implements
IList, that implementation is used
to obtain the element at the specified
index. Otherwise, this method obtains
the specified element."
Let's say we have following example:
ICollection<int> col = new List<int>...
Background:
I have a short list of strings.
The number of strings is not always the same, but are nearly always of the order of a “handful”
In our database will store these strings in a 2nd normalised table
These strings are never changed once they are written to the database.
We wish to be able to match on these strings quickly in a...
I've been writing Windows Services for a while and they always seem to work fine for things that need to run every day, few times a week, once a month, etc. but I've been lately thinking about going with Windows Workflow Foundation.
However, I am unsure how would they run on a server without some container application (for instance Shar...
I need to handle all the exceptions globally in .NET 2.0 web service (ASMX), i tried using Application_Error event in global.asax, but it's not fired in web services case, it works fine for web based applications.
Any suggestions???
...
I need to tell my C# soap web service consumer to not validate the certificate and just accept it. Is this possible?
Why: we publish a https-only web service. A client needs to consume it but has some kind of firewall/proxy (WebSense?) which does something to the certificate to make it fail validation. At this point I don't even know...
Using the following code to compute MD5 hashs of files:
Private _MD5Hash As String
Dim _BinaryData As Byte() = New Byte(FileUpload1.PostedFile.InputStream.Length) {}
FileUpload1.PostedFile.InputStream.Read(_BinaryData, 0, _BinaryData.Length)
Dim md5 As New System.Security.Cryptography.MD5CryptoServiceProvider
Dim md5hash() As Byte...
We have two tables with the same set of columns; depending on the “type” of object the value is stored in one of the two tables. I wish to use common code to access these two tables.
If I was using “raw sql” I could just use String.Format() to change the table name.
(Likewise for updates etc)
The two separate tables are needed a...
I have a c# .Net 3.5 application that creates xaml files with drawings in them. I'd like to insert a thumbnail into the file so that the user gets some indication of the file contents in Windows Explorer.
Any ideas what approach to take?
Regards David
...
Hi.
I have a solution with multiple class libraries.
When I compile each individual library (and the web site by itself)
compilation always succeeds.
But, when I compile the solution as a whole, one of the library
references fails with a little yellow exclamation mark next to the
failed library. In the Error List I have:
The t...
Howdy, I'm having a bit of an issue runnning a NAnt script that used to properly build my .Net 2.0 based website, when compiling with VS2008 and it's associated tools. I've recently upgraded all the project/solution files to VS2010, and now my build fails with the following error:
[exec]
C:\Windows\Microsoft.NET\Framework64\v4.0.3...
Overview: I'm interested in learning more about the .NET4 "In-Process Side-by-Side Execution" of assemblies, and need additional information to help me demystify it.
Motivation: The application in question is built against .NET2, and uses two third-party libraries that also work against .NET2. The application is deployed (via file copy...
I was wondering if anyone knows of an existing sample or an approach to achieve the desired functionality.
Basically, what I'm looking for is a web browser like skeleton. The idea is that the main screen of my application is shown in the left tab. This tab can never be closed. On this screen is an overview of various application compo...
I am having a lot of trouble coming up with the Linq equivalent of this legacy stored procedure. The biggest hurdle is it doesn't seem to want to let me add a second 'clause' on the join with tblAddress. I am getting a Cannot resolve method... error. that tblBusiness.tblAddress is seen as an EntitySet<tblAddress> See bottom for curre...
I am designing an auto downloader using .NET and C#. I was wondering if there is a decent/robust FTP/SFTP module out there that I can use, preferably free of charge.
EDIT: I probably should've noted that I am looking for answer from somebody who tried several and found one that works very well. I currently use .NET wrapper for libcurl f...
Switching from Microsofts Oracle Driver to ODP.NET version 10.2.0.100. After changing the data types to OracleDBTypes in a procedure, that worked perficetly using System.Data.OracleClient, the procedure fails if we try and pass in more that 20 parameters. The error returned is:
ORA-06550: line 1, column 7: PLS-00306: wrong number o...
Having a mental block today, need a hand verifying my logic isn't fubar'ed.
Traditionally I would do file i/o similar to this:
FileStream fs = null; // So it's visible in the finally block
try
{
fs = File.Open("Foo.txt", FileMode.Open);
/// Do Stuff
}
catch(IOException)
{
/// Handle Stuff
}
finally
{
if (fs != null)
...