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 > november 2006 > threads for november 15 - 21, 2006

Filter by week: 1 2 3 4 5

Custom StringBuilder Marshaling
Posted by Olivier Matrot at 11/21/2006 3:46:59 PM
Hello, I'm in the process of writing a managed c++ wrapper class to use existing unmanaged C++ code. So I have to deal with custom marshaling. Given a StringBuilder, I need to produce a LPTSTR to call unmanaged code, and get back a modified StringBuilder on return. How Can I safely access the ...more >>

DataAdapter.Update bug updating Child table via Relations / RowState corrupted?
Posted by Chris Bordeman at 11/21/2006 2:30:13 PM
Hi all. .Net 2.0. It seems the DataAdapter.Update Method changes the RowState of child records to 'Modified' when updating them through a Relation. If the child records' .RowState is "Added" or "Deleted," shouldn't they STAY that way? Otherwise when you try to update the child table, you...more >>

FileSystemWatcher.WaitForChanged surprising (wrong?) behaviour
Posted by John Aldridge at 11/21/2006 2:10:34 PM
I'm trying to use the System.IO.FileSystemWatcher class in code like... using (FileSystemWatcher changeMonitor = new FileSystemWatcher(".")) { for (; ; ) { WaitForChangedResult c = changeMonitor.WaitForChanged( WatcherChangeTypes.Created, 60 * 10...more >>

updating child records in a DataSet w/ new autoinc values after parent insert?
Posted by Chris Bordeman at 11/21/2006 10:54:21 AM
Hi all. Using Dot Net 2.0. I have a typed dataset generated by VS. It contains a parent and a child table with a relationship set up in the MSSQL database and showing in the dataset. _Both_ tables have new records that need to be added to database. I'm able to retrieve the server's autoin...more >>

Server Application unavailable error when password containing & character
Posted by TeenaFrancis NO[at]SPAM Hexaware.com at 11/21/2006 5:20:26 AM
Hi, One of my application has <identify impersonate = true> in web.config. I have given my user name and password in machine.config. When i tried to access the application used to work perfectly. But 'Server Application Unavailable' error is coming when the password contai...more >>

Free Video Tutorials
Posted by Axel Gallus at 11/21/2006 12:00:00 AM
Hi, i am looking for free video tutorials to learn the following: A.) Dot.Net Framework (Class Library) overview, Development Tools overview, general technology overview B.) Learning Dot.Net Programming B.) Learning to use Visual Studio in general and for Dot.Net Programming C.) How to conne...more >>

Samples of MemoryMappedFile in C# or .NET
Posted by Valerie Hough at 11/20/2006 7:08:55 PM
I am interested in a sample in C# (or any .NET) that shows the bare bones of doing CreateFileMapping, et al. to share an existing file between two or more processes on the same workstation. Any help would be greatly appreciated. Brian Hough ...more >>

Can Borderless forms have a context menu in the start bar?
Posted by ThunderMusic at 11/20/2006 6:55:28 PM
Hi I'm currently developping a skinnable form by using a borderless form (Form.FormBorderStyle=None). Is it the right way to go in the first place? if it is. Assuming that when there is no border to the form there is no context menu when you right-click on your form in the start bar too (the ...more >>



certificazioni MCAD per il fmw 3.0
Posted by *FeDe* at 11/20/2006 4:31:38 PM
Quando verranno proposte le nuove certificazioni per il nuovo framework? ...more >>

Question regarding Shared Functions or Subs
Posted by Patriot at 11/20/2006 3:45:00 PM
I wonder if it is threadsafe to have a Shared Function or Sub like this: Public Class Data1 Public Shared Function Query1(Byref sCnxn as String, Byval sSql As String) As DataTable Dim oCnxn As New SqlConnection(sCnxn) Dim oCmd As New SqlCommand(sSql, oCnxn) Dim o...more >>

Running 2.0 with 3.0 installed?
Posted by brett at 11/20/2006 3:35:47 PM
If I upgrade to framework 3.0 and install Studio components for 3.0, will I still be able to create apps for the 2.0 platform exclusively? Meaning, if a client has 2.0 framework installed on their machine, can I provide a 2.0 (only) Winform app? Thanks, Brett ...more >>

Debugger Step Over Attribute
Posted by Mark Ingram at 11/20/2006 3:22:13 PM
Hi, is there an debugger step over attribute that I can use on properties? For instance, I have a singlton class with an "Instance" property: public MyClass Instance { get { if (m_instance == null) { m_instance = new MyClass(); } return m_instance; } } It's annoyi...more >>

