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 > october 2006

Filter by week: 1 2 3 4 5

Listening on USB port
Posted by mikemeamail NO[at]SPAM net2000.ch at 10/31/2006 11:10:56 PM
Hi all, Could anybody help me, to know how can we in .Net : - Detect when a USB key is plugged to a computer - Know which account is currently accessing the USB drive I believe i need to create a windows service and propably use remoting. But i would need someone to point me to the righ...more >>

Explicitly close DataReader if I close the underlying connection?"
Posted by MarkusJNZ NO[at]SPAM gmail.com at 10/31/2006 3:27:43 PM
Hi, I have a DataReader which I think may be the cause of connections remaining open to a MSSQL database. basically the pseudo code is below ====== SqlConnection conn = new SqlConnection("connectionString"); SqlCommand cmd = new SqlCommand("Select * from blah",conn); conn.Open(); SqlD...more >>

PrintPreviewControl
Posted by Richard MSL at 10/31/2006 3:12:02 PM
I am using a PrintPreviewControl to show report output. I would like there to be a way for the user to select a portion of the output, then right click and choose an option which would trigger an event in my program. Is there a way to do this? I gather that PrintPreviewControl is closed and...more >>

How to get value of IntPtr
Posted by Notre Poubelle at 10/31/2006 1:41:02 PM
Hello, I'm using the IEnumMoniker.Next method, based on an IEnumMoniker reference I've obtained by looking up values in the running object table. The third parameter to IEnumMoniker.Next is an IntPtr. It's supposed to return the number of items actually returned, based on the number reque...more >>

Paypal & asp.net
Posted by Blasting Cap at 10/31/2006 10:48:26 AM
I have an application that needs to use Paypal to verify the legitimacy of a credit card, not the actual charge. The only thing I can find thru Paypal's SDK is stuff that's a COM add-in. Is there a web service that anyone knows of that'll do this process? One that would be free or a single...more >>

Unexpected behavior PrincipalPermissionAttribute
Posted by vecozo NO[at]SPAM online.nospam at 10/31/2006 9:34:02 AM
Hello, We have encountered some obscure and unexpected behavior of PrincipalPermissionAttribute, if applied to both a class as well as a method in this class. The class permission seems to form an inclusive or with the method permission. We have a different scenario ourselves, but we wi...more >>

Converting .Net1.1 app to .Net2.0 app resulted in loss of CLR 2.0 and more
Posted by Marcus at 10/31/2006 6:29:43 AM
Hi, I converted my .Net1.1 application (written in VS2003) to a .Net2.0 application. I let VS2005 do the job as it suggested when trying to load my VS2003 project in VS2005. I then included the output exe from this project into my VS2005 setup project. I used it as a custom action. I then ...more >>

VS 2005 TS Opens a form in changed state?!
Posted by Leon_Amirreza at 10/31/2006 12:00:00 AM
When I double click the form icon in the solution Explorer It Opens the form with an * in its name tab (and indicates that the form has been changed since last save action) HUH ?!?!? I hadnt had even a chance to change somthing Any1 knows what is wrong and how to solve it?!?! ...more >>



Messagebox not getting displayed properly.
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 10/30/2006 10:32:02 PM
Hi all, I have installed dotnet on my Pc. I created one windows application in which i am displaying messagebox. when i run my application what i found is contents are not getting displayed in messagebox. Can anyone tell me why this is happening. thanks in advance. ...more >>

Known File-types Previewer
Posted by Andrea Anastasescu at 10/30/2006 4:52:49 PM
Hi there, I have to integrate a previewer into a desktop application, that retains some links to resources (local files, internet-links, personal mails - this is not of certain concern). This window should be able to give a preview of the document: be it an office (word, excel), an image f...more >>

what is best way to talk to https webpages within .net? any good librarys for talking to https websites?
Posted by Daniel at 10/30/2006 3:45:42 PM
what is best way to talk to https webpages within .net? any good librarys for talking to https websites? ...more >>

OT-develing on several machines
Posted by Jon Doe at 10/30/2006 3:44:32 PM
Hi Sorry for this OT post. What is the norm when you have to use 2 or more machines when you develop? I use a workstation as my main developer machines, but quite often I need to use my laptop instead for variouse reasons. How does people tend to handle the issue with saving y our source c...more >>

