Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008


all groups > dotnet framework > july 2006 > threads for july 22 - 28, 2006

Filter by week: 1 2 3 4 5

Using the mousewheel
Posted by Jean Paul Mertens at 7/28/2006 4:10:21 PM
Hello, I try to use the mousewheel in a user control to to scroll in a pannel where I draw with GDI+ . due to the fact that a pannel don't has focus, I have no mousewheel event at my dispositon. Is there a work around? Someone has an idee? tnx in advance. Jean Paul ...more >>

MSBuild heirarchy of projects like corext
Posted by jrett at 7/28/2006 2:36:01 PM
I'd like to use msbuild to build on a heirarchy of projects, based on the directory structure of the sources like CoreXt does. Is there a good way to do this? I'd like to have some folders where external libraries are located, and some folders where some libraries are built. Further, I'd ...more >>

Check result of call into Windows API
Posted by Lee at 7/28/2006 8:44:56 AM
Using Windows XP with all updates applied and Visual Studio 2.0. I am trying to develop some common error-handling of Windows API invocations that fail and am using MessageBeep as the API to test with. Given 1) the following Imports statement: Imports System.Runtime.InteropServices 2...more >>

Single or multiple assemblies for big apps and code reuse?
Posted by Claudio Pacciarini at 7/28/2006 8:37:02 AM
Hi everyone, I have a question about .NET code sharing and reuse, and also about application design best practices / guidelines. Currently, we have many different .NET projects in source depot. Although they are different, in some of them we share C# code by referencing source files that...more >>

asp.net: how do I detect if debug mode is true or false ?
Posted by zolof at 7/28/2006 5:28:02 AM
I which to detect in my code if compilation has debug enabled ? I would different behaviours according to the compilation type....more >>

Urgent :"Your Account will Expire within N Days".
Posted by Balaji Narayanan at 7/28/2006 4:43:02 AM
Urgent :"Your Account will Expire within N Days". Here "N" is the number of days from which this message starts popping,I need to fetch this information from the active directory, please provide me details in solving this issue ?...more >>

ADSI Problem
Posted by Vikas Manghani at 7/28/2006 4:23:02 AM
Hi Can anyone tell me how I can check the status of an account in Active Directory using C#. I mean, I need to know whether, Account is locked, Password expired or Password needs to be changed at next logon, etc. The problem is that in all these cases, .Net throws a generic exception and th...more >>

friend class in c#
Posted by krishjaya at 7/28/2006 3:24:16 AM
I would like to know in c# if there is any way to have 'friend' class just like in C++. I know there is the 'internal' keyword, but this will allow access to all the classes of the assembly and I want to allow access only to a specific class. if No what is the reason? ...more >>



Loading an assembly from a stream
Posted by hmoeller at 7/28/2006 12:23:17 AM
Is there a way to load an assembly from a stream instead of from the file system? The static methods in System.Assembly.Reflection don't support anything other than file names or assembly names as a source for the various Load methods. TIA Henning. ...more >>

.net 2.0 system.web dll
Posted by JimO at 7/28/2006 12:00:00 AM
Can anyone tell me what dll file contains the system.web namespace in .net version 2? The only thing I can reference is the v1.1 system.web.dll. Thanks, Jim ...more >>

.NET C++ SMTP question
Posted by hedbonker NO[at]SPAM gmail.com at 7/27/2006 4:40:49 PM
I have been asked to do the following: Create an application that will take an e-mail address entered by the user into a field and, once a button is clicked, will take that e-mail address and check it against the mail server for that address using SMTP to determine if it's a valid or invalid m...more >>

framework and 64bits
Posted by JM at 7/27/2006 4:15:13 PM
Hi, I need to run a visual net 2002 program in XP pro 64 bits, so: I think Framework 1.xxx can not be use over a XP Pro 64 bits, Right? I wonder if it is possible to run a Visual net 2002 program on a XP Pro 64 bits with framework 2.0?. Thanks, Jaime ...more >>

System.Version
Posted by Alex Clark at 7/27/2006 3:49:18 PM
Hi All, I've searched the documentation and Google for an answer to this but to no avail. It seems that System.Version does not serialize to XML. I checked the documentation and this type is flagged as being Serializable, it has a default parameterless constructor, and I'm pretty sure i...more >>

Microsoft .NET Framework 2.0 Configuration
Posted by Eric Renken at 7/27/2006 2:46:56 PM
OK, I have done a .NET 2.0 Framework install and under the Administrative Tools I am not getting the Microsoft .NET Framework 2.0 Configuration application. I looked for any MSC files in the V2.0.50727 directory and nothing exists. We are installing the .NET 2.0 Framework as part of our ap...more >>

