Re: [ADVANCED-DOTNET] OS specific WMI error with .Net 1.1

2006-09-28 Thread Alex Smotritsky
Thanks for the links, they look good, I'll see if that server needs to be patched and such. -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Wills Sent: Thursday, September 28, 2006 11:54 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM

Re: [ADVANCED-DOTNET] OS specific WMI error with .Net 1.1

2006-09-28 Thread Matthew Wills
Alex, http://tinyurl.com/efdlg may also be of interest. Seeya Matthew Wills | Senior Analyst Programmer | Adviser Tools and Services| Financial Planning and Third Party | NAB Technology | Wealth Management Australia |-+-> | | Ale

Re: [ADVANCED-DOTNET] OS specific WMI error with .Net 1.1

2006-09-28 Thread Matthew Wills
Alex, http://geekswithblogs.net/cmcneill/archive/2005/04/05/28336.aspx suggest that .NET 1.1 SP1 may help. Seeya Matthew Wills | Senior Analyst Programmer | Adviser Tools and Services| Financial Planning and Third Party | NAB Technology | Wealth Management Australia |-+-

Re: [ADVANCED-DOTNET] OS specific WMI error with .Net 1.1

2006-09-28 Thread Alex Smotritsky
Thanks for clearing that up. Here's the core code: ManagementScope scope = new ManagementScope(); ConnectionOptions connection = new ConnectionOptions(); ManagementObjectSearcher searcher = new ManagementObjectSearcher(); scope = new ManagementScope("TheComputer\\root\\CIMV2", connection); sc

Re: [ADVANCED-DOTNET] OS specific WMI error with .Net 1.1

2006-09-28 Thread David L. Penton
He means that the new error is that you didn't include any code in your post. Please reply with a sample of code that reproduces the error. &_david++; Alex Smotritsky wrote: That's incorrect. The message at the bottom of your reply was my entire message. -Original Message- From: Disc

Re: [ADVANCED-DOTNET] OS specific WMI error with .Net 1.1

2006-09-28 Thread Alex Smotritsky
That's incorrect. The message at the bottom of your reply was my entire message. -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Wills Sent: Thursday, September 28, 2006 8:53 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re:

Re: [ADVANCED-DOTNET] OS specific WMI error with .Net 1.1

2006-09-28 Thread Matthew Wills
Alex, The mail filter seems to have stripped out your code. Seeya Matthew Wills | Senior Analyst Programmer | Adviser Tools and Services| Financial Planning and Third Party | NAB Technology | Wealth Management Australia |-+> | | Alex Smot

[ADVANCED-DOTNET] OS specific WMI error with .Net 1.1

2006-09-28 Thread Alex Smotritsky
I'm trying to iterate over a ManagementObjectCollection with a foreach. When running against a Windows 2000 Advanced Server with .Net 1.1 installed I'm getting the following error: COM object that has been separated from its underlying RCW can not be used. The ManagementException.ErrorCode is

Re: [ADVANCED-DOTNET] Odd stack trace from a hung .NET app

2006-09-28 Thread Fabian Schmied
Mike Burns e-mailed me a follow-up to an old thread, where Dmitry Shaporenkov described having problems with an odd deadlock/hang with a .NET windows forms app (actually a VS 2005 add-in). The stack trace showed that the UI thread blocked in reaction to the Microsoft.Win32.SystemEvents.OnUserPrefe

Re: [ADVANCED-DOTNET] Completely unbelievable exception.....

2006-09-28 Thread Adam Tuliper
shot in the dark.. but ...I know some cultures substitute certain characters for others as a "best match", invariant should prevent this. I dont know why uk culture would do it since its similiar.. but it can def. happen with other characters with various cultures. If you read more on the invariant

Re: [ADVANCED-DOTNET] Encryption

