Hi there,
I've a list of usercontrols which I've had imported via ImportMany Attribute. See the following code segment :
[ImportMany]
private List<Lazy<IUserControl, ILinkerMetadata>> UserControlsMetaData { get; set; }
So if I add each Lazy data record to a e.g. combobox, the data record won't be load, because it's tagged as Lazy (c...
Trying to get radiobuttons binding working but getting a run time error with the code below. Want the radio buttons to act such that only one can be selected at a time, and that they bind correctly in a 2 way fashion. Error text is.
"The invocation of the constructor on
type 'testapp1.MainWindow' that
matches the specified bin...
Using the DirectoryServices.AccountManagement library in C#, I am establishing a PrincipalContext, then using that context to validate users.
It seems that the username with which I am establishing the context is being intermittently corrupted/reset or something else is going on causing the establishing of context to fail.
After manu...
I have a couple of services, where one of them needs to be a singleton service. The other services connect to this singleton service and the singleton service in turn makes calls back in to the instances of the other services.
My question: is it safe to move this scenario into IIS so I can make use of the new Windows Server Appfabric fe...
HI,
I have Ling Table with MyObject.
It has got fields:
Id
Number
Name
There is a method that adds ne MyObject to Database. In partial class MyOBject Im implementing OnValidate method. I need to check if there is already a row with such number and name.
The problem is where this values are nulls (for this example both can be)
var r...
hi there,
Are there some tools, which basically do the same than the VS Ultimate Loadtest?
Anyone knows if there is a port of jload? ANy other opensource Loadtests?
Thank you
...
I have a multilanguage application and customer wants to edit Resources.resx files like he wants.
I created silverlight project and add some files:
Resources.resx
Resources.en-US.resx1.
Resources.uk-UA.resx2.
They all have build action "Embedded Resource"
Everything is working but Those files are embeded to XAP file. And customer...
Hi,
Ok so im trying to use the appSettings element in the App.Config file to determine what kind of storage to use. Here is my app.config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<appSettings>
<add key="storage" value="memory"/>
</appSettings>
</configuration>
So I wa...
I am using the standard Oracle driver to connect to the database, but I can't really agree with my colleagues on the lifespan of OracleConnection. Is it expensive to create? Is it thread safe? Can I reuse it between request, or should I create a new one for every request?
I would be grateful for a bit more detailed explanation which way...
Are there and .NET libs out there that will interpret stored user agent strings and give you a nice strongly typed object with the contained information?
...
I've written a Windows Application to test a connection to a clients SAP web services. The web service call requires X509 certificate security.
After reading various articles on the internet I've come up with three ways to attach the X509 certificate to the web service call. Unfortunately all of these attempts return a '401 Unauthorise...
I know how to catch all unhandled exceptions in a given thread, but wondering if there is a way to catch all unhandled exceptions thrown by a given class instead of wrapping each of the calls in a try catch block.
In case there's no way of doing this (likely to be the case) how would you achieve the same effect?
Just to give a bit of c...
How to develop program/website and minimize DB dependencies using C#.NET?
For example I have made some changes in my DB, after that I must rewrite half a project.
...
I have a windows mobile app developed under windows XP / Visual Studio 2008.
When I try and run it on windows 7 through visual studio I cant get the emulator to connect to the internet.
Other posts on the web have suggested windows 7 / VS2008 dosn't work for mobile device emulation. Is this true?
...
Hi, is there any way to see the values of private varibles while debugging given that that variable is in a class that is compiled to an dll and not possible to edit?
...
I get a string variable with XML in it and have a XSD file. I have to validate the XML in the string against XSD file and know there is more than one way (XmlDocument, XmlReader, ... ?).
After the validation I just have to store the XML, so I don't need it in an XDocument oder XmlDocument.
What's the way to go if I want the fastest per...
I've just started using NDepend and am trying to analyse a solution.
This warning appears when I add the solution's assemblies and it will not load any assemblies with the warning:
Cant' load the assembly {MyAssembly}: Several .NET assemblies have the name {MyAssembly} but they are different: ...list of the .dlls in the project whic...
I tried making the title as self-explanatory as possible, but let me elaborate. Imagine there' s a huge web application (lots of files, various configuration options), that needs to be installed on different platforms with IIS 5.1 / 6 / 7 / 7.5. Currently it is packaged as MSI package using WiX.
I wonder if it makes sense to let WiX in...
Just wondering how I might go about drawing arrow heads along a path. The path will change direction and go through several different points. The arrow heads are designed to show the user which direction along the path they need to travel.
I've tried to use a brush but it didn't work as I need the arrow heads to orientate them selfs al...
Hi all,
I have thousands of text files, and each file contains just a single line of text.
Any single file looks like this:
somevalue1|somevalue2|somevalue3|somevalue4|somevalue5
The format never changes, and from above, you can see how each value is separated by a "|". And there are always exactly 5 values in each file.
Can someon...