How do I send/Receive SOAP messages usiung .NET
I am new to SOAP. I have to send XML using SOAP to an external web service on the internet and parse the response. How can I do this using the .NET Framework 3.5? ...
I am new to SOAP. I have to send XML using SOAP to an external web service on the internet and parse the response. How can I do this using the .NET Framework 3.5? ...
I am working on an ASP.NET MVC project which allows users to construct arbitrarily complex queries by adding items clause at a time. The application then generates appropriate SQL, runs it (currently using SQL Server 2008) and displays the results, with a breakdown which includes the number of matching records for each added item. e.g....
I'm finding plenty of examples through Google of how to call an API function within an unmanaged DLL from .NET code, but what about instantiating an object from that unmanaged code? I'm currently tinkering with an old legacy application at work (and I'm yet unconvinced that we're going to be able to do anything with this, but tinker and...
Consider the following case: A web server is running a .NET app with <sessionState cookieless="AutoDetect" />. A client is POSTing data to it using a simple HttpWebRequest (no cookies). This seemingly simple case causes major failure. Since .NET can't determine if the requesting agent (HttpWebRequest) supports cookies, it responds t...
From code analysis (Visual studio), I got this warning: Warning 2 CA2000 : Microsoft.Reliability : ... Call System.IDisposable.Dispose on object 'l' before all references to it are out of scope... So, I changed the code : Dim l As LiteralControl = New LiteralControl AddHandler l.DataBinding, AddressOf OnDataBinding container.Control...
I'm working on a routine to strip block or line comments from some C# code. I have looked at the other examples on the site, but haven't found the exact answer that I'm looking for. I can match block comments (/* comment */) in their entirety using this regular expression with RegexOptions.Singleline: (/\*[\w\W]*\*/) And I can match ...
Context: C# 3.0, .Net 3.5 Suppose I have a method that generates random numbers (forever): private static IEnumerable<int> RandomNumberGenerator() { while (true) yield return GenerateRandomNumber(0, 100); } I need to group those numbers in groups of 10, so I would like something like: foreach (IEnumerable<int> group in RandomNu...
Is there an example implementation of weak events using .NET's WeakEventManager? I'm trying to implement it by following the "Notes to Inheritors" in the documentation, but it is vague. For example, I can't figure out how to call ProtectedAddListener from my static AddListener function in my custom manager. ...
Is there a way to modify the 'what's playing' functionality on MSN messenger through a .NET class library or application? Thanks. ...
I have build a .net library that uses the ManagementEventWatcher class. My library is disposable, so normally I would wrap it in a using statement and the ManagementEventWatcher class would get disposed by my library. My issue is that my library is exposed to COM, and gets used in VB6 which doesn't use the disposable pattern. If a u...
I want to start a new project basically a e-commerce website. I trying to figure out is there any advantage of using Web client software factory (WCSF) over creating all the layers by myself. How much time does it save me. What are the other failure associated with WCSF. ...
I'm using p/invoke to call EnableScrollBar from user32.dll (MSDN reference). I noticed that when the scrollbar is enabled, it seems to draw as though no theme is applied and then re-drawn with the theme applied. I've only tested with Windows 7 so far. Is there any way to stop this from happening? EDIT: Here's some code to show what hap...
i want to have some changes in config.js of fckeditor. like i want to have some specific buttons for it.. but the changes are not reflecting on my page.. ...
In a WPF application (C#), one of the elements is Win32 Window, created by overriding the HwndHost class. There are about 10 instance of this Win32 window in the WPF at any given time. One should render completely (works fine), and the other 9 should only show previews, without creating a Win32 window, just a bitmap. I've been trying ...
hi folks I recently started on a new job and there is a windows service here that consumes messages from a private windows queue. This service consumes the messages only from 9am to 6pm. So, during 7pm to 8:59am it accumulates a lot of messages on the queue. When it starts processing at 9pm, the cpu usage of the service goes to high(98,...
Hi , I have an app written in C#. It was already compiled. There are plenty of dll files there and i could not open them , decompile them cannot see and access C# code which build them, when i add a reference to dll files in Visual Studio i only can see what methods are there, but i cannot see / access code of those methods. Is there...
I have the following example: using (MyContext context = new MyContext()) { var query = from entityA in context.EntityA.Include("TestProperty") join entityB in context.EntityB on entityA.Id equals entityB.EntityAId join entityC in context.EntityC on entityB.Id equals entityC.EntityBId ...
I've recently come to the realization that the .NET apis working with URLs and URIs frequently come up short in achieving even basic functionality (atleast easily) including things such as: generating a FQDN url from a relative path, forcing https or back to http, getting the root of the site, combining relative urls properly and so fort...
I tried to run it without a container form, but the DocumentCompleted event doesn't fire. I tried to run it in a Form with opacity set to 0% but the process isn't completely hidden, since it appears to the user when he uses Alt+Tab I don't mind if the proccess appears on the Task Manager though. ...
While debugging my Visual Studio 2010 MVC2 solution, I noticed something that I didn't necessarily expect and that struck me as inefficient. When I was viewing the Home page, the IntelliTrace showed that many exceptions were getting thrown and caught while resolving a partial view. I have code that calls the partial view like this: <%...