How to dialup?
Posted by Massimo at 11/20/2006 2:59:25 PM
I need to activate an Internet dialup connection from a .NET application; how can this be done? Thanks Massimo ...more >>

how to update session state server on Windows 2003 x64 version
Posted by med at 11/20/2006 2:57:02 PM
Sir/Madam, After set the session mode="StateServer" in the Web.config I get follow error, Unable to use session state server because this version of ASP.NET requires session state server version 2.0 or above. within the services, the ASP.NET State Service is pointed to C:\WINDOWS\Micr...more >>

Event handling in Collections
Posted by gordigor at 11/20/2006 2:47:17 PM
I have a class that inherits from NameObjectCollectionBase. For simplicity, the collection is called reports, and the individual objects in the collect are called report items. Each report item has a property called .value that throws an event everytime the value changes. What I would like to...more >>

how to get the namespace inside a static method?
Posted by Kevin at 11/20/2006 1:15:46 PM
Hi there, I have a class with a static method, how can I find the namespace of the class from inside the method. TIA...more >>

Changing Route Table from C#
Posted by cyberco at 11/20/2006 12:57:07 PM
I've posted this question in 'microsoft.public.dotnet.framework.compactframework' as well, but despite the great help I still haven't solved the problem. So before going the C++ route I would like to see if anybody in this group may have the answer. What I'm trying to do is change the route t...more >>

How to speed up reading of large disk files
Posted by Valerie Hough at 11/20/2006 12:16:13 PM
Sorry if this is the wrong news group for this post. I have some large disk files (15-20 MB) that are made up of many records of different types and sizes. I use a BinaryReader to process all the data sequentially (i.e. with many reads operations) and load it into my .NET app. I will have...more >>

ClickOnce program fails to run properly after update
Posted by Michael D. Reed at 11/20/2006 10:31:02 AM
I am using ClickOnce to distribute a program. It works well except for one detail. When a new version is installed, the program does not initialize properly immediately after the update. The sequence is the user starts the program, is informed a new version is ready, installs it, when it is...more >>

How to access a network drive from a Windows service?
Posted by Eve at 11/20/2006 8:23:02 AM
I have a VB .NET app that lets you create a DTS Package that copies data from an SQL Server to a database located in the specified path (it should work with both local and network drives). You can either run the package from within the application or as a Windows service. If I specify a networ...more >>

Exception handling behaves differently in debug and release versio
Posted by RFlaugher at 11/20/2006 7:53:01 AM
I have a class library which throws exceptions on errors. I have an exception handler several levels above where the exception is thrown to catch exceptions. When I run the app in the debugger the exception handler is called, however, when running the app outside of the debugger I get the ...more >>

MyProj.svhost.exe running alone
Posted by Romain TAILLANDIER at 11/20/2006 12:58:58 AM
Hi group I am testing the Visual 2005 Express Edition. I have a solution with a few projects (WinForms, and ClassLibrary), the start up projet is MyProject. When i open the solution using visual, MyProject.svhost.exe start imm=E9diately.I cant run my project using debug. i can run using the "...more >>

stupid .net framework 3.0 ?
Posted by Brent at 11/19/2006 11:47:30 PM
Ok guys i know this is a stupid question but here goes. I decided tonight was going to be the night to learn this new .net framework 3.0. I downloaded the new release of .net framework 3. I also installed windows SDK & the visual studio plugins for WF,WCF, WPF. Ok my first quest was try resear...more >>

BHOs, I.E. ToolBars, and such
Posted by GaryDean at 11/19/2006 5:57:50 PM
I am having to get involved in writing Browser Helper Objects in Managed Code and to write toolbars and interface the two. Because BHOs have been clasically written in C++ using ATL, most of the discussions are in that arena. Are there any forums or other types of technical exchanges regar...more >>

dose the attribute know what the class or property is?
Posted by Steven.Xu at 11/19/2006 1:50:01 PM
hi everybody, i am using some attribute for a proerty. could the attribute get some class or property information by itself? i mean, dose the attribute know what the class or property is? and how? thanks!...more >>

using preprocessor directive for cross framework compatibility
Posted by Praveen at 11/18/2006 9:18:46 AM
Hello all, I have some common classes that I routinely use with all the dotnet projects that I work with. I have these classes in a separate file so that it becomes easy for me to include them into projects. Some of these projects are done in visual studio 2003 and some are in visual stu...more >>

Raw TCP/IP library?
Posted by Massimo at 11/17/2006 8:09:24 PM
Hi to all :-) I need to know if there is (inside the main .NET framework or available as a library) any TCP/IP implementation which can be run over a serial line. I know the request can sound quite strange, so here are some more elements :-) I'm testing a client/server application which...more >>

