I maintain a program that sends messages between users. The clients connect to a WCF-service that is hosted in IIS 7.0 on my domainserver. Up to now I successfully used basicHttpBinding for this, without any configuration. Now, I want to change to wsHttpBinding because this should encrypt the transport of the messages. The server has a c...
I have a device actively connected to the computer via Bluetooth. From my C#.NET application I wish to disconnect the device so that the computer is no longer connected to the device.
How would I go about doing this?
I'm guess it would have something to do with finding the appropriate Socket and disconnecting that socket? (But this is ...
I'm a web developer so all my experience is with ruby, python, or PHP. However, I'm gonna do a little windows programming.
I want to build a light weight web server that can handle incoming requests and pass them on to a COM port. I want to be able to distribute it as an exe that will install the server as a windows service.
What do yo...
Hello.
I would like to know how to pass the table name and a table field name via SqlCommand on C#.
Tryied to do it the way it's done by setting the SqlCommand with the @ symbol but didn't work. Any ideas??
...
For my hobby and self-employed work I write games,
and as of now i've only targeted Windows.
I want to break the chains that bind me to windows (and also important: .NET) but I do not know which language I should use primarily for writing 3D games , I want to use DirectX on windows and OpenGL on linux so there should at least be a way t...
Hi,
I am using the latest Facebook Toolkit. I want to retrieve all albums of the current user.
I use FacebookService.GetPhotoAlbums(), but the result has an itemcount of 0 :-/ No error is raised.
Do you have similar experiences?
...
I've been using DoNetOpenAuth library and followed the example here
The authentication is working, but even though I require an email, the claimsresponse is null.
In fact, it doesn't matter what I require, claimsresponse is always null. Not sure what I'm doing wrong and I'd appreciate your help.
Thanks in advance.
Here is my login but...
I am trying to write text on the circled image near the edges using .net libraries. Please refer to the following url for image to see what I am trying to achieve (Even I can't do perfectly in paint :( ).
Image Url
I tried Graphics, Bitmap and other relevant classes of .net but they don't have any feature to do it. I am open for any ...
Hey everyone,
I've got a .NET application running on WCF. In that application, I have a variety of "Types" defined ("CourseType", "PresentationType", "HierarchyType", etc) as enums. These are automatically synced with the database, so I can write nice code like:
public enum CourseType {
Online = 1,
Classroom = 2
}
...
if(course...
Hi guys,
I'm trying to migrate from watin to selenium 2
However, upon loading a significant ammount of pages, it is selecting
the 1st frame in a frameset by default. (which is a header frame)
I can't seem to select any other frame on the page, or navigate to the
parent html (containing the frameset)
heres some stuff I've tried;
Bro...
From the performance view, is it better to check or not to check for Nothing(null) before set it?
Is clear that for readability maybe there is no need of supplementary step, but for performance? Maybe testing the IF is less time consuming that setting to NULL, if there is no need of?!
I run that on a computer, and the result was the sa...
I'm trying to control windows media player in c#. That means, I want to be able to programmically play songs. To reiterate, I'm talking about the full version of WMP, not the component you can embed into a windows form. I can launch the WMP process just fine, the problem comes in actually controlling it as I can't think of any keypresses...
Hi!
In the following example I would like to retrieve the text between pMAINp and the first pMDSp. The regex has a look-behind and a look-ahead:
string contents = "pMAINp MAP B FlightTest Load pMDSp ZutiCarrier pWingp some pMDSp more pWingp end";
string blockMainRegex = @"(?<=pMAINp)[\s\w+]+(?=(pMDS)?)";
The result I was hoping for w...
If i am running a .net 4 application how do i load a type from an earlier .net runtime?
For example i want to load the type "System.Object" from .net 3.5
...
Hi,
I am using Entity Framework POCO to generate some self-tracked data objects, and I exposing these objects from a WCF service interface.
I have EntityA & EntityB, which both map to different tables in the database.
I would like both EntityA and EntityB to inherit from a base 'Entity' class, so that I can implement a simple WCF serv...
Hi,
I would like to select a range of items in an array of items.
For example I have an array of 1000 items, and i would like to "extract" items 100 to 200 and put them in another array.
Can you help me how this can be done?
...
Hi,
I would like to have a function in which I will input an array and as a result i need another array and an integer value. Is this possible?
Example:
private int[] FunctionName (int[] InputArray)
{
//some function made here
int intResult = xxxxx
int[] array = xxxxx
return intResult; //but here i need also to pass t...
A few days ago my .NET 3.5 applications began to fail while start issuing the error
"Unable to find a version of the runtime to run this application".
As I did not do anything with them, this looked weird to me. After some investigation, I discovered, that the reason is Windows automatic update which installed service pack for .NET 3.5...
Hello All,
I am developing an Asp.Net MVC website using Windows Identity Foundation and STS website for authentication. it works fine as whenever a user tries to access a URL, it redirects to STS website if that session is not authenticated.
Now I want to add a page in the application which should be available without authenticating in...
I would like to create two mdi parent forms one containing another. Is it possible to so?
...