I need to create a file/directory in the common application data folder that will be shared across all accounts. If I create the file/directory as admin, I have no problem but if I create the file/directory as a user the file/directory goes into the virtualized folder for the user's account. Has anyone found a good way to do this?
...
Hi,
my XML is referencing a DTD like this:
< !DOCTYPE article PUBLIC "-//OWNER//NAME//EN" "http://invalid/path/to.dtd">
The DTD is not available via the given URL, but I can download it to my disc. I tried to implement a custom XmlResolver to load the DTD, but it does not work. My custom XmlResolver implements GetEntity and via the de...
Hi.
I was wondering how can I generate a strong and secure password in C#.
I googled a little bit and saw this formula in Wikipedia, where L is the length of the password and N is the number of possible symbols:
...but I'm only 13 years old, I have no idea how to implement it in a programming language (I don't even understand it l...
Hi folks,
I have two linq (to EF4) queries, which return different results. The first query contains the correct results, but is not formatted/projected right.
the second query is what i want but it missing some data.
Schema
Query 1
var xxxx = (from cp in _connectedClientRepository
.GetConnectedClients(new[] { "LogEntr...
Is it possible to apply (and remove) Windows group policy settings using .NET?
I am working on an application that needs to temporarily put a machine into a restricted, kiosk-like state. One of the things I need to control is access to USB drives which I believe I can do through group policy. I'd like my app to set the policy when it s...
I'm working on an application that needs to temporarily put a machine into a restricted, kiosk-like state. One of the things I need to block is access to attached USB drives. Is there any way to do this, via C#, other than messing with Windows group policy? (That approach is covered by my other SO question on this topic)
I realize there...
Hi All,
I have 2 simple classes on the web-service side (Java webservice):
class A implements Serializable
{
protected int foo;
public getFoo(){..};
public setFoo(){..}
}
public class B extends A implements Serializable {...}
The point is that on client side SvcUtil generates a proxy C# class ProxyB inherited from ProxyA, it's OK...
I have the following two tables mapped in NHibernate:
VehicleCheck
ID (int)
VehicleReg (varchar)
DriverName (varchar)
TS (datetime)
VehicleCheckItem
ID (int)
VehicleCheckID (int)
CheckType (int)
Passed (bit)
What I want to do is get the most recent vehicleCheck for each vehicleReg and a count of vehicle checks failed for each,...
Hi
I'm using EF 4.0 within VS 2010 RC.
I have pretty simple POCO class structure with few dependencies. Each POCO class has a base generic class (EntityObject or ValueObect) with property ID. I have several CRUD tests and only one of them works. This one is very simple where object does not have any dependencies. But when I test somethin...
Im trying to use JSON.NET framework in a windows Form to read some information from a JSON string. But im struggling to get the Dictionaries from the 'taxonomies->topics' array and the 'clusters'
{
"keywords": {
"anyString": [
],
"allString": {
"a5349f533e3aa3ccbc27de2638da38d6": "olympics"
...
By default ASP.NET 3.5 Web App project has references to assemblies System.Data.DataSetExtensions.dll and System.Web.Extensions.dll.
With System.Data.DataSetExtensions everything is clear for me, it contains such useful extension methods as DataTable.AsEnumerable() and DataTable.CopyToDataTable().
And what about System.Web.Extensions.d...
I am writing a C# unit test to test C++/CLI functionality that involves threads.
The C++/CLI code implements a DirectShow filter, the Windows API for rendering movies. This works thus that I create DirectShow objects, I tell it to run an AVI through my C++/CLI filters, waits until rendering is done, and then exits. My filter has a call...
I've run into an issue which I'm not sure if I can get round or not. My library and another library both provide an API for a particular type of data and I've now written an interop library that can sit between the two libraries and convert data freely between them which works great.
BUT I've now tried to write a small demo app of acce...
Let me first outline my objective from a user's perspective and then the code I have to achieve that goal where its falling short.
I'd like the user to be able to click a button, which brings up a jQuery modal style dialog with a few fields on it and a submit + cancel button. When they successfully commit the record I'd like to have the...
Our Continuous Integration process appears to be executing programs that are in contention for for files. During the build, certain pdb's aren't able to be copied because they are in use by another process.
Question: Ideally it would be faster to have the concurrent building of each project executing however I was wondering if this w...
i am creating check box's dynamically and assigning them names like "chk_1" and "chk_2".
now if later in my code i want to check if they have been checked how can i do that.
if i do something like if chk_1.checked is True then i am getting error that chk_1 is not declared.
Which is true.
am i making sense??
i am using VB.net 2.0 i c...
Hello,
I have this program which gets all the constructors from the mscorlib using a search function. The only problem is when I search for the constructors it will only filter ctor. This is a problem because the search is no use if it's constantly going search all files relating to ctor (which is all files). I'm displaying both the de...
With Type.GetProperties() you can retrieve all properties of your current class and the public properties of the base-class. Is it somehow possible to get the private properties of the base-class too?
Thanks
class Base
{
private string Foo { get; set; }
}
class Sub : Base
{
private string Bar { get; set; }
}
Sub s = ...
I have a plugin interface that allows third-party developers to add custom plugins into my application.
Performance and application responsiveness is very important to me, so I provide explicit "Initialize" and "Shutdown" implementations in my interface contracts. However, one thing out of my control is constructor code that should not ...
5% of execution time spent on GC? 10%? 25%?
Thanks.
...