So I've been tasked with creating a tool for our QA department that can read packets off the wire and reassemble the messages correctly (they don't trust our logs... long story).
The application whose communication I'm attempting to listen in on is using .NET's TcpListener and TcpClient classes to communicate. Intercepting the packets ...
An organization I work with is heavily invested in .NET technology, including several high-traffic ASP.NET websites that are used by internal and external customers.
We are looking into hiring a solution architect to support these applications and work on new initiatives.
Several of the resumes coming in are from candidates whose entire...
I looking for a good UnicodeCategory Enumeration diagram that show an example to each one.
...
I have created a setup project for a Windows Service that was written in .NET. The Service depends on several elements in the App.config that is different in the dev environment from production environment (ex: path to a folder)
I now have the MSI file that I can run in production to install the service. However, how do I change the val...
I have a simple question: what's the advantage of instantiating a C# delegate as opposed to just passing the function reference? What I mean is:
Why do:
Thread t = new Thread(new ThreadStart(SomeObject.SomeMethod));
When you can do:
Thread t = new Thread(SomeObject.SomeMethod);
Both will compile and work in my experience...am I m...
I have a web service set up on an IIS server. When I navigate to the page in a web browser it asks me for my user name an password, as desired. However I want to consume the service in a .NET application (C#). What do I need to do to provide a user name and password programmatically so that I can consume the service? Or is there some oth...
Hi...
There is a sequence for FORM(some UI) should get downloaded using service.
Currently, this download is in a BackgroundWorker Thread.
Now, since the performance is slow... We decided to categories the FORMS into 2 and start downloading parallely using another BackgroundWorker on top of the existing Thread.
Now, the scenario is t...
As I recently found out Drawing2D class of NET CF is missing most of it's functionality. Is there a way to expand it with for example "LinearGradientBrush"?
...
I want to use global hotkeys (one that works outside of the app) and i found this
It looks like i need to initialize it using a System.Windows.Window. But how do i get one?
...
Has anyone here have used LINQ to SQL to support the persistence of domain
models?
I'm not planning to use the LINQ2SQL entity designer, just plain-old hand-coded XML mapping and I'm currently having roadblocks.
I'm attempting to use it in a DDD example I'm doing, since my audience only knows LINQ2SQL.
...
Related to this question, but... is it possible to trigger via API a new hardware device scan? I have a serial port Bluetooth device that I'm pairing automatically via API calls with 32feet.net .NET Bluetooth, which works quite nicely. While i can query for the serial services in the scanning of the device, the COM ports don't show up i...
I am working on performance tuning a web service. I am using a trial of JetBrains to profile the application. When I import a file, 15% of the execution time is going toward GetCurrentContextInfo, here's the signature:
Void System.ComponentModel.LicenseManager.LicenseInteropHelper.GetCurrentContextInfo(Int32 &, IntPtr &, RuntimeTypeHa...
I have read around that serializing generic classes is not supported out of the box with XamlWriter.
First I would like to know why? What is harder about generic classes that makes them non-plug-and-play like all the other classes are.
Second, is there a framework that will allow me to serialize my generic class without much work. (M...
I'm looking for a new reporting tool and DevExpress XtraReports look pretty good. I didn't find any discussion on them so here we go.
Have you found any problems with the report format, and saving reports to a database?
Any common performance problems?
How well does the end user report designer work?
How does it fare against SSRS? (...
I've read many of the non-nullable questions and answers. It looks like the best way to get close to non-nullable types in C# (4.0) is Jon Skeet's NonNullable<> hack.
However, it seems that C++/CLI has solved much of the problem by supporting managed references: Foo% (instead of native C++ Foo&). The compiler makes this work by adding...
I've reviewed the .NET Strong Name process a few times and think I'm comfortable with it, but I'm left with what I think is a security gap:
I'm working on a system whereby we store serialized .NET assemblies in our MS SQL database. They are read by a public-facing web application that deserializes and caches them. This is done to allow ...
I've got an enumeration type defined like so:
type tags =
| ART = 0
| N = 1
| V = 2
| P = 3
| NULL = 4
is there a way to do a for ... in tags do ?
This is the error that I'm getting:
The value, constructor, namespace or
type tags is not defined
...
I'm using VSTO to automate the word Processor.
code behind C#, word 2003 Addin
I notice that if I keep the font size to 11 I can split a Word Table Cell into 11 rows,
but if I increase the font size it can be split into 25 rows.
Is there a way on which I can get the max split size of particular cell before executing split on it.
...
I need to change format of
this.TextBox3.Text = DateTime.Now.ToShortDateString();
so it returns (for example) 25.02.2012
I need 02.25.2012
how to realize it ?..
...
the default implementation shows the output as ': : ', now i dont want this format, i want to cut off the sourcename and eventid because it' s totally useless for me.
is there any easy way i can accomplish that?
my current workaround is to derive from TextWriterTraceListener and override the TrackEvent method. use reflector to copy the...