Is there any way to add some code to fire when an OOB silverlight app is uninstalled?
I would like to fire something to my webservice when a user uninstalls the app, is this possible?
...
I have some problems with building connection strings. I used to generate "Provider=SQLOLEDB" or "Provider=SQLNCLI". Now I see that some users have SQLNCLI10 while SQLNCLI is missing. Is it possible to enumerate available providers so I could pick a valid one?
System.Data.Common.DbProviderFactories.GetFactoryClasses() lists .NET data pr...
While I realize there is a similar question (How to serialize an Exception object in C#?), and though the answers on that page were helpful, they didn't exactly solve the problem or answer the question posed.
I believe the question was how to serialize the object to allow it to be reconstructed (deserialized) into the same object. I've...
I was wondering if anyone could recommend a good LOC counter for .NET projects (web, windows service, etc.)? Some features that I'm looking for include:
Ability to export results to Excel or
something similar (not just PDF as I
may want to work with the data);
Create several counter projects (e.g. project 1 includes .NET
projects A,B ...
I have come across this question several times, you need to do some performance testing (request process times, load times, etc) or track unhanded exceptions. The answers usually come down to writing a HTTP Module, hook into specific events and log them somewhere, or use the built in health monitoring?
Why would we use one over the othe...
I read plenty of articles about Azure and .NET Service Bus. I think I understand technical part but at the moment I'm missing the main point - some "cases studies" which should explain me what kind of projects should be moved to cloud. Suppose that I'm starting new project. How can I decide if my project fits to Azure platform?
What ar...
I have to upload some XML files to a SharePoint library. I have to do it from a computer that is not one of the SharePoint servers (so object model will not work). Also the library has a custom (integer) column and I have to set it's value for the uploaded file.
How do I upload the file and the the value by using the standard WebService...
Let's say I have a list of lists
{ { 'a', 'b', 'c'}, {'d', 'e', 'f'} }
How can I project these to a flat list of the form:
{ {'a', 0}, {'b', 0}, {'c', 0}, {'d', 1}, {'e', 1}, {'f', 1}}
where the 2nd field of each resulting element is the index of the inner list ?
...
I've noticed these two interfaces, and several associated classes, have been added in .NET 4. They seem a bit superfluous to me; I've read several blogs about them, but I still can't figure out what problem they solve that was tricky before .NET 4.
What use are IStructuralEquatable and IStructuralComparable?
...
This is driving me nuts, maybe I'm missing something but I'm trying to upgrade a .NET 3.5 application to .NET 4.0 and the only problem I'm running into is this class:
3.5 Code:
public class ServiceHostFactory : System.ServiceModel.Activation.ServiceHostFactory
{
protected override System.ServiceModel.ServiceHost CreateSe...
The Problem:
I need a good free library or algorithm to determine whether a text is related to a search pattern or not. The search pattern can be an ordered or unordered list of words.
For some searches the order is relevant, for some it is not. Additionally I need the ability to define aliases for searched words (e.g. "(C#|C sharp) cod...
If I understand well, in C#, it is possible to do
public class X : ICloneable
{
public X Clone() { ... }
object ICloneable.Clone() { return Clone(); } // This calls the above
}
according to this thread. This kind of overloading is forbidden in C++, since it only depends on the return type.
Now, I would like to do this exact t...
I have a DataGridView that is bound to a DataSet and I allow someone to remove a row from the table and I remove the row from the set. My code looks like this:
ds.Tables(0).Rows(dgCourseList.SelectedRows(0).Index).Delete()
My problem I found is if the grid gets sorted the index of the rows no longer corresponds to the indexes in the D...
Hello, is there a tutorial out there which explains step by step how to connect to a remote capable SAP module?
Thanks :)
...
Is there anyway to return a machine specific identifier from an out of browser SilverLight 4 App? This is to stop people installing my product with one licence key, and then copying the files onto someone else's machine. Normally MAC address would be the way to go, but I don't think you are able to do so from SilverLight.
...
I have seen some people leaning on handing methods to callbacks/events and then sometimes just handing them lambdas.
Can anybody speak to any difference between the two? I would have originally thought them to be the same, but the inconsistency I have seen implemented sometimes makes me wonder if there is a case where one is preferable ...
I am making a windows application which communicates with a microcontroller. Sometimes, communication error occurs which need to be flagged to the user. For instance, if the cable gets unplugged or the microcontroller loses power.
I've been struggling with this for awhile now, i'm back to my original solution. The original solution ...
In silverlight, if a TextBox AcceptsReturn, all newlines are \r, even though Environment.Newline is \r\n. Why is this? (WPF has \r\n as newline for textbox)
...
I have a smarthone application for controlling a device via Bluetooth. I'm now looking for a way to use the app on Windows XP/7 too. Any ideas if this is possible without too much modifications to the code? Especially i'd like to know the following:
1.) Is there a readily available smartphone emulator that can be deployed on Windows XP/...
I am currently working on a MySpace app (onsite) and cannot find any examples of inviting friends to the app. I'm currently using the MySpaceID SDK for C# (using the OnsiteContext instead of Offsite), but for the app invites, I can use javascript or whatever works.
The MySpace developer documentation is crap. Anyone able to help?
...