Trace.WriteLine(object value) - causes "System.InvalidOperationException: Collection was modified; enumeration operation may not execute."
Posted by jc at 11/17/2006 2:52:12 PM
For some reason I am getting the following exception when calling Trace.WriteLine(object value): "System.InvalidOperationException: Collection was modified; enumeration operation may not execute." if (Trace.Listeners.Count > 0) { Trace.WriteLine(entry); // line 424 } - Here is the...more >>

check caller before ServiceBase.Run?
Posted by stevenkobes NO[at]SPAM hotmail.com at 11/17/2006 1:31:22 PM
I have a service application in C#. If the user double-clicks the service EXE, I want to display a form with options to install or uninstall. In other words, I want: static void Main() { if (invoked by user) { // <-- how to implement this? // display GUI... } else { // invok...more >>

Error 4786 with Windows Service
Posted by Eve at 11/17/2006 10:32:02 AM
After my Windows service runs for a few days (sometimes 5, sometimes 3), I'm getting the following exception in the Event Viewer: Event Type: Error Event Source: COM+ Event Category: Unknown Event ID: 4786 Date: 10/31/2006 Time: 1:29:50 AM User: N/A Compu...more >>

Can I use WCF right now?
Posted by Mike90 at 11/17/2006 9:27:31 AM
Is it possible to convert my app which is in Framework 2 to 3 using VS 2005 and release it to customer? What approach must I take? ...more >>

How to move from .NET Remoting to WCF
Posted by Mike90 at 11/17/2006 9:25:46 AM
What is the best way? Is there a good article? ...more >>

Loss message in Socket Async mode
Posted by rockdale at 11/17/2006 6:48:12 AM
Hi, all Did not find a .Net Communication forum to post. I am soing a client/server message system and using C#.net socket and Async mode. Pretty much as described in article http://www.developerfusion.co.uk/show/3997/3/ But I have a big issue with this approach and I am not what did...more >>

Socket close notification
Posted by Mubashir Khan at 11/17/2006 4:32:58 AM
I am so surprised to find that there is no close notification in socket class. Like OnClose in MFC CAsyncSocket. Any suggestions please ...... ...more >>

Application terminates due to access violation?
Posted by Daniel Carlson at 11/17/2006 3:33:02 AM
Does anyone knows the meaning with KB823140 and KB903886? These articles treat the issue of "Access Voilation" in .NET framework. I have an application developed in C# that sometimes simply dies. No messages, no error codes, no exceptions. A few days ago I got a tip that this might be caus...more >>

Spontaneous NullReferenceException in System.Windows.Forms
Posted by dschüsä at 11/17/2006 1:30:09 AM
In our .NET Framework 1.1 Application that is installed on about 800 PC's we have 5 PC's that has spontaneous NullReference Exceptions (Windows XP & 2000 uptodate) in System.Windows.Forms. We already removed any Crossthread Calls. Reinstalling and replacing the computer hasn't brought us any bet...more >>

IO.Compression and Encryption
Posted by AnikSol at 11/17/2006 12:05:51 AM
Hi, Environment: VB 2005 Professional Both ends, its the application which is doing the functionalities. At the despatch end, We have a text file which is to be compressed and encrypted and sent over to the recepient. At the recepient end, the file is decrypted and then decompressed. Say...more >>

Other printing problem (resolution not honored)
Posted by Lloyd Dupont at 11/17/2006 12:00:00 AM
Before printing I create an instance of PrintDocument as Follow (beware, pseudo code) //============================== PrinterResolution pr = new PrinterResolution(); pr.X= 600; pr.Y= 600; pr.Kind = PrinterResolutionKind.High; PrinterSettings printer = new PrinterSettings(); printer.Pr...more >>

Printing Problem
Posted by Lloyd Dupont at 11/17/2006 12:00:00 AM
Before printing I create an instance of PrintDocument as Follow (beware, pseudo code) //============================== PaperSize ps = new PaperSize(); ps.Kind = PaperKind.A3 ps.Width = 1169; ps.Height = 1654; PrinterSettings printer = new PrinterSettings(); printer.PrinterName = "my pri...more >>

Howto Identify an Exception?
Posted by Pieter at 11/16/2006 3:07:47 PM
Hi, For some procedures that throws exceptions, I would like to show different messages to the user depending on what type of exception he's getting. For instance this one: when the file is locked, I want a messagebox to tell that the user has to close the file first. Is there a way to i...more >>

How can I use Regasm on server?
Posted by Bryan at 11/16/2006 10:52:02 AM
Hello all. I have an assembly that needs to be registered on a server for use with SQL Server 2k. Locally I can run Regasm from the VS.NET command window and that's that. But how can I get the assembly registered on the (or any) server? I have the dll, snk...all that, but I can't figure ou...more >>

FileSystemWatcher help!
Posted by Phuff at 11/16/2006 8:52:08 AM
Okay, I am writing a service that monitors the file system on one of our servers and I can take of that in a cinch. However, I found no properties or methods available to see who the user is that controls the process performing the deletion. I also need to know what application is doing the de...more >>

combobox find item by value
Posted by Jason at 11/16/2006 8:01:01 AM
Is there any way in a combobox to find the index of an item or set the item in a combobox by the value? I know there is a FindString, and a FindStringExact method in the combobox object, but is there anything simmilar or any work around to getting the index of an object or setting the selec...more >>

Framework files location for compile
Posted by Chuck P at 11/16/2006 7:37:02 AM
On our development machines I created some batch file for compiling our web apps. They make use of some environment variables and batch files that visual studio installs. if "%VS80COMNTOOLS%"=="" goto error_no_VS80COMNTOOLS rem set path of aspnet_compiler for the framework in vs80 call "...more >>

How do I Sleep for a specified amount of time and relinquish contr
Posted by nickdu at 11/16/2006 7:07:01 AM
In the docs for Thread.Sleep() it appears unless I specify 0 my thread will still use the rest of its quanta (I guess doing nothing useful) as opposed to being suspended right away to allow other runable thread to execute. What's the best way to sleep for a specified amount of time and relin...more >>

.Net 3.0 Administrative Setup
Posted by MichaelG at 11/16/2006 1:11:02 AM
..Net 3.0 deployment via Active Directory and Group Policy seems pretty broken to me. The most up to date info I can find is in the RTM SDK under 'Microsoft .NET Framework 3.0 Administrator Deployment Guide'. The script at the bottom of that article ignores the WIC and XPS components of do...more >>

Can't install hotfix for KB913384
Posted by Sean Blaes at 11/15/2006 8:52:02 PM
Hello, I got the hotfix from customer support for KB913384. However, when I attempt to install, it says I'm missing the required software. IIS is installed, and I'm running Windows XP Pro SP2 and .NET 2.0.50727.0. It doesn't say what software is missing....more >>

OE - nothing appears in message body
Posted by pspiel at 11/15/2006 6:41:01 PM
I've been using Outlook Express for my Hotmail account for a long time. Suddenly it isn't working properly. It downloads messages into the inbox fine, but for some reason when I open a message I get the hourglass and no matter how long I wait nothing appears in the body of the message. I tr...more >>

convert DataColumn.GetType() into a DbType or SqlDbType?
Posted by Chris Bordeman at 11/15/2006 3:32:45 PM
I have a DataColumn, want to derive the DbType. I can do column.GetType() but that's a system type, not a db type. How do I convert it to the corresponding type? Thanks much! Chris B. ...more >>

TypeConverter and arrays
Posted by Rog at 11/15/2006 12:40:02 PM
Using asp.net1.1, I have a property on a control that is an enum. I use an accessor and set it in HTML view. So: public enum Permission { None = 0, Admin = 1, Member = 2, ... } .... public class Lock : System.Web.UI.Control { private Permission perm; [Bindable(true), Category("S...more >>

Client -Server in Windows Applns...
Posted by Raj at 11/15/2006 6:37:02 AM
Hi All.., I have a VB.Net Windows Application.. I need to Run this Exe From Some Other System(Client) and I need to Upload some specified files to the Server System.. Now my doubts are.. 1) Is client-Server concept is Possible in Windows Applications.. 2) Can I pass some arguments ...more >>

ClickOnce Deployment on Thin Clients for ALL users
Posted by kaz1165 NO[at]SPAM gmail.com at 11/15/2006 6:14:36 AM
I am having a bit of a problem with my ClickOnce Deployment strategy for vb.net 2005 apps. I am working in a plant which has hundreds of thin clients and when I deploy an app using ClickOnce, it asks each individual user if they want to install. When updates are rolled out, it then asks each ...more >>

Application.ThreadException not working
Posted by joseph_gallagher NO[at]SPAM hotmail.com at 11/15/2006 4:08:01 AM
Hi, I have a shoddily written application that is written in 1.1 that I've ported to 2.0 and now occasionaly I get crashes which I suspect are been caused by exceptions in threads, most likely due to trying to access controls which is now stricter, I know I could just set CheckForIllegalCro...more >>


DevelopmentNow Blog