BinaryFormatter serialization size.
Posted by Ken Varn at 7/27/2006 1:28:43 PM
How can I determine the size of the data that a BinaryFormatter will produce when serializing an object? I basically want to know how many bytes an object with SerializableAttribute will produce if it is serialized to a stream. -- ----------------------------------- Ken Varn Senior Softwa...more >>

How to write in registry under limited user account
Posted by Kriso at 7/27/2006 8:57:24 AM
Is it possible to write information in HKLM\Software\MyApplication when under limited user account ? I tried use "System.Security.Permissions.RegistryPermission" but it doesn't work. ...more >>

How to package Windows Form application
Posted by Libs at 7/27/2006 7:51:03 AM
How to package Windows Form application to be installed further with Windows Installer? What are practically steps? What should I do?...more >>

Windows service not starting at boot time
Posted by oscar.acostamontesde NO[at]SPAM googlemail.com at 7/27/2006 5:17:52 AM
Hello: I'm currently developing a windows service, and in OnStart i launch a couple of threads to do some work. When i start it manually everything goes fine, but at start up the service just timeout. I have added all the dependencies i thought could be used by the service, included eventlog, r...more >>

Async Sockets, pinned objects and .NET 2.0
Posted by LPJJ at 7/27/2006 5:01:02 AM
Hi, I am migrating an application from .NET 1.1 to .NET 2.0. It is a network application that use asynchronous sockets intensively (with more than 300 active connections on average) With .NET 1.1 I had problems because the buffers used in the BeginReceive and BeginSend calls were pinned and...more >>

Hashtable.Add fails
Posted by Jochen Wezel at 7/27/2006 1:09:02 AM
Hi all, I want to assign a new key value to my hash table (okay, I use the Specialized.NameValueCollection, but this collection is based again on the HashTable). When the key already exists, then the value of the key shall be replaced. That's why I use the Add method which also replaces key...more >>

Windows Form Level Exception
Posted by Angelina at 7/27/2006 12:00:00 AM
Is there anything similar to "Error" event of System.Web.UI.Page of Webforms in a Windows Forms?? I want to catch all errors occured in a windows form? I already know there is Application.ThreadException but that is on application level. - angi ...more >>

VSS and Windows Firewall
Posted by Jared at 7/27/2006 12:00:00 AM
Hi, What would I need to do to make VSS2005 and Windows Firewall work in harmony? I already have File and print sharing ticked in firewall, but still only works if firewall is turned off Thanks Jared ...more >>

deveop custom control for .net 2002/2005
Posted by mcu at 7/27/2006 12:00:00 AM
I want to develop a custom control , and let .net programmer use it. Who can give me a sample,or some articles? Thanks. Regards, http://www.51mcu.net ...more >>

XP Pro x64 and McAfee Antivirus?
Posted by johny at 7/26/2006 8:01:02 PM
Hi, all: I installed McAfee Antivirus 8.0 in my new PC (Pre-installed with Windows XP Pro x64 Edition). Yet the security center still reminds me that the computer hasn't any anti-virus software installed. Quite strange. Any1 has had the same experience? And any way out? Thanks ...more >>

Help with registering AssemblyResolve event
Posted by lithel NO[at]SPAM gmail.com at 7/26/2006 1:19:39 PM
I am writing an application that uses a set of library assembly dlls that are located in a command line passed location. Originally, I tried to solve this problem by creating an AssemblyResolve handler and registering it very early in hte main function. The problem is that the application act...more >>

Gui threads (STA) and calling WMI
Posted by Arnie at 7/26/2006 12:21:27 PM
Posting an issue for a colleague: They are having an issue w/ making WMI calls from a gui thread. Gui threads need to be on the STA and there is some speculation that WMI calls need to be on the MTA, how to mix both? .... The application is hanging on exit. When they break into the d...more >>

Testing Frameworks
Posted by Jon Berry at 7/26/2006 12:06:49 PM
I have both .NET Framework 1.1 and 2.0 installed on my machine. I wrote an program that I'd like to test against both versions of the Framework. The program is a Windows Form executable that was written against .NET 1.1 How do I select the version of the Framework that the program uses wh...more >>

Pointless IL instructions?
Posted by Ben R. at 7/26/2006 12:04:01 PM
I've got a simple console app which just assigns 6 to an int and prints out the value. The IL looks like: ..method public static void Main() cil managed { .entrypoint .custom instance void [mscorlib]System.STAThreadAttribute::.ctor() = ( 01 00 00 00 ) // Code size 12 (0xc) ...more >>

