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 > september 2007

Filter by week: 1 2 3 4 5

Printer ports not recognized
Posted by Printer prot at 9/30/2007 6:43:00 PM
I removed the virus Vundo and now my printer ports are not recognized. My windows installer is also not working. How can I fix?...more >>


Global CBT Hooking
Posted by Yehia A.Salam at 9/30/2007 4:06:41 PM
Hello, I'm developing an application which relies heavily on global hooks and apparently C# does not support this type of hooking. What I have in mind is to make a dll (in Delphi) that handle all the hooking and call a user defined c# function for further handling, is this possible, could I...more >>

Migrated SQL Express to a viable DB. Easy? Hard?
Posted by darrel at 9/30/2007 9:50:48 AM
I haven't been able to play in ASP.net 2.0 as much as I'd have liked to this past year. I'm going to start a new project from scratch in 2.0, however, so am looking forward to that. I'd like to know how hard would it be to built the solution locally using the built-in SQL Express, and then ...more >>

Temporary Internet Files.
Posted by Kerry at 9/30/2007 2:15:01 AM
Does it speed up your computer if you delete your Temporary Internet Files & how often should you delete them. Also,would there be anything in the files that are important that you need to keep. Please humour me! Thanks....more >>

HELP - Why are Worker thread's child thread's entering WaitSleepJoin? Plus Context Deadlock....
Posted by celoftis at 9/29/2007 8:25:09 PM
Using VS2005, VB.NET, I have a worker thread (started by main UI thread) that in turn spawns and monitors child threads to execute several long running process. The problem is that the worker thread's children are entering WaitSleepJoin and thus my worker thread just hangs doing nothing and ju...more >>

Is there any example to display the image from the RGB source?Thanks
Posted by linuxfedora NO[at]SPAM yahoo.com.hk at 9/29/2007 12:00:00 AM
I have a function which will return the RGB source to me, then what i want to do is to create the image and show the image on a Form. What is the best way to do it? Is there any example for that?Thanks. ...more >>

Asynchronous calls to a web service - 100,000 a minute
Posted by kebalex NO[at]SPAM gmail.com at 9/28/2007 1:50:55 AM
Hi, I've got a requirement to poll a web service for data but it needs to be done very frequently. The web service call is straight forward, it just returns a simple table of data with no more than 50 rows. It's a third party web service so i have no control over it. The problem is each ...more >>

benefits of unmanaged array vs. managed array? (visual c++)
Posted by buu at 9/27/2007 7:13:11 PM
are there any benefits? performance? ...more >>



Console.ReadLine with default text?
Posted by Martin Hart at 9/27/2007 6:05:07 PM
Hi: Is there a way I can use Console.ReadLine with some default text so that if the user presses Enter the default text is returned? TIA, Martin....more >>

Find Name of Function
Posted by Mick Walker at 9/27/2007 2:40:48 PM
How can I find the name of the current function being executed. For example, lets say I have the following function void Blah(int? y){ int z; try { z = y; } catch(Exception ex){ throw ex } } Which will throw an exception if y is null(Nullable). I am writing a class to log an...more >>

FileSystemWatcher moved files
Posted by wpcmame at 9/27/2007 12:12:02 PM
How do I detect if a file is copied or moved into a folder? I have a watcher set on the folder with NotifyFilters.LastWrite and a delegate on the Changed event. It works if I save a file in the folder but not if I copy, move or paste it there. ...more >>

Best way to design multithreading application
Posted by Dave at 9/27/2007 10:59:44 AM
Ok, I appreciate any help you can give me. I am somewhat new to threading, only understanding it conceptually, and I use the Threading namespace for the sleep() command. So, any suggestions with code would also be beneficial. Basically, I need help designing how my threads should interact. Cu...more >>

Backwards compatibility of System.Configuration.Configuration?
Posted by Mark at 9/27/2007 6:04:03 AM
Hi... I've got an old app config that I'm trying to work with using the new 2.0 config framework, e.g. <configuration> <configSections> <section name="Test" type="System.Configuration.NameValueFileSectionHandler"/> </configSections> <Test> <add key="test" value="th...more >>

