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...
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 :...
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...
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.
...
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...
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...
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...
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...
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...
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
...
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?
...
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...
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 ...
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?
...
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...
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...
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...
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...
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...
...
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"
...