I'm experiencing really weird behavior with the Socket.Connect method in C#. I am attempting a TCP Socket.Connect to a valid IP but closed port and the method is continuing as if I have successfully connected. When I packet sniffed what was going on I saw that the app was receiving RST packets from the remote machine. Yet from the traci...
I posted this community wiki in the hopes of creating a thread of expertise. My question is thus ... "Where do the experts go to learn about the newest .NET coding techniques?".
I'm basically looking for the leading/bleeding edge of .NET architecture, design, development and theory.
I know conferences and trade shows are probably the b...
Media Browser has a provider model, this is basically a chain of classes that get called in a particular order for each entity.
So for example we have:
providers = new List<IMetadataProvider>();
providers.Add(new ImageFromMediaLocationProvider());
providers.Add(new ImageByNameProvider());
providers.Add...
Are there any code coverage tools for manual testing? For example, if I write 30 new lines of code, compile, then run, is there any way to quickly verify that all 30 lines were run?
Also, later, after I've checked the code into an official build, is there any way that I can verify that the test department hit on all 30 lines of code ...
What is the preferred way to store user-level information for .NET application.
I could have used registry or config files - but some users don't have enough
permissions to save/load from these.
I have heard something about assembly private storage or smth like that,
is it a way to go?
My main concern is to make sure that even users w...
It seems to me that it'd be useful to be able to tell at a glance that a class is abstract and not meant to be directly instantiated just like it's useful to be able to easily identify an interface.
My question is, why didn't "AFourLeggedAnimal : IAnimal" catch on? Is it simply because of the possible confusion (which I just noticed wh...
I need to execute a method within an ItemTemplate in my DataList. How do I format the method in the page to work correctly with an Eval?
The method takes an int as a parameter.
<%# NumberOfEmplyeeOrders(Int32.Parse("EmployeeID"))%>
...
Does anyone know a method to insert a image in background into a ListBox in WinForms C#?
Thanks for your attention.
Nice Regards
...
I am writing a directory scanner in .NET.
For each File/Dir I need the following info.
class Info {
public bool IsDirectory;
public string Path;
public DateTime ModifiedDate;
public DateTime CreatedDate;
}
I have this function:
static List<Info> RecursiveMovieFolderScan(string path){
...
I am using C#.net and GDI printing code to print to thermal printer LIPI LWT 150. But, I can't change my font size. I'm using Arial 9pt and 5pt, but it comes out in default size.
Does anybody have any idea about this?
I am using C# code like this:
public frmSale()
{
InitializeComponent();
printingDoc.Pr...
I have problem with updating the dateofbirth value from gridview.
In my database table i have stored date of birth of person in a field like...Day, Month, Year. After storing i have displayed these values in gridview under a single field called DateOfBirth by using this query.
SELECT Id, Name, Address, Day + '-' + Month + '-' + Year...
I have to create a Web Service that can service around 100,000 clients. I have been creating Windows Services for quite some time and use WCF binding in them. The Windows Services use HTTP binding and provide a http end point that can be used by any client that can talk using SOAP.
I am a little confused whether I should create a ASP.NET...
On a previous project I used single root inheritance for my MVC viewModel.
Everything worked and was effective at giving data to the Site master, but was a bit of a pain in the controller actions. To properly construct the root view data each time, we had to override (using method hiding) Controller.View().
I'm tempted to try attribut...
Is there anyway to call PHP script from a .Net application and pass in some parameters?
...
I have strings containing fully qualified type names a la this MSDN document. I'm wondering if there is a Framework class that will help me parse out the various components (e.g. generic type parameters).
Note that I can't simply load the Type with Type.GetType and inspect its properties because the type specified by the string may not...
I'm trying to get nHibernate to join the name of the structure that is stored in separate table into the structure POCO object.
The database looks something like this:
+-----------+ +------------+ +-----------+
| Structure | | Texts | | Languages |
+===========+ +============+ +===========+
| Id | | Id | | I...
Im doing a one-time import routine from one system to another. The first step is to import a lots of data from a lots of csv-files. The first line in each csv-file is fieldnames tab separated. The rest is the data, also tab separated and rows are separated with a CR.
I have written a 20-liner routine that creates the tables and reads in...
Hi, I have a very wierd problem happening to me during unit testing (MSTest in Visual Studio - .NET 3.5 SP1):
I click "Run All Tests in solution"
All tests passes, except for one particular class, where every tests throws the following exception: "System.IO.FileLoadException: Loading this assembly would produce a different grant set fr...
Hello, I'm trying to use Dynamic Data with a entity model that has Abstract class that are Derived by sub entities.
Whenever i run the website i get this error:
model.RegisterContext(typeof(QMSModel.QMSEntities), new ContextConfiguration() { ScaffoldAllTables = false });[KeyNotFoundException: The given key was not present in the dicti...
I'm having a problem with the ID property of dynamically loaded UserControls changing during the Page lifecycle.
More specifically the ID property changes when the system calls Page.Form.RenderControl(htmlTextWriter);
Before it is called the control has ID "ctl84", but after the call it has ID "ctl99".
The output from htmlTextWriter con...