I have a WCF service that sometimes has to return a Fault. For some reason, the calls to my service begins to time out with the following error:
"The request channel timed out while waiting for a reply after 00:00:59.8906201. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The ti...
How can i generate 16 color. my starter color is "Red" and my terminal color "khaki". i have to insert 14 color. But it looks like gradient flow. Forexample color.Black does not come from red. Violent should come red from red.
...
I am currently trying out Json.NET, and it seems to work well.
Any other good JSON libraries for .NET?
...
I know I can start a process in code with Process.Start().
Is it also possible to attach the debugger to that process?
Not from code per se , but just a way to do it?
...
Code:
public IList<T> GetByMultipleIds(int[] ids)
{
List<T> result =
_session.Linq<T>()
.Where(x => ids.Contains(x.Id)).ToList();
return result;
}
Throws:
An exception of type 'System.NullReferenceException' occurred in
NHibernate.DLL but was not handled in user code
Additional inform...
i added below codes. But it generates to me 16 color. but i need 16 color between "red" and "khaki". i don't need gradient flow. My colors look like gradient flow. My colors must not closer to each other. Because i will use this codes return values in chart columns. they are too near each other.
static class Program
{
[...
I've seen some questions about e.g redirecting to the calling page
but the general suggestion is to pass in the redirect url as a parameter or check the referrer url.
1. Are these really the only 2 solutions?
2. What about keeping track of the latest page visited.. Is that viable and/or possible?
3. Any other options?
Forgot to add I n...
I'm just wondering - the last release of Sandcastle is from May 2008, and it's still listed as Pre-Release Software/CTP and it's not even licensed anymore, as the EULA specifially says:
2.TERM. The term of this agreement is until September 1, 2007, or commercial release of the software, whichever is first.
As Sandcastle is rather ...
When should I call CultureInfo.CreateSpecificCulture(String) rather then CultureInfo.GetCultureInfo(String). The MSDN documentation is not very clear.
Also is there a way to cheaper check if the name of a culture is valid?
I think if you pass “en” rather then “en-GB” to CultureInfo.CreateSpecificCulture(String) you will get an error...
If you are already using Unity as a part of your project, is there any sense in bothering with writing traditional configuration classes?
Doing so seems like it's extra work, but the positives would be more domain specific XML tag names and more concise XML. But then the question becomes when you draw the line between the two and consi...
A .NET Windows form can have a help button on the title bar when the HelpButton property is set to true (and you are not displaying minimize/maximize buttons). When this help button is clicked, the form goes into a help mode where the cursor changes and clicking elsewhere in the form does not have the usual effect. Instead a click indu...
I'd like to collect statistical information, such as PageViews, Number of comments for each user, etc. I've thought about using the observer pattern. How would I implement this in ASP.NET MVC?
...
I am setting up a .net project that is called to generate other webpages. Basically a true CODE BEHIND page. How do I go about making a connection on a Class Library File, when there is no webconfig file present/available?
...
Let's say I have a large .NET solution that has some data access projects that are used by a couple of other project types, like a console app and a web app. I want them to both be able to use the data access project, but the data access app has to grab configuration from its configuration file...so web.config for the web project and app...
I asked from few weeks ago this question:
How can I teach a beginner to write ASP.NET web applications quickly?
And i got some good answers but i liked the answer which tell me to make some small projects with them (me with the beginners)
So i decided to collect some small websites ideas to do with them (i do a part then they complete...
I was wondering if someone could point me in the direction to some articles or white papers containing information on the newest release of the .NET Framework. Having a history of the fixes between releases of the .NET Framework would be helpful too. I have noticed that there are no "release notes" but I really need this information to...
Hi,
I have a simple converter that adds a "+" symbol to a positive number that is entered in a TextBox. When the number is entered I want to initiate some action, but I don't want to wait until the TextBox loses focus: I want to update the binding immediately as the user enters the text.
The default behaviour of a TextBox is that when ...
Is it possible to return an Oracle Ref Cursor to a caller that is in SqlServer T-SQL? When dealing with a normal .Net program there is this Knowledge Base article: http://support.microsoft.com/kb/322160
But is this same type of thing possible from T-SQL?
...
Can anyone think of a good explanation for the fact that result of a dialog is a nullable bool in WPF? This has always baffled me. In WinForms it was an enum type and that made a lot more sense to me.
...
First, to be clear, I am not talking about LINQ to SPRocs.
I have an existing DAL that uses over a 100 stored procedures. This was created when this program was a web app. Now it is a winform app in a sometimes connected environment that uses a local db. I have left the existing DAL in place in the interest of time but am now find...