.net

In .NET, how do you provide a session identifier to a web service that requires authentication?

I am using a web service that requires authentication from .NET (Visual Studio 2010). According to the documentation, you first request a session identifier from the first web service. I can do that with no problem. Then you are supposed to call the second web service for actually performing your query, passing the session identifier in ...

Adhoc stored procs on silverlight app

I have a simple requirement to be implemented on a silverlight app. I want to list down all the stored procs in a drop down and view its output on a grid. I am currently having a linq to sql class where I have drag dropped all the stored procs I want to view and generated the classes on a .dbml file. This works for me at the moment. Howe...

SQLCLR trigger vs Windows service. When is it appropriate to use SQLCLR?

We have a .NET e-commerce application with a SQL Server 2005 back-end. A new order requires certain "post-processing". These tasks include sending emails, creating files, uploading files to an FTP server, and performing CRUD operations against a WCF data service. The code to perform all these tasks is already in place as several .NET cla...

cannot launch Visio 2010 application from Sharepoint 2010 featureactivated code

Dear members ! Require Your Assistance whith following issue : I am developing Sharepoint feature which should launch Visio 2010 application. Sharepoint is 2010 , OS is Windows 2008 R2 this line of code app = new Application(); raise error System.UnauthorizedAccessException {"Retrieving the COM class factory for component with CLSID {0...

Executable is not signed after installed via MSI

We have an application that requires the user to be an admin to run. So, in the app.manifest we have set up <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> We have a key to sign our assemblies with, which I have been able to use for signing the MSI and the executable of our application. The application's e...

Uncatchable .NET runtime 2.0 error - user machine - what next?

Situation: I have an application that uses http connections extensively (stream ripping app) and it is supposed to work 24/7. And it does. However, occasionally, it crashes with runtime error that is uncaught anywhere, and dumps following to the event log: Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Categ...

Is there any point to the setup.exe file created by a setup project in visual studio?

I've created my first setup project using Visual Studio 2010. I've noticed that when I build the setup project it generates an MSI installer file and a setup.exe executable. However, I seem to be able to just right click on the MSI file and choose install to install my application rather then running setup.exe. Does the setup.exe file ...

ASP.NET Session Load Performance

Hi Everyone, I need to calculate some performance numbers for a few custom session storage providers. I need to know how long it takes to rehydrate session and how long it takes to persist it back to the store. None of the providers provide this level of detail in the debug information. Is there a generic way of tracking session load ...

How send raw ethernet packet with C#?

Hi, Is there a way to send raw packet Ethernet to other host via C#? In Windows 7 if it makes difference. ...

Bug in Directory.GetParent ?

I was hit in the face by a very weird behavior of the System.IO.Directory.GetParent method: string path1 = @"C:\foo\bar"; DirectoryInfo parent1 = Directory.GetParent(path1); Console.WriteLine (parent1.FullName); // Prints C:\foo, as expected // Notice the extra backslash. It should still refer to the same location, right ? string path2...

WebKit .Net RaiseEvent/Click equivalent

I'm experimenting with the WebKit .Net component in an application. Usually with the standard WebBrowser component I can select an element by id and then raise an event on it using the RaiseEvent method or, for clicks, simply use the Click method. However, I can't seem to find similar functionality in the WebKit browser - how should I go...

CodeDom and Silverlight

Can Silverlight apps (the .xap file, the testpage.html, content resources along side a ClientBin, out of browser settings, etc) be created using only System.CodeDom from a regular .NET app? Meaning I have a console or winforms app that creates Silverlight apps - is this possible with System.Codedom? I have searched high and low and have...

.net 4 mvc2 output caching substitute name

Hi, I have output caching implemented at controller level [OutputCache(CacheProfile = "MyProfile")] public Result MyControllerAction().... I have some text in matching view (Views/MyController/MyControllerAction.aspx) that needs to change with each page load, even though the returned page is cached. I think this is also called donut ...

Changing Firefox proxy settings?

How can I change Firefox's proxy settings from a script like a vb script or maybe .net? If someone could show me how to do this it would be great. ...

.NET Application Memory usage grow over time, memory leak or not?

I wrote a .NET application where memory usage is growing over time. As a test, I set it up to download 800 * 5K (average) size files and doing XML transform and using DTComcontroller to generate manifest, inside 1 hour with an interval of 15 Minutes. During a period of about 5 hours, memory usage grows from 35M to about 70M. Not sure if...

how to update SVN on a folder and build a csproj automatically?

i'm extending my precompiling application by automating the following steps: 1) update the SVN on a folder (we're using TortoiseSVN, unfortunately) 2) do a programmatic build on the csproj after an update was made I would like to know how i can accomplish these in c#? thanks. ...

Are .net delegates real objects?

I have been working for some years in C# and one thing always bugs me. Delegates. They have no state, they are pointers to object methods, and the only way to go when dealing with threads or any other type of parallel programming technique that .net has to offer. My main concern is that when programming in an object oriented style, the...

Problem combining Reactive Framework (Rx) queries to provide correct UI behaviour

I'm trying to remove the more tradition event handlers from a Silverlight application in favour of using a number of Rx queries to provide a better, easier to manage, behavioural abstraction. The problem that I need to solve, but can't quite crack it the way I want, is getting the behaviour of a search screen working. It's pretty standa...

Inherited .Net Class ToString Not Overriding

I have created an inherited class "StorageMedium" from a base I called "DataTypes". StorageMedium has two properties, Name() and Capacity(). In the DataTypes object, which all other objects in the class library have been inherited from, I have suppressed the Equals, ReferenceEquals, GetHashCode, ToString and GetType functions so these f...

How to pass Current User Information to all Layers in DDD

Hello, Similar questions have been asked before but not quite the same (unless I missed it) I want to pass IUserInfo class instance through my Service, Domain , Domain Events, Domain Event Handlers... Whats is the best way to do it. Should I Inject it using IoC by registering it against instance of Httpcontext.Current.session["Cu...