when CurrentPrincipal is set in async call back, NET 2.0 loses CurrentPrincipal
Posted by kochobay NO[at]SPAM gmail.com at 10/30/2006 2:04:20 PM
i use a form to login the system. After database checks System.Threading.Thread.CurrentPrincipal is being set in async call back. During database chekcs, user interface displays a progress bar. And this works fine with .NET 1.1. But i newly ported application to NET 2.0 (Visual Studio 2005) and...more >>

Converting To .NET 2.0 Changes 'UserAppDataPath' Value...?
Posted by A_StClaire_ NO[at]SPAM hotmail.com at 10/30/2006 11:31:15 AM
hi all, in my Outlook add-in, I was using System.Windows.Forms.Application.UserAppDataPath to get the user roaming directory. however since moving from Visual Studio 2003 to 2005, I noticed the value returned by this property changed. namely, it went from 'C:\Documents and Settings\<user>...more >>

Version Tolerant Serialization -- backwards compatible?
Posted by gfunked NO[at]SPAM gmail.com at 10/30/2006 11:06:50 AM
Once the hotfix for Version Tolerant Serialization is applied to a 1.1 client, can that patched client still serialize to/deserialize from an unpatched 1.1 server, and vice versa? ...more >>

How to compile Web Reference project using NAnt
Posted by Anbu at 10/29/2006 11:12:33 PM
Hi, I need to compile a windows applications with Web References using NAnt scripts? Any suggestions? TIA ...more >>

Two versions of .Net on the same server
Posted by DavidE at 10/29/2006 2:03:06 AM
Hi, I had version 1.1 on the production server and then I installed version 2.0 so I have both installed there. I created a web application using vs 2005 and I move it to the server. When I try to browse an asp.net page I get an error: Unrecognizes Configuration section 'ConnectionString' ...more >>

Getting the physical path of network drive.
Posted by rony_16 at 10/29/2006 2:00:33 AM
Hi , I am writing a program that part of than program if to add a new network drive to the user. The adding part i know how to do (by win api "WNetAddConnection2A") but i want to check first if this path (network path) exist of his computer, if it does , what is the drive name. to do this i ne...more >>

Another String.Format() Question
Posted by thomas at 10/28/2006 6:17:36 PM
Hello Everyone, I am trying to format decimal values the way so decimal point is display only if the number is any digits after decimal other than zero. Example: 9.000000 -> "9" 9.500000 -> "9.5" Does anyone have an idea how the format string should look like? Is it, at all, possible?...more >>

Adding Attachement to MailMessage leaves attached file open
Posted by Clay at 10/28/2006 5:51:03 PM
I have a simple program that picks up a file from a folder and emails it to an account on our exchange server using SMTP. Below is a copy of my code for attaching the file to the message and sending it. The email message gets delivered but I can't delete the file afterwards because it is b...more >>

Graph control
Posted by Esha at 10/28/2006 12:21:58 PM
I was asked by my boss to create representation of data by Graphs in VB 6 application. I checked the features of VB6 Graph control as well as Excel graphs. They are not good enough. I tried to find any third party ocx and all I found do not look good enough either. I found several .NET cont...more >>

ISerializable and SerializableAttribute
Posted by Steve B. at 10/27/2006 4:28:04 PM
Hi, If a class implements the ISerializable, does the class has the SerializableAttribute "automatically" defined, and if a class has the SerializableAttribute defined, does it implements the ISerializable interface ? Actually, I'd like to create a serialization utility that can serializ...more >>

Mutually Exclusive C# Method
Posted by Paul Allan at 10/27/2006 4:14:58 PM
I am creating a VS 2005, C# Assembly. I want to create an assembly with a method that can only be executed by one thread across process at any given time (so that it's totally mutually exclusive). I have played around with creating a singleton class, that uses the "System.Threading.Semap...more >>

installation
Posted by li at 10/27/2006 11:47:01 AM
Can I install Visual Studio 2005 on a computer that has Visual Studio 6?...more >>

Is .NET Framework 3.0 100% compatible to the Framework 2.0?
Posted by Frank at 10/27/2006 9:22:01 AM
Hello, does anybody knows if the Framework 3.0 was 100% compatible to the Framework 2.0? My Information was that the Framework 3.0 was the Framework 2.0 with WinFX. The Framework 3.0 only supports Win XP and Win Vista is not a suitable platform for professional developers, although it wa...more >>

