.net

How to use different credentials with several COM objects (via RCW) in .NET

My understanding is that as soon as .NET fires up the RCW to access a COM object, the security credentials are persisted within the COM context until the .NET application is closed... thereby preventing the use of different credentials later on during execution. There is a RCW wrapper on Codeplex that I think will allow me to take a giv...

AutoResetEvent not blocking properly

Hi guys, I have a thread, which creates a variable number of worker threads and distributes tasks between them. This is solved by passing the threads a TaskQueue object, whose implementation you will see below. These worker threads simply iterate over the TaskQueue object they were given, executing each task. private class TaskQueue :...

How should I cluster items into an ordered collection that makes sense graphically?

I've got an an application wherein I will be provided with an unordered collection of items (objects that can basically be represented as rectangles) and need to put them into a larger rectangular shape (a cluster) based off of their physical location. There may be more than one cluster of items, and some items may be in a cluster by the...

Threads in Web Application ASP.NET

Hi Guys, I want to use threads in ASP.NET web application. Is it possible to use threads like we use in windows forms application? or what would be the best approach to handle different tasks on the same page which are very time consuming and all the task are inter dependent at the one point. Thanks in advance. ...

What protocols are available for performing remote operations from within Silverlight?

Hi All, I have a Silverlight app which currently uses a WCF to interact with the back-end. For some reason, the asynchronous calls occasionally (in fact semi frequently) vanish into thin air. We've yet to set up tracing or logging, however I've 'synchronized' some of the more critical calls with some cheap hacks and that seems to have...

Clear a Web Browser 'session' in VB 2010 express upon navigate away.

I have created an application in Visual Basic 2010 Express that is essentially a 'radio player'. It has half a dozen buttons and a web browser control. Each button links to an online 'listen live' radio station. Clicking each button simply navigates the browser control to the appropriate URL. Simples! My problem? One particular sit...

Integrate or link to a SQL Server Management Studio Project from with a Visual Studio Solution

While most of the work for my .NET projects is done in Visual Studio, I prefer to work in SQL Server Management Studio [SSMS] (I'm currently using the 2005 version) when editing stored procedures and doing other DB-related tasks for a project. I used to just open a ton of query Windows, commit my alters, and move on, but I recently disc...

dynamic paper form generation

currently, i've got an application that needs to fill out a printable form with data. clients send me a form and i create a digital version of it. there are tons of these forms and i often need to customize them and add additional fields, etc for my clients, so they should be really simple to create and modify. i've got a system in p...

Defining a priority when using multiple IOperationBehavior attributes.

Consider the following IOperationBehavior attributes: public class OperationCredentialsAttribute : Attribute, IOperationBehavior { } public class OperationProcessesAttribute : Attribute, IOperationBehavior { } ... and the following operation definition: public interface IService { [OperationCredentials(true)] [OperationProce...

How to view public key tokens on DLL's

Does anyone know of a way to view the public key token on a DLL? I'm investigating a possible mismatch between what is expected in code and what is being built. Thanks in advance, It Grunt ...

Convert double into hex in C#

I have this value: double headingAngle = 135.34375; I would like to convert it to HEX and print the HEX to the console. I have already converted a string and int into their respective HEX values, but a double seems to be much more tricky. Can someone point me in the right direction? ...

Even using sgen on my service class still results in agonizingly slow constructor

Hi all. So I'm trying to speed up our applications startup times -- and I've identified a major bottleneck to work on. Each of our webservice client classes takes forever and a day to instantiate. Some investigation revealed this is entirely due to the SoapHttpClientProtocol running GenerateXMLMappings. I started searching for inform...

Microsoft Code Contracts and CI build server.

Hello all. We are migrating to .NET 4 and very interested in implementing new Design By Contract capabilities. As we know Code Contract engine requires installation of Code Contract addin and VS Ultimate or Premium (for static checking). Here is my questions: Can I use code contract rewriting without installing VS on CI build ...

Why does my program work only in Debug mode?

I'm using Visual Studio 2008, with .net framework, C++/CLI. My program only runs in debug mode (even when run from explorer) - but in release mode it says program has stopped working. (But if I press F5 when it release mode it runs fine) All the settings are identical. What could it be? does anyone have any suggestions please? ...

Generate file for download using Response.Write and change elements on the page

Hi, I am trying to change the text of a asp:textbox and collapse some ajaxToolkit:CollapsiblePanelExtenders within some ascx controls on my page as well as output a dynamically generated file. I have no problem collapsing the CollapsiblePanelExtenders and changing the text of the textbox from the codebehind or outputting a file. The p...

Microsoft JScript runtime error: '__nonMSDOMBrowser' is undefined

I'm working with a Webservice. Whenever I use this webserivce the following exception has occurred!!! this exception doesn't concern to my WebApp files! it concerns to the WebService files. Microsoft JScript runtime error: '__nonMSDOMBrowser' is undefined The exception has occurred in the following function : function WebForm_AutoFocu...

.Net 1.1 Application - Stack Overflow - Slient shutdown - Dataset bug?

Im a developer for a major company and we are facing a nasty crash scenario. Some background the application is fundamentally a message processing system. The aplication has a large in memory dataset shared across several threads. Access to the dataset is syncronised (usually) The in memory dataset contains several tables Most message...

How to keep data in memory in asp.net MVC2 web app?

I have a MVC2 web app without a database that is being hosted by IIS7. The model is a custom index of some properties of a filesystem, and right now the index is stored in memory. The problem is that on a regular basis, the data stored in memory gets released, and the index must be recreated. Maybe the best solution would be to serialize...

Trouble with StackOverFlow Exception

Hi I m having a problem with satckloverflow exception it comes from a method and does not get caught i m using c#.net 3.5 please help... ...

linkbutton doesn't work for updatepanel

i have set of link buttons outside update panel but when click any one of them they donot work at all , when i set the postbackUrl they make full postback my source code : <asp:Panel ID="pnl_viewImages" runat="server"> <asp:Label ID="lbl_viewImages" runat="server" style="texalign: left" ...