.net

How to check what connections a given process has created to the internet

I mean, if you use tools like NetLimiter, they let you know that a given process that connections to IP1, IP2, etc. I am using packet sniffing for my application, but I only need to packet sniff one application, so I'd like to know to what ip addresses that application is connected. Any easy way to do this? I am using a wrapper for WinPC...

Webserver not using the latest files

One of the projects I am working on includes a website that is hosted on a cheap shared hosting server. Whenever I upload to the server some updated files, they don't necessarily become available immediately. It can take from 15 to 30 minutes before the server actually starts using the new files instead of the old ones and in some cas...

Entity Framework with lots (50K+) tables

I would like to use the Entity Framework against a database with well over 50,000 tables. I only want to create entities on a small portion of these tables (less than 10). When I go to add tables using the wizard or server explorer, Visual Studio seems to not be able to handle that large amount of tables. It appears as if the tree vie...

StreamWriter .NET - how to get the best performance? C# .Net

What is the recommended approach to get the best performance when we need to create text files bigger than 10MB. There are multiple sections in the code that need to write stuff to a single file. This means a lot of text lines. Option #1: (This logic will be called at several times) Create a StreamWriter instance Write some lines (a...

How to implement a universal login system like Buxfer: Open Id, Facebook, Google, Aol, etc

Any idea how Buxfer (Buxfer.com) would have implemented their universal login system? Did they use Facebook Connect and Google Friend Connect? I'm trying to implement one for my site using .NET C#, but I couldn't find any .NET client libraries for Google Connect. But I was curious how Buxfer managed to let users sign in with not only F...

How to automate testing connectivity to Windows 2003 server?

Hi all - I am writing an app to test RDP connectivity to a bank of VM Windows 2003 servers. The typical failure mode is for some code running on the server to get itself in a loop, preventing RDP connections -- and most any other type of connection, as well. When this happens, you can still ping the server and it seems to be fine, but...

.net application architecture

I'm currently trying to design an application and I'm having trouble trying to decide on the architecture to use for it. This will be a .net application and essentially what this application will have is a server running some specific software that this application will interact with. On this server there needs to be a provisioning ser...

How to use tlbimp.exe's /keycontainer switch?

Anybody have an example of how to use tlbimp.exe's /keycontainer command line switch? The googles...they don't help. It's always /publickey, or /keyfile. No example of using /keycontainer. ...

Any way to atomically check for existence of list item and call method on list item?

I have a list of threads, and I'm trying to get my main thread to wait for all of the threads in the list to terminate: while (consumers.Count > 0) consumers[0].Join(); The problem is, this isn't atomic, and I can get an "Index was out of range" exception. Is there any atomic way to check for the existence of consumers[0] and call co...

How to extract start timecode and duration/length metadata from a .mov file?

I have C# .net client on windows and need to extract start timecode and duration/length metadata from a .mov file. Anyone out there who knows how to do it? I looked around on net but not found anything yet. Thanks in advance for your time. ...

What kind of permission I need to assign (Reporting Service)?

I am doing some work in Reporting Service 2005. I need to call a COM object so I wrapped the call in custom assembly. The approach worked in preview. But when I deployed the report I ran into #Error. Microsoft has a KB article about this: http://support.microsoft.com/?kbid=842419 It says that I have to assert permission in my custom as...

SQL value does not populate ASP DropDownList control

I'm trying to populate a dropdown list control. 'Inputs' is the DB. Table is 'ApplicationName', and it has a random value assigned to it. For some reason, when I click the Test Submit button, nothing is appearing in the control (DropDownList1). protected void TestSubmit_ServerClick(object sender, EventArgs e) { // Initialize the da...

Must every BeginInvoke be followed by an EndInvoke?

This page in the MS documentation, covering asynchrony in Windows Forms applications, states: You can call EndInvoke to retrieve the return value from the delegate, if neccesary, but this is not required. (emphasis added) This page covering the general case of asynchronous delegates, states something different: No matter whic...

How can a read receipt be suppressed?

I am programmatically "reading" e-mails using WebDav. I am also deleting these e-mails when I've finished having my way with them, however, this is causing an interesting problem. Each time I delete an e-mail the original sender is getting a not read response. I have logged into OWA and checked the option Do not automatically send a r...

A random cross-thread operation exception for Winforms multithreaded UI operation

For some reason, this safe-looking method raises a classic exception. Cross-thread operation not valid: Control 'statusLabel' accessed from a thread other than the thread it was created on. This code obviously should call an anonymous method through Invoke when invoke is required. But the exception occurs every once in a whil...

Class library in Visio

How to represent a .net class library and its classes in the Visio? To me, the Package and the Class seems to represent the library and classes respectively. Any suggestions? ...

Help with Search Engine Architecture .NET C#

I'm trying to create a search engine for all literature (books, articles, etc), music, and videos relating to a particular spiritual group. When a keyword is entered, I want to display a link to all the PDF articles where the keyword appears, and also all the music files and video files which are tagged with the keyword in question. The...

Proper build action when adding a non-reference dll to a .NET project in Visual Studio.

Lets say I want to include a DLL in a Visual Studio project that is not going to be a reference. In my case it will be a custom trace listener, but it might also be a DLL that I am loading via runtime binding. I don't want to add it as a reference because I don't want to introduce the possibility of any of my code statically referencing ...

Plugins to application ( Can i control the namespace/code inside the plugins )

Im currently adding a interface to my application so other people can extend it with plugins. My application is used by MMO gamers and i will not have any control over the plugins ( In that anyone will be allowed to make them ) and i was hoping i could have some degree of control over the code in the plugins. What im afraid of is someon...

The name 'ConfigurationManager' does not exist in the current context

I am trying to access connectionstrings from the config file. The code is ASP.NET + C#. I have added System.Configuration to reference and also mentioned with using. But, still it wouldn't accept the assembly. I am using VSTS 2008. Any idea what could be the reason? Another weird thing is the assembly name shown as "System.configuration...