Redirect a method call
Posted by Ralph at 10/27/2006 6:27:35 AM
Hi, Does anybody know if it is possible to redirect a method call? Let' say I want to call my own implementation of the message box each time when somebody in my application calls the MessageBox.Show. My application has many modules that are loaded dynamically (Reflections). I want to redirec...more >>

Windows Service Security Problem
Posted by bthubbard at 10/27/2006 5:13:54 AM
Hello All, I've run into a bit of an issue and I was hoping that someone here could help me. I have inherited a Windows Service written in .Net 2.0 (C#) from a previous employee. It build successfully and I am able to install it on the target machine via installutil but when I attempt to run ...more >>

Image Recommendations
Posted by Brent at 10/26/2006 8:36:54 PM
Hi eveyrone. I am writing a client/server application that has to deal with displaying images to the user. The user will have the ability to add images to entries. Ok im kind of looking for a best practice here on what to do with the images. I am using SQL Server 2005 and i know that i do not ...more >>

Own macrolanguage
Posted by Andrey Dzizenko at 10/26/2006 4:08:30 PM
Hello! Is there an opportunity to write an interpreter of an own macrolanguage like JavaScript or VBScript for existing web browser like Internet Explorer? Could you please tell me where should I search for helpful information? Best regards, Andrey Dzizenko....more >>

session variable and asynchrous call
Posted by carrolky NO[at]SPAM gmail.com at 10/26/2006 3:48:02 PM
Here's my scenario. Please advise me if you can. I have an ASP.NET web application on a corporate intranet which retrieves some user information it uses from a webservice. The data does not change often, but when it does, my site needs the updated information. The connection to the database...more >>

Hover effects, IMessageFilter not working as expected
Posted by ThunderMusic at 10/26/2006 3:18:33 PM
Hi, I'm developping a form that renders differently when hovered and trigger some processing when not hovered (leaved). The thing is, when I leave my form and another form from my application is underneath, it works fine, but if I leave my form and anything that is not from my application is ...more >>

Net Framework 1.0 install/uninstall issues- help?
Posted by jaydag71 at 10/26/2006 2:01:02 PM
i have been trying to re-install my Net Framework 1.0 installation after I tried to uninstal it and it timed out on me. I had to kill it using the task manager and now when I try to install again it times out everytime! I used the windows update utiility and tried the exe also but they both j...more >>

.NET 2.0 Reflection Problem vs framework 1.1x - how to get the fields of a given Structure in the same order they where declared
Posted by hugo.braganca NO[at]SPAM gmail.com at 10/26/2006 11:52:04 AM
Hi, I need to iterate the Fields of given Structure though Reflection in the same order they where declared. Note that I only meet the Structure at Runtime. 'ex.: Structure MyStruct Dim Play As Byte Dim Level As Byte Dim Rate As Long End Structure Dim oMyStruct As New...more >>

Binary Serialization -- how to actually insert into database?
Posted by matt NO[at]SPAM mailinator.com at 10/26/2006 9:54:11 AM
hey all, ive read some good articles on the tenents of serialization and when & why youd want to do it, as well as the types. great! now id like to put it to practice. however....none of the articles i found had database examples -- all were files. how do i insert a memory stream into the d...more >>

