A very common complexity for technical architects is to divide the application in assemblies and namespaces.
Assemblies can be partitioned according: deployment, performance and security boundaries.
Namespaces can be partitioned according logical application boundaries.
Also: namespaces can span multiple assemblies.
I had a bad expe...
I have created a managed dll and I would like to get the executable name it is attached to.... I have read this: http://stackoverflow.com/questions/121116/how-to-get-the-executable-path-from-a-managed-dll
It works fine with .net executables.... but when the dll runs under a com process, I don't have a .Net assembly... so Assembly.GetEnt...
I have a Windows WinForms app that communicates with linux's mono remoting. Is it possible that i get the mono's system.data.dll and use it on windows instead of .net's built-in.
I wanted to use remotingformat of binary type, and ensure that both ends can serialize/deserialize it properly.
...
I am interested in learning all about the Entity Framework.
I have found these videos.
I also have the book Programming Entity Framework, 1st Edition by Julia Lerman.
Does anyone have any other recommendations for learning this new technology?
...
Hi I have a datatable with 5 columns and I would like to copy only two of those columns to another datatable. What is the best way to do this?
DataTable 1:
col1 col2 col3 col4 col5
1 2 3 4 5
6 7 8 9 10
DataTable 2:
col1 col2
1 2
6 7
Thanks
...
I need to monitor a lot of data, and i know that RRDTool is a good option, but entire app is c# so ill prefer some Microsoft way or .net port.
Is there a .net way of doing the same as RRDTool?
...
I have an app built with .net 3.5. If a user runs it without having .net 3.5 installed I want to have control of what they see perhaps provide a message that they can understand (with a link to .net 3.5) versus unhandled exception stack traces. But if they don't actually have .net 3.5 how can my app control anything?
...
We have some customers using our .NET 2.0 thick-client app that experience strange, intermittent errors reading data from a SQL 2000 SP4 Server, where the actions succeeded just moments earlier. We have some customers using SQL 2000 (and many using 2005) where these errors do not occur.
One thing I notice is that the app in our testing ...
I have an installer class using ServiceProcessInstaller. In the installer class in the constructor I add it to installers:
serviceProcessInstaller = new ServiceProcessInstaller();
serviceInstaller = new ServiceInstaller();
// Add Both Installers to Project Installers Collection to be Run
Installers.AddRange(new Installer[]
...
I used WPF very little before and some stuff seemed very different to achieve. Coming from a winforms background, what things will seem different and take you a while to figure out.
Off top of my head, I remember not being able to specify which nodes are selected in a treeview control the way it's done in winforms, if I am not wrong.
...
Ok, I have a question that I know is very opinionated (based on all the posts I have read), but I need help. Long story short, I have been using the following model for Data access for past few years.
Database->Sprocs->XSD(Typed dataset, drag drop sproc in.net)-> In DAL project make functions to call created methods made by XSD, load ...
The TimeZoneInfo class has a Host Protection Attribute of MayLeakOnAbort.
This seems to prevent me accessing it from the SQL Server CLR. But is there a workaround?
...
I have a decent sized set of data that needs to be stored in an active record. In order to prepopulate the form fields on the page, I have already written the following code:
Device device = new Device(DeviceID); // device is simply the active record
txtDeviceName.Text = device.Name;
txtNotes.Text = device.Notes;
txtHostName.Text = dev...
Is it easy to do sliding panels, such as the one show in this video, where the controls are populated dynamically but also expanded/collapsed when the user is clicking the panels. It also allows scrolling if the height of the visible panels is larger than the application height.
...
I have a Windows Service developed in C# and .NET 3.5 to perform various administrative tasks throughout our 3 domains. I've got an admin account in each domain that has the necessary rights/permissions for what this service is doing.
For all the AD interactions, I can bind to AD using the correct username/password for the domain and al...
Does anyone know of some good downloadable visual studio solution files that explain all the GOF design-patterns (and their variants if possible) in .NET (C# preferred)?
...
I have a class and the storage of its information is going to depend on if it is getting consumed by a web or windows application. I was going to use the factory pattern to pass out the correct object. I guess the caller would then store that object appropriately if I did not want to have recreate the object. Anybody have other sugges...
Does the .NET String.Format method allow placement of a string at a fixed position within a fixed length string.
" String Goes Here"
" String Goes Here "
"String Goes Here "
How is this done using .NET?
Edit - I have tried Format/PadLeft/PadRight to death. They do not work. I don't know why. I ended up...
Assumption: I'm very new to the Continuous Integration space.
What is the method I should use for Extracting, Testing, Compiling, Deploying an ASP.NET (.NET 3.5) application.
Step 1)
Sometimes I would like to pull the latest source from TFS, and sometimes Subversion.
Step 2)
Run all tests. (I am currently using MbUnit)
Step 3)
If al...
Let say I have 2 controls in a usercontrol :
One (controlA) that have a fixed height and need to be dock in the bottom and an other (controlB) in the top that must fill the leaving space.
If I use bottom dock for controlA and fill dock for controlB it's doesn't work because controlA goes over controlB ...
How can I do this correctly, ...