2006-09-28 Thread Steve Johnson
On 9/28/06, Hevel, Shawn <[EMAIL PROTECTED]> wrote: What is the best way to encrypt/decrypt this connection information? I would use System.Security.DataProtection with Machine scope. -- Steve Johnson === This list is hosted by DevelopMentorĀ® http://www.deve

[ADVANCED-DOTNET] Encryption

2006-09-28 Thread Hevel, Shawn
I'm using encryption for the first time. I'm storing the SQL Connection string in my app.config file. My project is a class and not a website project. What is the best way to encrypt/decrypt this connection information? Thanks, Shawn Hevel, API, AIT Lead Programmer Analyst Information Te

Re: [ADVANCED-DOTNET] Completely unbelievable exception.....

2006-09-28 Thread Mark Nicholls
Oh right ok. -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Brady Kelly Sent: 28 September 2006 13:38 To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Completely unbelievable exception. I don't recall. I think

Re: [ADVANCED-DOTNET] Completely unbelievable exception.....

2006-09-28 Thread Brady Kelly
I don't recall. I think I may have done something horrific like change the type of the database field. It wasn't a huge, demanding production application. > -Original Message- > From: Discussion of advanced .NET topics. [mailto:ADVANCED- > [EMAIL PROTECTED] On Behalf Of Mark Nicholls > S

Re: [ADVANCED-DOTNET] Completely unbelievable exception.....

2006-09-28 Thread Mark Nicholls
ReallyOK, I'll give it a go.. Do you understand why it should fail in the first placeit seems to make absolutely no sense at allwhat doubly bamboozles me, is I can't find any reference to it anywhereyet I would expect loads of software to fail because of it. -Original Mess

Re: [ADVANCED-DOTNET] Completely unbelievable exception.....

2006-09-28 Thread Paul van Brenk
Int32.Parse( "1", System.Globalization.CultureInfo.InvariantCulture ); This way you're not depending on the culture set by the user, which should prevent errors like these. Paul -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Mark Nicho

Re: [ADVANCED-DOTNET] Completely unbelievable exception.....

2006-09-28 Thread Mark Nicholls
Thanks, at least I'm not going completely mad. How did you avoid it? -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Brady Kelly Sent: 28 September 2006 13:07 To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Compl

Re: [ADVANCED-DOTNET] Completely unbelievable exception.....

2006-09-28 Thread Brady Kelly
I can't offer any help, but I too have encountered this problem. However, I solved my problem by avoiding the Parse call altogether. > I'm not a new boy at this gameI've been using c# for about 3 years or > so. > > int.Parse("1"); > > got to work!. > > See the end of this message for

Re: [ADVANCED-DOTNET] Completely unbelievable exception.....

2006-09-28 Thread Gregory Miley
If you change that line to: int.Parse("1", System.Globalization.NumberStyles.Integer); Do you still get the same problem? I believe it will, but as I cannot reproduce the problem you are having, I cannot test for the outcome of that. Thanks, Greg -Original Message- From: Discus

Re: [ADVANCED-DOTNET] Biztalk.....

2006-09-28 Thread Ernst Kuschke
How about typed datasets? (Heavy as they are...) -Ernst Kuschke On 9/28/06, Richard Blewett <[EMAIL PROTECTED]> wrote: For intelligent consumption of the data, a string would be a disaster - it would require a whole bunch of code inside the orchestration to parse a dataset. DataSets and BizTal

Re: [ADVANCED-DOTNET] Biztalk.....

2006-09-28 Thread Richard Blewett
For intelligent consumption of the data, a string would be a disaster - it would require a whole bunch of code inside the orchestration to parse a dataset. DataSets and BizTalk don't really mix. BizTalk can handle messages of any type but the toolset lends itself to processing of XML messages defin

[ADVANCED-DOTNET] Completely unbelievable exception.....

2006-09-28 Thread Mark Nicholls
I'm not a new boy at this gameI've been using c# for about 3 years or so. int.Parse("1"); got to work!. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ** Exception Text ** System.FormatException: I