I'm building a site that runs fine for a few hours, but then *.asmx and *.ashx calls start timing out.
The exception is: "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool This may have occurred because all pooled connections were in use and max pool size was reached."
I'm using SubSonic as the ...
I'm just posting this for pure curiousity on what other teams have named their classes that contain .NET 3.5 extension methods.
Extensions.cs
ExtensionMethods.cs
Helpers.cs
what do you name yours and why, what's the intent of the name you chose and why did you chose one vs. another to hold extension methods?
Not that it's a big deal, ...
I am writing a .NET application that uses cookies to store a login token. I'd like the user to be able to log into multiple installations of this application on the same server (let's say jacob.local/Devel and jacob.local/Stable), so I want to set the Path property for the cookies appropriately. Currently I'm using Request.ApplicationP...
Using C# how would one determine if a URL is an intranet URL? I would like some code to do something if a URL is an intranet one vs public.
...
I often take the classes that linq2sql generates and create a simple data-only class like so
public class myentity
{
public Guid id { get; set; }
public string name { get; set; }
// etc
}
I don't put methods in these classes and I mainly use them as helper classes so I can serialize to/from json and other similar action...
I would like a text editor component that color codes SQL Statements like you would see in SQL Server Management Studio. I want to drop it on a form so I can write sql statements and send the queries to my database. It is not necessary to have intellisense but it would be a plus. Is there something like that out there?
...
I want to use the conditional attribute on a class, or more to the point, is there something that give that effect? Basically I don't want the class to be there in debug mode. I also don't want to have to wrap each call in a #if DEBUG directive.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ...
I'm trying to draw a line with soft edges, regardless of the slope.
Here's the code I have so far:
<Line HorizontalAlignment="Stretch" VerticalAlignment="Center"
Stretch="Uniform" StrokeThickness="5" X1="0" Y1="0" X2="1" Y2="0">
<Shape.Stroke>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<...
Using a StreamWriter to write to a NetworkStream, and a StreamReader to read the response. The app is sending commands and reading responses to a news server.
Simplified code (sans error handling, etc.):
tcpClient = new TcpClient();
tcpClient.Connect(Name, Port);
networkStream = tcpClient.GetStream();
serverReader = new StreamReader(...
Is there a .net client library for openAMQ ?
UPDATE :
Any gotchas/examples of pairing RabbitMQ client with openAMQ Server ? I realize the protocols are different 0.8 / 0.9
...
I have performed an active directory search and now have a SearchResultCollection of all the users in active directory. I've specified all the properties that the DirectorySearch should load, but I also want to know what OU (distinguished name) each user is in. I know I could figure it out be getting a DirectoryEntry for each user, and...
Is there a way to autogenerate a thumb nail image from an .FLV in .net?
...
So I am working through my first WPF project and I am liking what I see so far. There was more of learning curve than what I anticipated, but nevertheless WPF is pretty cool. However, I am struggling a little bit with the data binding concepts. One specific question I have is how do I make my data binding declarations refactor safe? ...
I'm adding items to a StringDictionary and it's possible that a duplicate key will come up. This will of course throw an exception.
If the chance of duplicates is very low (ie it will rarely happen), am I better off using a Try Catch block and leaving it unhandled, or should I always do a .ContainsKey check before adding each entry?
I'...
I have 3 projects in my solution: 1) A silverlight Application Project 2) ASP.Net Web Application Project 3) A WCF Service Application. Projects 1&2 have a service reference to project 3. The binding type is basicHTTPbinding.
If I set project 2 as the start-up project, I am break points set in both project 1 & 2 are hit, but not break ...
I am trying to write the ultimate "Yield" method to yield the current time slice to other threads. So far I have found that there are several different ways to make the thread yield its allocated time slice. I just want to make sure I am interpreting them correctly since the documentation is not very clear. So, from what I have read on s...
I'm making a program that connects to a website and downloads XML from it. It then displays the information to the user.
The problem I am having is when I first open the program and start downloading the XML information it takes a really long time. When I load another page from the site with the program still open, it takes about half ...
Hey Y'all..
Trying to get started with MS's implementation of MVC and I'm already in a jam..
I have a have a route like so:
routes.MapRoute( "Custom", // Route name
"RightHere/{entryDate}", // URL with parameters
new { controller = "RightHere", action = "GetDate" } // Parameter defaults
);
And the...
Do you know any .NET class libraries for querying data in .tel domains?
The query/lookup should use the data stored in DNS (a bit tricky) rather than the webservices.
I looked at some of the sourcecode on the Telnic developer area but I can't make much sense of it.
...
I have a couple of areas in an application I am building where it looks like I may have to violate the living daylights out of the DRY (Don't Repeat Yourself) principle. I'd really like to stay dry and not get hosed and wondered if someone might be able to offer me a poncho. For background, I am using C#/.NET 3.51 SP1, Sql Server 2008, a...