VS2003 - VS2005 -> DisconnectedContext was detected
Posted by Ralf at 10/26/2006 9:30:02 AM
Hi! If I do the following in VS2003 it works - and in VS2005 it complains about a DisconnectedContext... using (ManagementClass mcDiskDrive = new ManagementClass(@"Win32_Diskdrive")) { // mcDiskDrive.GetInstances() is thowing the exception foreach (ManagementObject moDis...more >>

Regex - words extraction
Posted by Saso at 10/26/2006 6:50:01 AM
Hello! I have the following string: <wordX::wordY[wordZ]> I would like to extract from that string three words wordX, wordY and wordZ by Regex usage. Regards Saso...more >>

custom adapter
Posted by Siva at 10/26/2006 6:40:03 AM
Hi, I have a problem in returning status code from standard Http Adapter. What I want to do is: I am using Http Adapter in IIS to post xml messages. I have custom receive pipeline to validate the XML message. When I get invalide message, I want to return 406. But right now pipeline raise erro...more >>

FtpWebRequest Connection Issue
Posted by BobbyLupo at 10/26/2006 5:24:01 AM
Hello. I am trying to use FtpWebRequest to send a file. Everything was initially working fine until the ftp server had a load balancer installed. Now when I connect and try to send a file, I get the following exception: {System.Net.WebException} The data connection was made from an address ...more >>

Debug symbols not loading when built on another machine
Posted by Bardo at 10/26/2006 12:00:00 AM
Hi all, We are trying to debug an assembly which was built in debug configuration on our build server. The output window of visual studio indicates that no symbols are being loaded for the assembly. However, when the PDB file is copied alongside the dll, the symbols load ok. We were a lit...more >>

doing some background work occasionally
Posted by bonk at 10/25/2006 11:55:50 PM
I have an application that needs to perform some background work, i.e. Logging, wich must not block the main thread. How would I basically design such a scenario? It is obvious that I should do that on an extra thread but I think it is a bad idea to spawn a new thread everytime a log-message is ...more >>

Are Regex objects thread-safe?
Posted by mnowosad at 10/25/2006 5:18:01 PM
The MSDN documentation about the Regex class seems to have contradictory information. At the "Remarks" section, the documentation states: "The Regex class is immutable (read-only) and is inherently thread safe. Regex objects can be created on any thread and shared between threads. " Howeve...more >>

response.transmitfile fails when deployed (ASP.NET 2)
Posted by EmeraldShield at 10/25/2006 2:31:50 PM
I am confused about this... I have an app that has worked for a long time in 1.1. I upgraded it to 2.0. Everything works on my local machine, including transmit file. When I deploy the site to a Server 2003 (SP1) machine the transmit file files for some reason. I don't get an exception, ...more >>

Windows service with Socket won't accept a connection
Posted by Paul Tulou at 10/25/2006 7:01:19 AM
Hello, I have created a Windows service that uses the Socket class to listen for incoming connections. I have tested my socket code in a normal windows application for easy debugging and everything worked fine. When I transfered this code to the service and started it up, the service runs fi...more >>

SetRop2 with GDI+
Posted by Glenn at 10/25/2006 5:27:01 AM
Hello, From what I can tell there is no equivalent in GDI+ to the SetRop2 API. Is this correct or have I missed something? I'm able to use GDI in some cases but not all. My rendering code only has access to a Graphics object and if this Graphics comes from a control or printer all goes...more >>

writing an advanced filestream class
Posted by bonk at 10/24/2006 11:49:30 PM
I am trying to create a stream that writes text to a file and: - automatically creates a new file once the current file exceeds a certain size - makes it possible to be used by multiple threads and/or processes so that multiple threads/processes can write to the same file (all threads use the...more >>

nullptr for a property
Posted by --== Alain ==-- at 10/24/2006 8:56:06 PM
Hi, I would like to define the default value of my property. My property is from type Bitmap^, therefore i was thinking to do : [DefaultValueAttribute(nullptr)] but i does not work. how is it possible to define this property to no pointer ? thx. ALain...more >>

What is the error message when .NET 2.0 is not installed?
Posted by Matt at 10/24/2006 6:01:45 PM
I was wondering what the exact error message is when a user attempts to run a .NET 2.0 application on a machine that does not have the framework installed. I remember in 1.1 it was a nasty cryptic message that was not at all helpful, has it improved any? We are working on a simple tool that wi...more >>

ERROR-Some of the files required for web references are not instal
Posted by Chris Davoli at 10/24/2006 3:20:02 PM
When I try to add a web reference to my web site (I just right click on App_WebReferneces), I get the error "Some of the files required for web references are not installed" and the ok button. I've tried to uninstall and reinstall VS2005, but to no avail. Anybody got any answers about this? It...more >>

Catching unhandled exceptions in the finalizer under .NET 2.0
Posted by Stefan_Kühnel at 10/24/2006 12:24:15 PM
Hi! We're having a problem with converting a program from .NET 1.1 to .NET 2.0. The program is kind of an AppServer (which can run as NT service or as a console application), where we don't control which applications are run inside it. Now we have a problem with one application which uses a...more >>

How can I compile my VS2005 c# code to not be dependent on CLR to run?
Posted by Marcus at 10/24/2006 10:56:00 AM
How can I compile my VS2005 c# code to not be dependent on CLR to run? I want people that install my software to be able to run it without having to bother with CLR's and "Windows installers". I would like to generate a binary for lets say Windows XP. How do I do this? ...more >>


DevelopmentNow Blog