I have three tables in my database: Events, Jobs, and CollectableEntities.
Events has a nullable FK pointing to Jobs' PK.
Events and Jobs both have non-nullable FKs (that are also those table's PKs) pointing to CollectableEntities' PK. These FK relationships are set to cascade on update and delete. Basically, when you delete a Collecta...
We have a desktop application run on a few thousand client computers. We want to move from framework 2.0 to 3.5, but are concerned with the impact on clients. I understand that 3.0 and 3.5 are additions to the framework, and that they install service packs to 2.0; what I want to know specifically:
When a client upgrades to the latest...
I have a list of objects List that I need to send over a web service. The list contains about 37,000 Objects. This translates to about a 125 MB XML File if I serialized it to XML.
I think by default web services communicate via serialized XML. This leads me to believe I am actually sending 125MB file each time. In binary format this...
I inherited some code two weeks ago that is using the jquery.ajax method to connect to a .NET web service. Here is the piece of code give me the trouble...
if (MSCTour.AppSettings.OFFLINE !== 'TRUE') {
$.ajax({
url: url,
data: json,
type: "POST",
co...
Hi,
I am a developer on the horn OSS project that sets out to ease the pain of building other OSS projects. We are attempting to make horn a ruby gems like experience. One of the many challenges of horn is having to deal with all the various build engines like Nant, powershell, msbuild and rake which is the point of this post.
Horn h...
is there an event triggered when a DataGridViewRow is resized? or any other way I can catch when that happens?
...
Hi,
I intend to execute a stored procedure using enityspaces and wrote the following method in Custom file.
public BizUnitCollection loadby_bizunitname(string description) {
BizUnitCollection rtn_Ary = new BizUnitCollection();
esParameters parameters = new esParameters();
parameters.Add(new esParameter("name", description))...
Background
The company I work for is developing a .NET Graphical User Interface (GUI) written in C# and we're almost ready to test it.
Question
Is there a list of standard accepted programs that do the following?
Will be able to run automated testing of the GUI
Integrate with VS2008 (not required)
Create a log file of the test or ...
I have an application which predictably generates out-of-memory errors on very, very (very) large datasets - we're trying to fix the problem by optimizing the app's memory management, but the very, very large datasets in question require so long to run (days) that it's difficult to iterate through testing cycles and find the problem empi...
I am writing a managed wrapper around an unmanaged DLL, and am unable to get the following method and structure to marshal correctly. Here's what's in the .h file for the unmanaged code:
typedef struct {
WORD PI_code;
DWORD grpStat[31];
BYTE PTY_code;
char* PS;
char* RT;
} RdsData_t;
COMPANYNAME_API void COMPANY_get_rds_data(Rds...
Using .net's setup project, I want to write the location that my software is installed to into the registry, in order to help a plugin know where the main application is. Is there some kind of %variable% I can use which represents the folder to which the application was installed?
...
So what I have is a textbox that submits data back to the server.
I want to have it submit once the person has stopped typing.
My thought process was to have a timer and have the textbox change set the timer to start (if stopped) and reset the countdown time to lets say 3 seconds if its already running and have the timer.Tick event s...
I build a new window service on my machine and copy the whole proj to the server and try to install the window service on server machine .
i dont install the service in my machine...
i get the following error :
An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: The name is already in use as either a s...
I've started adding multiple languages to my project using resx files (eg. MyText.resx, MyText.ru-RU.resx, etc.).
When I compile, I end up with files like this:
MyApp.exe
ru-RU\MyApp.resources.dll
es-ES\MyApp.resources.dll
Is there any easy way I can have everything compiled into the EXE? It's just a small utility which I distribute i...
Lately, I've been doing a lot of interaction with unmanaged libraries and I keep coming back to SO to ask questions about certain method signatures because I'm not a C/C++ programmer (although it's not completely alien to me). There are situations where the same type of argument in two different methods require two different P/Invoke sig...
I have a couple of stored procedures on SQL Server 2005 that I've noticed will suddenly take a significantly long time to complete when invoked from my ASP.NET MVC app running in an IIS6 web farm of four servers. Normal, expected completion time is less than a second; unexpected anomalous completion time is 25-45 seconds. The problem doe...
Environment
Visual Studio 2008 SP1
Visual C#
WPF Application Project
.NET Framework 3.5
Problem
You have a user control in the same assembly as another user control or window, and you are using it in this new user control or window. It compiles and runs fine, however the designer doesn't work and gives an exception "Could not crea...
I'm trying to create a TextBox that only allows positive integer input, and that should display the input with culture-specific formatting automatically (in this case en-US, so it should use the ',' sign as a separator for larger numbers). So:
An entry of 1000 should show as '1,000' in the TextBox
An entry of 1,000 should show as such,...
How do you create a multi-dimensional data structure in C#?
In my mind it works like so:
List<List<int>> results = new List<List<int>>();
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
{
results[i][j] = 0;
}
}
This doesn't work (it throws an ArgumentOutOfRangeException)....
Does anyone know if it's possible to use an ASP.NET membership (and role) provider in a non-web app (ie in a desktop C# app)?
Related question -- is there an LDAP membership provider (it looks like SharePoint has one, but I don't think it's the same as the ASP.NET provider). I'm sure the Active Directory one is probably close, but I'm ...