When a single ClientBase<T> instance is used for multiple WCF service calls, it can get a channel into a faulted state (ie. when the service is down).
I would like to heal the channel automatically when the service comes up again. The only way I found is to call the following code before each method call:
if (clientBase.InnerChannel.St...
I re-hosted the workflow designer in a standalone application. Is there a way to force the designer to not include the version of the Assembly containing my custom activities.
What is happening is that my custom activity assembly version changes quite often. Thus, my rehosted designer throw an exception since the version in the xoml is ...
Imagine the following method
public void SomeMethod<T>(T param)
where T: List<T2>
{
}
It doesn't work:
Error 16 The type or namespace name 'T2' could not be found (are you missing a using directive or an assembly reference?)
How do I achieve the what I clearly intended to do?
...
I need to get the bytes from an array of bytes starting at a certain index and for a certain length (4), how can get this?
Note: I don't want to use the Array.copy sub as it is not a function.
I need to put it in something like Sub MySub([arguement as byte()]the_function_I_Need(Array, index, length))
...
We've recently started using complied queries in order to improve performance on our Linq to SQL setup. There are several queries that always take multiple seconds to run the first time take under a second in subsequent runs. This appears to be because the compilation doesn't actually take place until the call is made the first time.
I...
I would like to access to multiple web services with a WPF application (Facebook, Twitter, etc...).
I'm not familiar at all with WCF and I was wondering what should I use and why (pros and cons) ? WCF or something else more traditional (like HttpWebRequest) ?
...
I'm having an issue that I can't figure out regarding a Windows Service I have written in C#. What I am trying to do is wait for a specified period for a child process to terminate before I am forced to kill it and stop the service. I have set my timeout for anywhere from 5 to 15 seconds and my service waits the appropriate amount of t...
I have a .NET console app that references a DLL. It runs fine if the DLL is in the same folder as the EXE but I would like to put the DLL in a different folder. How can I do that?
...
In order to perform basic charting from a windows service (win32 API) including the generation of bar charts from text file data (saved as .jpeg for instance), I'm stuck about whether .NET 3.5 has this ability built in.
For charting, which references should be added and/or which using statements included?
Even a nudge in the right dire...
Hi,
I'm trying to get an installation of webOrb 3.6.0.3 working, but am stuck getting the model to "build".
I've connected to the database server, with the proper credentials. WebOrb asks
me which specific DB to connect to, and displays the list for me to choose from,
so I know that part is working. In the databases list, I can drill i...
Anyone have a recommendation for a REST client wrapper for .NET similar to ActiveResource?
...
For a remoting scenario, the result would be very good to receive as an array or list of Tuple objects (among benefits being strong typing).
Example: dynamically convert SELECT Name, Age FROM Table => List<Tuple<string,int>>
Question: are there any samples out there that, given an arbitrary table of data (like SQL resultset or CSV ...
What ways can you dynamically create controls in C#?
This was objects at first but it would have been more precise to say controls. My terminology was messed up. Thanks Joel.
Edit{
Controls that are created during runtime. And are able to be accessed and edited by the program.
Does this help?
}
I like the idea of Dynamic creation and...
Is it possible to get the Character if "Shift" was Pressed, ie. if i press "1" I get the "1" character, but if I hold down "Shift" it becomes "!" - all without the quotes of course. I want to to something like this programatically.
There was a method where you could just add to the ASCII code however this option is not suitable as it won...
I have been using re-sharper for quite long time and get used to solving a lot of problems by type Alt+Enter,today one of my colleague ask what are the really benefits.
And I could not say a word apart from if you are not using it why imports it.
Can someone explain to me what are the real benefits if any?
...
I have a question about manually creating a .Net webservice proxy class. The WSDL is unavailable, and it is a Websphere server. I was able to create a class that inherits from System.Web.Services.Protocols.SoapHttpClientProtocol and send the request however I’m having one difficulty. The element has to have an attribute called “targetI...
java application uses hsql to store data, can I .net application odbc to that?
...
Has anyone ever had to run performance tests on a ClickOnce application? I have engaged with a vendor who had trouble setting up their toolset with our software because it is Smart Client based. They are understandably more geared toward purely browser-based applications.
I wonder if anyone has had to tackle this before and if so would ...
I have a client server application using Sharp Architecture as a base. The application uses WCF services for the client-server calls. I pass DTOs between the client and the server converting them on the server.
I want to validate my domain objects but am unsure of how best to pass the validation results from the client to the server...
Hi,
is the concept culture (as with .NET CultureInfo) to be used solely in localizing appearance of a website (language, date- and numberformatting etc.), or can it be used for localizing website content (location-bound newsmessages, contactdetails etc..)?
I need to build a website which supports both multiple-languages as localized co...