Hi there,
I am creating a desktop/client application that will be installed on +/- 5 PCs, that will be transacting with a database on a central server machine. This app requires login authentication which I've in past rolled my own (messy, but it worked). Then I thought it would be great to leverage ASP.NET Membership,Roles,Profile...e...
Hi I'm using this code to generate machine signature. But it's take noticeable time to execute. Wonder why it's that slow ? Any faster method recommended ?
Public Shared Function DriveSN(ByVal DriveLetter As String) As String
Dim disk As ManagementObject = New ManagementObject(String.Format("Win32_Logicaldisk='{0}'", DriveLetter))...
I have been contributing heavily to this open source project that aims to help out users of open source on the .NET platform by acting as a ruby gems or more importantly a gentto portage clone for .NET. There is a genuine need for this in .NET as the upgrade path for .NET oss is a painful journey fraught with danger. So morally this is...
Hi,
We keep getting this exception
"Application_Error: Unhandled exception has been occured while requesting:/~/media/Flash Movies/nameoftheItem.ashx
System.ArgumentNullException: Value cannot be null. Parameter name: ownerType
while requesting a media item."
We've lots of media items and they're all working fine. We get this exceptio...
I have a question related to managing OLE objects in a RichTextBox.
What I've found so far is lots of info, but not exactly what I need, so I will make a quick introduction first (I also hope someone might find this helpful).
1. What I know so far
First of all, I am using OLE to insert images (or any ActiveX) into the RichTextBox. Thi...
I have the following three tables:
Item
Code
ItemCode (many to many relationship between Item and Code)
And then I have the following sample data on the third table:
Item | Code
-----+-----
001 | A
002 | A
003 | B
There's a possibility that a new Item is added but does not have a code yet. I will assign a default code for this ...
I've been fighting with this for a while, and have found that a number of other people struggle with the TableLayoutPanel (.net 2.0 Winforms) as well.
Problem
I am attempting to take a 'blank' tablelayoutpanel, which has 10 columns defined, then at runtime programatically add rows of controls (i.e. one control per cell).
One might hav...
Are there any good(and free) tools for either analyzing static source or running programs to help detect memory leaks?
I've built some windows services and want to make sure the are not going to consume memory if I leave them running for weeks on end.
...
Ok, dumb question. I'm trying to set up my first TypeMock demo project in VS2005 but it doesn't recognize the [TestMethod] attribute. I've included both the TypeMock and TypeMock.ArrangeActAssert assemblies and I'm referencing them with "using" statements. Even intellisense can't find the attribute. What am I doing wrong here?
...
I use a simple FileUpload control to select a excel file, retrieve the data and store it to db. When i try to upload after selecting the file i get this error. But file path is correct.
"FilePath" is not a valid path. Make
sure that the path name is spelled
correctly and that you are connected
to the server on which the file
...
I'm writing this small program to extract any number of email address from a text file. I am getting two errors, "Use of unassigned local variable." and I'm not sure why.
static void Main(string[] args)
{
string InputPath = @"C:\Temp\excel.txt";
string OutputPath = @"C:\Temp\emails.txt";
string EmailRegex = @"^(?:[a-zA-Z0-9_'^&/+-])...
I am trying to save a custom object as a user setting in a VB.net app. This object consists of a List(Of Pair(Of String, Object)). Pair is a custom class which has two read/write properties (a String and an Object).
If I put simple types like int, string, datetime as the second value of my pair, the setting is saved without any problem....
Given a class library DLL that can be installed on the GAC (production) or not (development), I need to know whether the executing assembly is running from the GAC or not. How can I know this?
...
Is anyone aware of whether there are there any built-in capabilities in the LINQ library (or a publicly available utility library) for optimized operations on IOrderedEnumerable<T>, as opposed to IEnumerable<T>?
For example, in theory, the Contains<T>() extension could potentially be optimized to use binary search when it is applied to ...
Okay, I've checked Environment.SpecialFolder, but there's nothing in there for this.
I want to get the home directory of the current user in C#. (e.g. c:\documents and settings\user under XP, c:\users\user under Vista, and /home/user under Unix.)
I know I can read enviroment variables to find this out, but I want to do this in a cross-...
(The title for this question isn't the best, but I'm unsure how else to word it!)
I'm working on a search form which contains a checklist of values. Basically, a checked item means 'include this type in the search'. Something like this:
Search for item: __________
Search in:
[ ] Fresh Foods
[ ] Frozen Foods
[ ] Bevera...
I know that a class library compiled in 'Release' mode will run faster and more efficiently than one compiled in 'Debug' mode, but does anyone know to what extent?
EDIT: This is for a .net dll.
...
Unable to test sending email from .NET code in Windows Vista Business.
I am writing code which I will migrate to an SSIS Package once it its proven. The code is to send an error message via email to a list of recipients.
The code is below, however I am getting an exception when I execute the code.
I created a simple class to do the ma...
I created a crystal report using test a DB. I run the report using .NET ReportDocument class. Everything works fine until I connect to the test DB.
When same report is pointed to UAT DB (all required DB objects are available in UAT too), I am getting error. To fix this, I have to change the server name to UAT DB manually in the RPT file...
Whats is the difference between:
List<MyType> myList;
and
myList : List<MyType>
Its obvious that the first one is list and second one is a class. But my question is what's the advantage of second over first one.
...