What account permissions are required for HttpListener.Start()?
Posted by Peter Ritchie [C# MVP] at 7/26/2006 11:30:02 AM
With least-privilege user account (LUA) HttpListenr.Start() throws an HttpListenerException with ErrorCode == 5 (ERROR_ACCESS_DENIED). This does not occur when the user is a member of the Administrators group. There's no mention of what privileges the current users requires in order to use...more >>

Unbox IL instruction question
Posted by Ben R. at 7/26/2006 8:16:02 AM
Hi, I'm referring to: http://msdn2.microsoft.com/en-us/library/system.reflection.emit.opcodes.unbox.aspx There's a lot of stuff here that doesn't make sense to me. This page states: A value type has two separate representations within the Common Language Infrastructure (CLI): A 'raw...more >>

How do you get around this?
Posted by Water Cooler v2 at 7/26/2006 7:42:47 AM
Sorry for the stupid question, but I've been there and done that. Just that just now I have forgotten it for the moment. It happens when you're in a totally different rut of thought. Bail me out here. Just to quote an example: static void Main(string[] args) { Console.WriteLine((new C...more >>

DB Performance
Posted by krishjaya at 7/26/2006 7:36:29 AM
I have to use large volume SQL DB. My Table name is 'Customer' and has 52 fields with heavy data. Which SQL command is more fast? & why? 1. SELECT COUNT (*) FROM Customer WHERE CustId = '1212322321313'; 2. SELECT COUNT ( CustId ) FROM Customer WHERE CustId = '1212322321313...more >>

DataGridView Combobox column Error
Posted by Greg at 7/26/2006 3:30:33 AM
I've populated all the cells in a combo box column with values from 1 - 50 using the following code: foreach (DataGridViewRow row in uxTabSummary.Rows) { DataGridViewComboBoxCell cell = (DataGridViewComboBoxCell) row.Cells["numRows"]; for (int i = 1; i < 51; i++) { ...more >>

Click on Title Bar
Posted by KillerCode at 7/26/2006 1:57:14 AM
Hi I have a busy dialog (i.e. a form with a progress bar with the description of what is happening in the moment) but when I have a counter on it to show how many events have been processed until now and I click and hold the mouse on title bar of the form the counter stops until I release i...more >>

ManagedC++ security: How to avoid the stack walk?
Posted by Lloyd Dupont at 7/26/2006 12:00:00 AM
In C# I could remove security check on an C DLL call by tagging my function as follow: [System::Security::SuppressUnmanagedCodeSecurityAttribute] [DllImport("SomeDll.dll")] static extern void SomeMethod(); In Managed C++ I don't declare the function I just #include the headers. How could ...more >>

Discrepancy in DataGridView column order & databound DataTable
Posted by Mike at 7/25/2006 5:58:50 PM
Dear group, I'm currrently investigating a bug within a piece of our software whereby if a DataGridView (bound directly to a DataTable) is ordered by column headers (containing lookup combo boxes where the value is the foreign key of another table), although the DataGridView is ok, the Data...more >>

[.Net 2.0] How to participate into a transaction ?
Posted by Steve B. at 7/25/2006 5:44:56 PM
Hi, I'm building a component that perform some operation and that is working. This component is runnig into the application app domain by now, but later, this component will be a distributed component that will perform operations which represent only a part of a whole process. Since durin...more >>

Detecting Battery Backup Notification
Posted by EmmanuelE at 7/25/2006 3:25:02 PM
I am setting up a couple of servers for an internal beta test of a web app. I want to implement a feature that would tell logged in users to log out should a power failure occur (and the servers are running on UPS batteries). Assuming I configure the Power Options so that "Notifications" are...more >>

Queued Components and TransactionScope
Posted by John at 7/25/2006 3:17:44 PM
Hi, I have an app that uses Queued Components. The queue is set as transactional and the transaction is set to Supported (I've also tried Required). Everything is running on the same box (tried XP and 2k3). In my app I wrap the queued component call in a TransactionScope. I'm using En...more >>

VB6 deployment through DotNet
Posted by Doug at 7/25/2006 1:03:20 PM
I know that DotNet's deployment functionality will allow very easy the ability to add a VB6 executable and/or DLL. My question is if there is a way that it can detect dependencies within that VB6 file? I know it does it for DotNet code but it doesn't appear to do it for VB6. ...more >>

Calculate memory consumed.
Posted by Praveen at 7/25/2006 10:28:05 AM
Hello all, In my application I have a datacache class which stores xml objects which are frequently used. Caching objects can improve performance but they come at the cost of memory and in my case since the number of xml objects can be huge I wanted to put an upper limit to the memory allocat...more >>

Using namespace from another project
Posted by Gregory at 7/25/2006 8:57:02 AM
I have two projects, both build .exe. Project_2 declares an object that is defined in Project_1. At compile time I refer from Project_2 to Project_1 and it makes Project_1 namespace available to Project_2. Project_2 compiles and runs, but at runtime it requires Project_1 executable to be in th...more >>

Newbie Connection problem
Posted by Johnson at 7/25/2006 8:33:28 AM
I have spent 3 plus hours looking at documentation and references. I have copied code and changed variables... but still nothing. Here is my connection string and scalar. Dim sqlConn As New SqlConnection("Data Source=*Server;Initial Catalog=*DBName;Integrated Security=SSPI;") ...more >>

Program Installation problem
Posted by Norm at 7/25/2006 7:31:02 AM
Hi, I downloaded the SyncToy program from the Microsoft site and am trying to install it. It says that it requires .Net Framework v 1.1.4322. It directed me to the MS site which shows that the latest version of .Net Framework is 2.0. So I downloaded that (I'm on a dialup line and that took ab...more >>

Webservice proxy and override
Posted by patrick.sannes NO[at]SPAM gmail.com at 7/25/2006 6:59:31 AM
Hi all, I got the following problem. When I add a webref to a project it generates (somewhere in the darsksides of the solution) a proxyclass. If you follow the inheritance tree you get the following tree: Component WebClientProtocol HttpWebClientProtocol SoapHttpClientProtocol MyProxy ...more >>

Remove titleBar
Posted by leonoah at 7/25/2006 6:37:40 AM
Hi all I have simple .net form application with one pushbutton. pushing the button open new window . the new window is external application ( not .net application. ) . i'm trying to remove the new application title bar and make it child of my form. i try to use the user32.dll function set...more >>

Tick must be Datetime.MinValue
Posted by Govinda Samy at 7/25/2006 4:18:02 AM
Hi We have migrated sql 2000 to 2005. our product is working 1.1. framework also fine. but We are trying to connect sql 2005 thru 1.1. framework, we got the error. Anybody have any solutions or suggestion, pls send the following ids: govinda.samy@3e4u.com asianindia@gmail.com asian_in...more >>

hiiiiiiii guys
Posted by Twinkle at 7/25/2006 3:54:56 AM
hi guys..i hv some probs..how to compare a word files with itself in c#..plz somebody help me ...more >>

Faillure to run .NET 2.0 app from UNC
Posted by Adri at 7/25/2006 1:53:02 AM
I've built an localised .NET 2.0 application, which runs fine on my development machine. But when I deploy the app, it fails to run from an UNC path. I've already used CASPOL to add FullTrust to the UNC. The error that occurs us the following: System.InvalidOperationException was unhandled ...more >>

About xml:space="preserve"
Posted by Lloyd Dupont at 7/24/2006 11:55:39 PM
I am "defining" an XML schema. In fact I'm not really writing any schema but I am writing an XML writer and reader for my data. It's all custom XML and I would like it to be XML tool friendly. I will have an element, lets call it <text/> which will be in the document in great quantity and i...more >>

Accessing fileshare using system.IO
Posted by Michel Smit at 7/24/2006 10:19:01 PM
I have a machine in a domain 'HOME' and a machine in a DMZ which is not able to communicate with the 'HOME' domain, and thus has it's own local users and groups. I'm writing a .NET assembly which will copy files from the machine in the domain to the machine in the DMZ. When mapping a drive ...more >>

ADFS and Windows Sharepoint Services
Posted by Leighton Corban at 7/24/2006 7:26:01 PM
I need to prove to my boss that ADFS will work well with WSS so that we can have one central datastore (Active Directory) which is in a different domain to the web server. I have gone through the ADFS step-by-step guide and proven that I can authenticate to the adfsresource federation serv...more >>

The project type is not supported by this installation
Posted by Juan Dent at 7/24/2006 3:32:01 PM
Hi, I downloaded the VS 2005 SDK last friday and I am testing out one of the samples - an MFC sample. I can compile it, but when I try to compile an add-in, I get: -------------- The project file 'C:\ShapeAppSamples\ShapeAppBasicMFC\Sample AddIns\CSharp\AppLevel\ShapeAppMFCAppAddIn.csp...more >>

Backup to USB driver?
Posted by Anthony at 7/24/2006 1:34:02 PM
Hi All, I am trying to write a program to do a automatic backup. I have some questions. 1. How can I detect a USB drive connection? 2. How can I get the drive letter?(If everytime is given a different drive letter) Anthony ...more >>

Troubleshoot Process id Errors
Posted by G Hustis at 7/24/2006 8:36:02 AM
We have a .Net application developed under FW 1.1 sp1. We run it under Windows XP, Win 2000 Server & Pro & 2003 Server and it runs just fine. But on one machine at one customer it will not run. Upon start up it throws this error "Application has generated an exception that could not be handled...more >>

dynamically create an array of primitive type
Posted by Roy at 7/24/2006 7:38:01 AM
I have an Type object indicating a primitive data type I want such as integer, short. How do I dynamically create an array of an primitive type by using reflection?...more >>

Problem in loading types from assembly
Posted by JJ at 7/24/2006 5:41:41 AM
Hi all, I am having problem in loading types from an assembly using reflection. I am using: 1. Windows Server 2003 64-Bit 2. Microsoft .NET Framework 1.1 3. IIS 6.0 My application is an ASP.NET web application and this application can be started with providing log-in credentials through...more >>

Showing the private key stored in a pfx file
Posted by BobNL at 7/24/2006 1:18:02 AM
Hi, I already asked the following question in microsoft.public.dotnet.security but I found out that that group isn't an MSDN Managed Newsgroup. I show the public and private key stored in a pfx file. The public key is the same every time I run the program, but the private key isn't. Can so...more >>

What is the difference between a manifest file and a config file?
Posted by harsha.ramesh NO[at]SPAM gmail.com at 7/23/2006 9:16:46 PM
Hi All, I am a newbie with .NET. I am trying to get some RTC integration to work. So basically, i have the following structure: 1. I have imported the TLB file relating to the rtcdll.dll (which is a unmanaged dll file), thereby creating a managed dll file. 2. I refer to this dll file in my ...more >>

Creating a new object of a GetType() type throws an exception. Why?
Posted by Paul Jones at 7/23/2006 9:16:13 PM
Hi, I need to create a new object of the same type as another variable is. Since I do not know the exact type (it varies within the function), I need to get the original type using GetType(). I've found somewhere on the internet that the new variable can be created this way: Object celldata =...more >>

ExecutionEngineException
Posted by Valerie Hough at 7/23/2006 10:37:17 AM
I can fairly reliably (but not exactly) reproduce this error when running my application under .NET 1.1. Under .NET 2.0 it has never (yet) happened. There seems to be quite a wide range of opinion on the cause of and the response to this error. Is there a definitive answer to whether misb...more >>

ASP.NET 2.0 help with iis
Posted by martyb9512 at 7/23/2006 12:53:02 AM
I have installed Visual Studio 2005 standard edition. I have purchased Microsoft ASP.NET 2.0 step by step. I am attempting to work through the text. My computer is running Media Center Edition. When I install IIS, I get version 5.0 and can not get the extension .aspx into the configuration for...more >>

what are xml schemas
Posted by Madhur at 7/23/2006 12:00:00 AM
Hello I am a .net developer and normally see the entries like <webparts xmlns="schemas.microsoft.com/webparts/v2> I get confused here about what does xmlns refers to and how does the program locates this schema. Since this schema refers to internet location, but a normal program doesnt r...more >>

.net 1.1 & 2.0 fails to install on W2000
Posted by Z at 7/22/2006 4:02:07 PM
Do I need some other program installed on W2000 before I can Install .net framework? ...more >>

Registry entry for #monitors on PC
Posted by Ed White at 7/22/2006 2:58:01 PM
I have three monitors on my desktop, and I just bought a laptop which of course has only one screen. The software I've written on the desktop takes advantage of the three screens by positioning various output on the left, middle, or right screen, so I will need to modify it to run on the lapt...more >>

Error in Configuring .Net
Posted by skyhawk at 7/22/2006 2:14:02 PM
I am trying to upgrade to .Net 2.0 from 1.1 using Windows XP Pro. When the install gets to the point of 'Configuring Microsoft .Net' it just hangs there and never completes the install. I have tried to uninstall 1.1 but when the programs get to the same point, it also hangs. i have to manually...more >>

reuse business methods as DLL in another project??
Posted by ashrafnairoukh NO[at]SPAM yahoo.com at 7/22/2006 9:36:22 AM
Hi all, I Have Core Project [3 tier Presentation-business-Data] include Core functionality, I want to reuse the Core Business functions in another project because the 2 projects using the same database. Lets Say this is the Case: CoreProject: Presentation->business->Data->DB NewProjec...more >>


DevelopmentNow Blog