If I have something like while (true) Application.DoEvents(); (it's really not exactly like that) and when I close the main form, the program stays running. How can I make the program stop running? Is there any variable like 'MustTerminate' that I can check in my while loop to know when to finish it? On real life the loop is waiting for ...
Will setting e.isAuthenticated to true be enough to set the forms authentication cookie?
this is in the AuthenticationService.Authenticating event of the wcf authentication service.
...
Does anyone know of a generic phone number parsing library for .NET? Ideally I'm looking for something similiar to the Ruby Phone library.
...
I need to maintain a connection between a server and multiple clients so that the clients can send commands, and the server trigger events. The server is basically a music-player, and the clients send commands like "Play()", "Pause()", "GetPlaylists()", etc. The server on it's side need to be able to tell the clients things like "SongEnd...
For example in a .NET app.config you might get
<configuration>
<configSections>
<section name="MyConfig" type="MyAssembly.MyType, MyAssembly, PublicKeyToken=null" />
</configSections>
...
</configuration>
The signature in the type part seems to be standardized in a variety of .NET places but I have no idea how to do thi...
Hi, i would like to list the files and folder on a remote web sever (http) using DirectoryInfo. I get an error when i do:
DirectoryInfo myDir = new DirectoryInfo(@"\\myservert\parantFolder\FilesFolder");
FileInfo[] dirFiles = myDir.GetFiles("*.txt");
What am i doing wrong. Would be grateful for every assistance.
Thanks
...
Where can I find a listing of what Microsoft recommends for program install directories, application data, etc? (e.g. Best Practices)
...
UPDATED
I used below solutions (loading Image from stream), but get new problem. img object is absolutely correct Image class instance with all field filled with correct values. But calling
img.Save("path/to/new/image.bmp");
on it results in new exception for GDI+ (System.Runtime.InteropServices.ExternalException, in GDI+ interface) ...
Are there any free video tutorials that talk about EF in depth and not just cover the basics?
Thanks
...
I would like to grant document level permission based on custom claims in claims based web site. A user may have hundreds of document or one. Is it a good idea to apply custom claims? What is the avantages or disadvantages? Is there a limit on the number of claims that can be added to the claim set?
Thanks in advance for your help.
...
I want to call my AuthenticationService from the code behind of my .net application. This is the build in wcf forms authentication service.
How can I do this?
I can't seem to figure out how to instantiate it.
...
Hi, i would like to list files on remote sever (HTTP) Please advice me on possible options for a console application.
...
I am trying to setup Remote Debugging on one of our internal systems as there is a Function in class library that keeps failing for our users but not me. I have the Folder Share to my Remote Debugger folder set up and I can attach to the process on there machine but I get the following message --> The following module was built either w...
Hi!!!
Is there any search engine (ideally for .Net) which can return stem words after indexing text? I need to get all words in stem form from text;
Please help me;)
Thank you for any advice!
...
I want to build a windows service that will use a remote encoding service (like encoding.com, zencoder, etc.) to upload video files for encoding, download them after the encoding process is complete, and process them.
In order to do that, I was thinking about having different queues, one for handling currently waiting files, one for fil...
Hi,
I come from a .NET background where continuous integration was/is heavily practiced, i.e. Subversion, Cruise Control, MS Build - plus a suite of unit and integration tests.
Current project I am on the client (big) believes in using Teamsite. I had never heard of it.
Two posts I have read here and here - not positive!
I have a mee...
Should a class implement an interface always in order to enforce a sort of 'contract' on the class?
When shouldn't a class implement an interface?
Edit: Meaning, when is it worthwhile to have a class implement an interface? Why not have a class just have public members and private members with various accessor/setter functions?
(Note:...
I'm using the following code, which works, to login a user to an application built in VB.NET against active directory.
This code works great but I need to retreive the user's first name, last name, display name and also check if the user is part of a group.
I've tried many forms of adResults.Property("displayname").ToString() and the l...
How I can get the duration in milliseconds that is valid for a DoubleClick in WPF. The same as in Windows Forms the SystemInformation.DoubleClickTime-property was.
...
I needed a double[] split into groups of x elements by stride y returning a List. Pretty basic...a loop and/or some linq and your all set. However, I have not been spending much time on extension methods and this looked like a good candidate for some practice. The naive version returns what I am looking for in my current application....
...