I have a simple console application which runs as a WCF service host. bsicHttpBinding is used.
When I try to get the service reference in my client ( another console app) I get this error
"There was an error downloading http:// localhost:9999/TS.
The request failed with HTTP status 400: Bad Request.
Metadata contains a reference that c...
I have a collection of List where the object collection is a strong typed custom object I created, I have around 300 objects in the collection.
Is it possible for me to determine how much memory this particular list is using while stepping through code during a debugging session.
...
I have a project who's structure in Subversion goes as follows,
branch
tags
trunk
-- Library
---- Library Code
-- Website
---- Website Code
The Library folder contains most of the project code and is a class library. The Website folder is a website project which uses the library. The website is what gets deployed to the live site.
I ...
Hi,
is there any way to make a part of a label.text Bold?
label.text = "asd" + string;
string should be bold :)
...
My issue is that I have a List of strings, and I want to create one thread for one string, pass the string into the thread. This is my code:
public void getImageSource(List<string> UrlLinks)
foreach (string urlLink in UrlLinks)
{
ThreadStart myThread = delegate { Fetch(urlLink); };
...
Hi,
I need to define an appender for log4net in a way that I get one log file for each day, but the total number of files are limited to, let's say, 30. That is I want to keep only the logs not older then 30 days, delete the older ones.
I've tried doing it with RollingFileAppender, but it seems that specifying a limit of files to keep...
Each Store has many Products.
Store --> (N) Products
How to create an NHibernate criteria to get stores with more than 2 products which price is greater than 2.0$ ?
I know how to get Stores based on a criteria on Products and I also know how to get the count of Products which Price is greater than 2, but I can't find a way to put ...
I need to connect and perform some operation on oracle database from my C#/.NET application. Since it is a high load server application, I wish that I use only async calls to do database operations.
I understand that System.Data.OracleClient is obsolete now, what are my options to do achieve above?
...
Hi,
I'm using .NET 3.5 / C# and the problem I face is that I need to be able to encrypt and decrypt a .config file which holds all my database connections to be used with the EnterpriseLibrary.Data.DatabaseProviderFactory, shown at end of question.
This encryption and decryption is custom and is done with a known key and has to be the sa...
After IIS reset, first hit taking a long time because AppPool is starting and other .NET components, DB connections are initializing.
What would be the best way to warm up IIS applications and preload required components (e.g. GAC Assemblies, WCF, WWF libraries)
I'm working on IIS 6, Windows 2003 server x64
(I know there is warmup mo...
I want to do the simplest job: Getting products which name is "Potatoes".
// solution 1 - Using Expression.Eq
return session.CreateCriteria<Product>().Add(Expression.Eq("Name", "Potatoes")).List<Product>();
// solution 2 - Using Example
Product exampleProduct = new Product();
exampleProduct.Name = "Potatoes";
return session.Cre...
I have an API for a game, which calls methods in a C++ dll, you can write bots for the game by modifying the DLL and calling certain methods. This is fine, except I'm not a big fan of C++, so I decided to use named pipes so I can send game events down the pipe to a client program, and send commands back - then the C++ side is just a simp...
I have web service on server! This service is calling from the clients applications!
Now how i can get user name and computer name of clients that using this service, for example if application from Clint1 calling this service i want to get computer name and user name of Clint1?
Many thanks!
...
I'm using WinApi and C#. I need to find window with variable caption. Caption contains constant part. I think that I need to enumerate all windows. How I can do this?
...
I have a .NET queue object. The producer thread do the Enqueue operation, the data enqueued in the queue is a byte[] array, while the other consumer thread do the Dequeue operation on the same queue object.
I use locks to handle concurrency. My code seems to work fine all the time, but yesterday, weird things happened. The data I got fr...
Hi,
Most of the time during coding, i found that whether i can write code in less number of line.
I don't know when we write some login in less number of line in c# then whether we achive good performance or not? whether dotnet compiler compile code faster or not?
Is there any source of tutorial/ book/ guideline so that we will make c...
Does the index in array Screen.AllScreens map to the Screen number as shown by the operating system?
...
I wonder how to obtain feedback from an event?
Situation:
Let's say that a object (Slave) can produce events(request changing a property). An other object (Master) subscribes to these events, analyzes the changing property value and accepts, or denies this change. Then the feedback is returned to the Slave, and it change or not its pro...
I am new to Java (but have a fair bit of .NET experience).
I need to get a Java application up and running quickly, so what I am looking for here is advice on components that will simplify or reduce the pain of common tasks and whose payoff will either be immediate or at least come with minimal investment in time spent learning how to ...
Is it possible to get an enum to hold 64bit values? I wrote the below and got this compile error message.
enum EnumTest { a = 0x100000000 };
error CS0266: Cannot implicitly convert type 'long' to 'int'. An explicit conversion exists (are you missing a cast?)
...