Hi,
I'm trying to build a server that will receive files sent by clients over a network. If the client decides to send one file at a time, there's no problem, I get the file as I expected, but if it tries to send more than one I only get the first one.
Here's the server code:
I'm using one Thread per connected client
public void Proce...
Hey guys
I have an edmx model which I have draged 2 tables onto - One called 'File' and the other 'ApplicaitonFile'. These two tables have a 1 to 1 relationship in the database. If I stop here everything works fine.
But in my model, I want 'ApplicaitonFile' to inherit from 'File'. So I delete the 1 to 1 relationship then configure 'Ap...
I'm in search for a library that will let me work with web pages using C# without having to display anything graphically. The library should handle web sites that use JavaScript / AJAX and it should return the correct HTML as if I were viewing the source from within Firefox/Chrome.
...
HI everyone,
Just looking for a website or pdf reference which has a color palette of the .NET (Visual Studio 2008) foreground colors? (E.g. like AliceBlue, AntiqueWhite, Cyan....)
...
Hi,
QUESTION: Re use of .NET Backgroundworker, is there not a way to let exceptions pass back normally to main thread?
BACKGROUND:
Currently in my WinForms application I have generic exception handle that goes along the lines of, if (a) a custom app exception then present to user, but don't exit program, and (b) if other exception t...
StructureMap newbie question.
public class SomeClass: IInterface1, IInterface2 {
}
I would like the following test to pass:
Assert.AreSameInstance(
container.GetInstance<IInterface1>(),
container.GetInstance<IInterface2>());
How would I do an explicit registration of this?
I know in Castle Windsor I would do something lik...
I'm trying to write a program to test student code against a good implementation. I have a C++ console app that will run one test at a time determined by the command line args and a C# .net forms app that calls the c++ app once for each test. The goal is to be able to detect not just pass/fail for each test, but also "infinite" (>5secs...
I have checked the possibilities of msn live sdk, i haven't come across a possiblity to add video options to a "bot".
How would i implement this? I want to stream video's directly to a user's msn (multiple video's) ... Would this be possible?
...
I have a collection that contains all the items that I want to keep track of. I want to display 3 different grids, and in each one I want to display a different filtered version of the items. Is there a way to bind to a filtered version of the main collection without having to maintain 3 separate collections to bind to?
...
The delegates in C# offer similar functionality as function pointers in C. I heard someone saying "C# delegates are actually better than function pointers in C". How come? Please explain with an example.
...
I'm having some issues with code that is intended to find a user in Active Directory by searching on their email address. I have tried 2 methods but I'm sometimes finding that the FindOne() method will not return any results on some occasions. If I look up the user in the GAL in Outlook I see the SMTP email address listed.
My end goal i...
Is there a way to create a protected download link which is random, expiry, requires a password and pointing to a specific file in C# that is associated with IIS 7.0?
Several random links can link to the same file.
Built-in codes or perhaps 3rd party libraries?
For example, http://www.example.com/<some random gibberish>/<md5 of fil...
I have a list box and i am trying to get currently checked item inside ItemCheck Handler , but i couldn't ,
->I can get List of CheckedItems using property chckdLstBox_Metabolites.CheckedItems
But how do i get the item that is checked just before????
...
How to add comments/description/information about the web service methods so that the person who will invoke it will know what the method is for , what are the useful params etc. so the invoker will be able to read these.
...
I'm new to asp.net and now following through the http://nerddinnerbook.s3.amazonaws.com/Part1.htm howto.
All is fine except of when code is falling with exception i see
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
but at project properties 3.5 is selected.
what is wrong and h...
Hello.
I want to change .NET framework v3.5 to .NET compact framework v3.5.
But I can't change SSL Stream class to compact framework version.
For resolving this problem, I already read some article and msdn library.
http://blogs.msdn.com/cgarcia/archive/2009/08/21/enable-ssl-for-managed-socket-on-windows-mobile.aspx
http://blogs.msdn....
Hi
I could not find any tutorials on their site. I am wondering can I use Html Agility Pack and use it to parse a string?
Like say I have
string = "<b>Some code </b>
could I use agility pack to get rid of the <b> tags? All the examples I seen so far have been loading like html documents.
...
My manager is starting to get pretty annoyed that I'm devoting time to designing tests (he sees testing as something you do after the software is written.). His do I convince him otherwise?
...
Does VSTO 2008 work for Office 2010 or will it only be VSTO 2010? If it is VSTO 2010 then does this mean that I have to update all my clients to .NET 4.0?
...
First of all I did gave a look at this one. But I didn't got the solution.
The accepted anser says to use it like this:
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "myExec.exe";
p.Start();
But this is not working for me. THe exception's message...