.NET Framework 2.0
Posted by aroraamit81 NO[at]SPAM gmail.com at 9/27/2007 4:45:17 AM
just want to read all the related concepts throughly including Garbage Collector and CLR, but not getting any web links which are specific to framework 2.0 not even on MSDN. Any pointers to that would be appreciable. Thnx Amit Arora ...more >>

AccessViolationException from OSSOCK.recv when using WebRequest
Posted by Max Bolingbroke at 9/26/2007 9:37:28 PM
Hi, I have some extremely simple code using WebRequest (isolated from a larger application): static void Main() { WebRequest w = WebRequest.Create("http:// www.google.com"); // Works //WebRequest w = WebRequest.Create(@"http:// finance.yahoo.com");...more >>

Enumerating modules inside a process in a 64 bit system
Posted by Ramon N. Gene at 9/26/2007 3:03:07 PM
Hello: I need to detect whether certain addin is loaded inside Microsoft Word. To do this I am using Process.GetProcessesByName("winword") from System.Diagnostics and then enumerating all the modules inside the winword process using Process.Modules. This is working fine in a 32 bit ...more >>

WCF Solution
Posted by Demetri at 9/26/2007 2:17:07 PM
Problem: An External resource which I have no control over delivers data via TCP/IP. In addition, there are files delivered to specific folder locations on the network. There is a very poorly written system ("server") that uses Sockets to intercept the data that comes in via TCP/IP and I...more >>

SmtpClient.send error
Posted by Pavlovs Mouse at 9/26/2007 10:56:12 AM
I have a web page that sends emails to a mailing list of 700+ recipients. It ran to about 435 and quit, and was unable to make a connection to send again. I do not yet have verification that the 400+ emails actually arrived. I *think* but do not know for sure that my smtp server is exchange. ...more >>

System.Configuration.AppSettingsSection doc error?
Posted by Mark at 9/26/2007 10:46:00 AM
Hi... Perplexed about something I'm finding here. I just started experimenting with ConfigurationManager.OpenExeConfiguration() and ConfigurationManager.OpenMappedExeConfiguration(), and I've found what looks like a doc bug on MSDN. http://msdn2.microsoft.com/en-us/library/system.config...more >>

WSE 3.0 Large files - Error - Tried all but nothing helps
Posted by tobiwankenobi at 9/26/2007 8:26:26 AM
Hello everybody, I try to send big files to a webservice using VS 2005 and WSE 3.0 (mtom enabled). Up to 120 MB erverythink works fine. But if I try a 140 MB File I get the following exeption: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a sen...more >>

NUB Threading Question
Posted by Holysmoke at 9/26/2007 5:44:00 AM
Hi there, I have to do report generation application which works similar MS SQL Server Reporting Services. A user add to subscribed scheduling (Daywise, Monthly, Yearly). I must be able to generate a report for the specific timing. I think I should do this application as a windows service ...more >>

FileSystemWatcher make weird problem when I watch subdirectory of the Application?
Posted by mtczx232 NO[at]SPAM yahoo.com at 9/26/2007 2:48:27 AM
I met some strange behavior of FileSystemWatcher, when I try to watch subdirectory that place under application directory. sombody know about this? ...more >>

How can I give my code permissions?
Posted by Juan Dent at 9/25/2007 7:30:02 PM
Hi, I have an assembly which needs to create a file. I use: ---------- FileStream destStream = new FileStream(pathFileName, FileMode.Create, FileAccess.Write, FileShare.None); StreamWriter writer = new StreamWriter(destStream); XmlWriter xml = new XmlTe...more >>

setting KeepAlive - how can I use it?
Posted by liormessinger NO[at]SPAM gmail.com at 9/25/2007 7:18:56 PM
Hi, I wondered what are the implications of setting keepalive to true. can I detect, say, from a server, that a client crashed? and if so, how? thanks much, Lior ...more >>

Using interfaces for reflection-loaded classes
Posted by ctacke/ at 9/25/2007 4:17:08 PM
I am having problems with casting or converting a class to to an interface from which it derives. I'm certain that it's due to how it's being loaded, but I'm not sure how to get past the problem. Here's a general outline of the architecture. It's oversimplified, but I think it's enough in...more >>

Failed to generate code while converting from .Net 2003 to 2005
Posted by Maxsan at 9/25/2007 11:06:02 AM
I received an error while converting a windows application from .Net 2003 to ..Net 2005. The followinf error occurred in a dataset that was automatically generated: Error 18 Custom tool error: Failed to generate code. Unable to convert input xml file content to a DataSet. The following text i...more >>

Different setup for each client?
Posted by Empi at 9/25/2007 12:00:00 AM
Hi, I have a project on which I must do some different definitions for each client the installs it (how many channels etc) and lock it from him. What is the best way you recommend? Till current version, I used to send the clients a "signed" ini file with the information and a checksum I...more >>

Strange results attempting IDENTITY in LINQ
Posted by Kevin_E at 9/24/2007 5:30:01 PM
I tried to add an one-up sequence to a LINQ select such as: var i = 0; var tokenized = from line in lines select new { index = (i = i + 1) ,tokens = line.Split(new char[] {' '} } However, I get strange, but somewhat explainable results. It seems that every time I access 'ind...more >>

do you know if the new bz box is x86 or x64?
Posted by Daniel at 9/24/2007 3:56:17 PM
do you know if the new bz box is x86 or x64? ...more >>

Intermittent socket exception
Posted by QDL at 9/24/2007 3:23:12 PM
Hello everyone, i have a windows services (framework 1.1) that uses a socket to send Multicast UDP Datagrams. On one particular server (HP with Windows 2003 x64), sometimes i get an exception: SocketException: The requested address is not valid in its context. I believe the offending li...more >>

Event handler not responding on new instance of class
Posted by Mike Thompson at 9/24/2007 3:17:46 PM
The language for this question is C#. I have a class named client which derives from IDisposable; it contains several event handlers. In another class, I create a static instance of the client class and subscribe to two of its events, using standard += syntax, for example: client.Error ...more >>

Free Audio library?
Posted by mtczx232 NO[at]SPAM yahoo.com at 9/24/2007 3:17:21 PM
have some work around Sound for dotnet? I need to join mp3 files into large one? ...more >>

Application settings, when is it deserialized?
Posted by blekros at 9/24/2007 12:15:37 PM
Group, Using VS2005, VB.NET and .NET 2.0 Framework, I have a built a mylib.dll class library. It is registered for COM interop. I have an associated app.config. I build mylib project and get mylib.dll, mylib.tlb, and mylib.dll.config. So far, so good. I change the value of my setting i...more >>

My channels are unavailable.
Posted by Bex at 9/24/2007 11:30:25 AM
For 2 days I have been unable to access channels, I thought it was my aerial but I used a different one and still have the same problem. I have tried to scan for the channels with no success, used system restore and have tried to reset the settings but nothing has worked. I really don't know w...more >>

UICULTURE Thread context
Posted by sfear at 9/24/2007 9:34:19 AM
Hi all, I'm trying to create a multilanguage website in ASP .NET 2. I want to let users to set their preffered language. Using a listbox and the Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(selectedLanguage); postbacking the page the controls are lo...more >>

using stmt usage
Posted by AVL at 9/24/2007 2:44:01 AM
hi, i've seen in certain code snippets the following usage of using statement.. using(RegistryKey key = Registry.Users) { //code } what exactly is the usage of using stmt in this case? can anyone explain......more >>

Losing my parameters and fields?
Posted by MrGrundh at 9/24/2007 1:06:02 AM
Dear MSDN! I have designed a report in VS 2005 Report Server Projekt. The report connects to a Analysis 2005 server. Everything works fine in Layout tab and preview tab until i click data tab. After i have clicked the data tab the report starts to show errors in the output and error list wi...more >>

C# Object serialization
Posted by linuxfedora NO[at]SPAM yahoo.com.hk at 9/24/2007 12:00:00 AM
I know how to serialize a object into a file. But if i want to serialize several different objects into the same file and not at the same time, Then how can i do it?Thanks For example: i need to serialize ClassA object first, then after 1 minute, i need to serialize ClassB objec to the same f...more >>

System.Net.Mail is not RFC2821 compliant
Posted by John Allberg at 9/23/2007 7:58:00 PM
Hi! I'm playing around with System.Net.Mail in .Net 2.0 and noticed that it never sends the QUIT command. Using a network sniffer I checked and immidiatly after it has received the confirmation of the mail being accepted, it disconnects. RFC2821 4.1.1.10 says: "The sender MUST NOT inte...more >>

creating simple array... how to?
Posted by buu at 9/23/2007 6:37:07 PM
I'm trying to create a simple 2-dim array of integers, but don't know how to do that... in definition of class, I wrote: int *results; while in constructor: results = new int[256][256]; but, I got an error: C2440: '=' cannot convert from int{*}[256] to 'int *'. what is wrong? ...more >>

Process Issue
Posted by Barry at 9/23/2007 6:23:00 PM
Hi I have a console application which start a Windows Application, how will i know when the Windows Application has finished processing (it basically downloads some web info), i want to kill the Windows application when the download completes. I tried Proces.WaitForInputIdle() without an...more >>

Async File IO Implementation
Posted by Muj Beg at 9/23/2007 1:28:30 PM
Hi All, For various reasons, I have been trying to get a closer look into Async file IO implementation of the framework. Am I correct in assuming that the Rotor (http://www.dotnet247.com/247reference/System/IO/FileStream/__rotor) implementation is a fair (if not exact) representation of th...more >>

Problems running WMI code through C# as scheduled task
Posted by Ryan McFall at 9/22/2007 12:26:15 PM
I am running the following code as part of a scheduled task; the objective of the code is to determine whether or not someone is logged on to the workstation in an interactive session, and if so, if that person is the same one as the one running the task. ManagementScope ms = new ManagementSco...more >>

.NET CF 1.1 How to call a process on Desktop after Synchronization?
Posted by orandov NO[at]SPAM gmail.com at 9/21/2007 8:16:56 PM
Hi, I am new to programming with a hand held. I am working with Pocket PC 2003, .NET 1.1, SQL Server 2000, SQLCE 2.0. I am using merge replication to sync the data between my SQLCE and SQL 2000 database. After the sync I want to start a process on the desktop that will take the rows from on...more >>

how to force a .net application to use .net 2.0 ?
Posted by Daniel at 9/21/2007 1:53:21 PM
how to force a .net application to use .net 2.0 ? this windows service is about 4 years old and im pretty sure is using .net 1.x runtime. Is there soem setting in the installer that says to use .net 2.0 instead of .net 1.0? this windows service is developed in visual studio 2002 ...more >>

New Mutex constructor with MutexSecurity
Posted by Steven Kilby at 9/21/2007 12:42:12 AM
Hi, With .NET 2.0 a new Mutex constructor was added that takes a MutexSecurity object as a parameter. The interesting thing is the following statement from the MSDN documentation: If the named mutex has already been created with access control security, and the caller does not have Mute...more >>

Throw without parameter...
Posted by AshokG at 9/21/2007 12:00:00 AM
Hi, If you use just throw without parameter should preserve the complete stack trace and the exception information. for example: 1. private void Bar() 2. { 3. try 4. { 5. string s = null; 6. if (s.Length == 0) 7. return; 8. } 9. catch 10. { 11. // do some proce...more >>

Problem with installing .NET 1.1. on top of 2.0
Posted by mark4asp at 9/21/2007 12:00:00 AM
I already have 2.0 Framework (and VS2005 + SP) on my PC. I wanted to work throught the book "Test-Driven Development in Microsoft ..NET, Newirk & Vorontsov, 2004". I downloaded the source from the author's site. It is an MSI. When I run the MSI it demands the Framework version 1.1.4322 be inst...more >>

Windows Desktop Search (Enterprise or Personal)
Posted by Colin Goss at 9/20/2007 2:32:00 PM
Is there a way to modify the UI on Windows Desktop Search? Programmatically or through a xml or css file? maybe xaml? Can I remove or Add an Item to the Other Drop Down. Can I remove the Music search? I don't work for a music company or radio station. As well as the web button can I get rid ...more >>

Update AD with VB.NET
Posted by jimstruckster NO[at]SPAM gmail.com at 9/20/2007 2:31:34 PM
Hey everyone, I'm working on a project to set up a new user in AD using VB. I have the connection working and I'm able to get most of the settings done. However I can't find the properties to set the password to never expire and the user cannot change password. I'd also like to be able ...more >>


DevelopmentNow Blog