Re: [DOTNET] Fax over TCP/IP in .NET

2002-05-29 Thread Yogesh Shetty
Check out efax.com I believe they have an interface where you can email an attachment in word or pdf format or send it in a straight email message. -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Agus Kurniawan Sent: Wednesday, May 29, 2002 8:19 PM To:

Re: [DOTNET] why does DataSet have to be static meber

2002-05-29 Thread Ian Griffiths
Of course what hadn't occurred to me was that you might be doing web forms. Being a Windows Forms guy, I tend to think of a Windows Forms form when someone says Form. If it's ASP.NET, then no, as a couple of people have pointed out you don't get the same instance every time. -- Ian Griffiths De

Re: [DOTNET] Base64

2002-05-29 Thread Nick Wienholt
Read the yyy in using TextReader, and then use Convert.FromBase64String, and use FileStream to write back to disk as xxx. Nick - Original Message - From: "Agus Kurniawan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 30, 2002 9:36 AM Subject: [DOTNET] Base64 > I have

Re: [DOTNET] Checked casting between DataSet and its children

2002-05-29 Thread Shawn Wildermuth
BTW, for business objects, I suggest inheriting from typed DataSets. On the face of this there are some problems with it, but Chris Sells and I will be releasing a VS add-in in the coming weeks to fix the generated code to allow you to inherit from it. I cover this in my forthcoming book if you

Re: [DOTNET] Aspects as diagnostic probes, WAS: RE: Re: [DOTNET] AOP to police thread affinity?

2002-05-29 Thread Ed Stegman
How about the size of message being written to an MSMQ? I've seen a couple of different scenarios here. 1. The developer isn't aware there is a limit, so does nothing to ensure the message is below it. 2. The developer is aware, but has misunderstood the limit expressed in the docs as the numb

Re: [DOTNET] Aspects as diagnostic probes, WAS: RE: Re: [DOT NET] AOP to police thread affinity?

2002-05-29 Thread Marsh, Drew
John Lam [mailto:[EMAIL PROTECTED]] wrote: > Do folks have other interesting ideas for aspects as > diagnostic probes? Uhh... here's a cool one that would probably win you unimaginable amounts of praise from the deterministic finalization crowd. How about an aspect that is executed after a woven

Re: [DOTNET] Someone save my sanity - can't find project all the time!

2002-05-29 Thread Dean Cleaver
Thanx - I should have tried that. Something I did try was open the solution, delete the project, save and close the solution, open it and then add the project again - still no joy. Must have "cached" something about that project in the solution. Dino -Original Message- From: dotnet discu

[DOTNET] on serialization

2002-05-29 Thread Patrick Tang
Hi, in C#, for a class X that extends a class Y that is not serializable, how can I serialize the class X without serialize the extended class Y ? And also when i deserizable the class X, how can I make class X extends Y again ? code as below, [Serializable] public class X:Y { . } Tha

[DOTNET] Aspects as diagnostic probes, WAS: RE: Re: [DOTNET] AOP to police thread affinity?

2002-05-29 Thread John Lam
One thing that I've been spending a lot of time thinking about recently is using aspects as diagnostic probes. That was why I was sending out emails asking questions like "what are the top 10 mistakes that you see folks making when writing .NET code". It is certainly possible to write some an as

Re: [DOTNET] incrorrect RASCONN structure size in VC++ 7.0

2002-05-29 Thread Nick Wienholt
Hi Aleksey, Problems with RASCONN size values are often due to differences between the #define WINVER value in a project and the target OS. Make sure these values are in synch. Hard-coding a dwSize member variable is a struct that is passed as a [in/out] parameter to a Win32 API call is extreme

[DOTNET] incrorrect RASCONN structure size in VC++ 7.0

2002-05-29 Thread Dr. Aleksey Nudelman
Hello, sizeof(RASCONNA) returns different values in VC++ 7.0 and VC++ 6.0. This causes failure of RasEnumConnections calls. This apparently happens because of the changes in ras.h between VC 7 and VC 6 Workaround: 1. Ignore MSDN example on RasEnumConnections 2. Hardcode lpRasConn->dwSize = 412;lpc

Re: [DOTNET] How do we programatically determine if GAC contains particular assembly?

2002-05-29 Thread Sam Gentile
Wow, how did you figure out how to use the Fusion APIs? Thanks! Sam Gentile Co-Author Wrox Professional Visual C++.NET (ISBN 1861005962 ) [EMAIL PROTECTED] www.project-inspiration.com/sgentile http://www.project-inspiration.com/sgentile/DotNet.htm BLOG: http://radio.weblogs.com/0105852/ http://w

Re: [DOTNET] Problem with hiding derived methods

2002-05-29 Thread Shawn Wildermuth
Thanks Todd...its really similar spec, but the problem still persists...I don't care if the more derived class calls it...I just don't want the derived class to have it. BTW, next time you have an answer drop by my cube (Todd and I work in the same office, mere 15 feet apart : ) Thanks, Shawn W

Re: [DOTNET] Base64

2002-05-29 Thread Agus Kurniawan
wow...it can work perfectly thanks you , Seang. -Original Message- From: Sean Greer (SBI-Chico) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 8:07 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Base64 Read the file with a StreamReader, calling ReadToEnd() to get a string repre

Re: [DOTNET] byte[] to Object

2002-05-29 Thread Graeme Foster
You might be able to cobble something together with the System.InteropServices.Marshal class. I don't see anything which works with byte arrays, but there's a Marshal.PtrToStructure() method which takes an IntPtr and a Type. You could probably get an IntPtr for your byte[] using the C# "fixed" ke

Re: [DOTNET] How do we programatically determine if GAC contains particular assembly?

2002-05-29 Thread Mattias Sjögren
Sam, >I have an installer program that needs to know whether PIAs are already >installed in the GAC so that I won't install them twice. So the question is >how can we programmatically tell whether the GAC contains a particular >assembly? Well, one way is to use the Fusion APIs. That way, you don

[DOTNET] Dynamic web form architecture in .NET

2002-05-29 Thread Hein, Richard
A coworker and I were discussing ideas of how to design a wizard type UI that must dynamically generate pages depending on various modules/plug-ins installed on top of our product. The UI has to be able to generate new forms which are populated with controls depending on options selected in previ

Re: [DOTNET] Base64

2002-05-29 Thread Sean Greer (SBI-Chico)
Read the file with a StreamReader, calling ReadToEnd() to get a string representation of the contents. Then call these two routines: string sContents = System.Text.Encoding.ASCII.GetString(Convert.FromBase64String(sTemp)); where sTemp is the contents of the file. Works for me...though there i

Re: [DOTNET] Putting bits of UI on a secondary thread? (was Re: [DOTNET] Modeless WinForms Bug)

2002-05-29 Thread David A.
I use multiple UI threads for just that scenario. Main reason: I can have multiple modal dialogs and they are only modal to one main window at a time. Office is a bad example of an application where modal dialogs in one window block all the windows of the specific application... Cheers David > -

Re: [DOTNET] Are there any FTP classes in .NET ?

2002-05-29 Thread Rolls, Robert
The original poster may want to check out Xceedsoft's Ultimate Suite for $350 US what a deal what a steel it's sale of the century. -Original Message- From: Aaron Witt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 29 May 2002 23:05 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Are there any

[DOTNET] Base64

2002-05-29 Thread Agus Kurniawan
I have xxx file and then I convert content of this file into Base64String using method System.Convert.ToBase64String(..) (C# language) After I have converted, I save into yyy file. Now, I have problem to convert back to original file ie. convert from yyy file to xxx file what method should I use ?

Re: [DOTNET] ListBox error in ASP.NET

2002-05-29 Thread Patten, Dave
Can also: lbTemp.SelectedIndex = -1; or lbTemp.SelectedItem.Selected = false; Before selecting a new Item programmatically. Shouldn't have to walk the entire Collection. -Original Message- From: Matt Milner [mailto:[EMAIL PROTECTED]] Sent:

Re: [DOTNET] Connecting to SQL database through a Web Service

2002-05-29 Thread Daniel Morgan
Maybe you need SQL Server to use Mixed Mode instead of Windows Only authentication. -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Joseph J. Sarna Jr. Sent: Wednesday, May 29, 2002 11:49 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Connecting to SQL datab

Re: [DOTNET] Someone save my sanity - can't find project all the time!

2002-05-29 Thread Dan Souk
Try opening the project file itself directly (not the solution file) to create a new solution file. Overwrite the old one, and you should be set. -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Dean Cleaver Sent: Wednesday, May 29, 2002 4:48 PM To: [EMAI

Re: [DOTNET] ListBox error in ASP.NET

2002-05-29 Thread Matt Milner
Either disable view state for the control or walk the collection of items and set "selected" to false for all but the one you want. The control is holding on to the selected setting from the last post and then you are probably setting another item to be selected. HTH, Matt Matt Milner BORN [EMA

[DOTNET] Someone save my sanity - can't find project all the time!

2002-05-29 Thread Dean Cleaver
I have a web project, and I decided to move the files from the wwwroot directory to one in my project directory just for safe keeping - backups etc. I changed the IIS settings to the new directory - no problems. I added "ASPNET" permissions to all the paths to my files - no problems. Now to open

Re: [DOTNET] Byte array to disk

2002-05-29 Thread David B. Bitton
thanks. actually, when i said quickest, i just meant least amount of code. ha. thanks. -- David B. Bitton [EMAIL PROTECTED] www.codenoevil.com Code Made Fresh DailyT - Original Message - From: "Axel Heitland" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 29, 2002 11:

[ADVANCED-DOTNET] Remoting metadata

2002-05-29 Thread Casey Richardson
I have a Remoting server that I am running inside of IIS. The implementation of the server, in assembly A, calls a method on a class located in another assembly that I have, call it assembly B, which is in the bin subdir of the virtual dir. To get the metadata to the client, I distributed the dl

Re: [DOTNET] ASP.NET and HTTP request routing in a web farm

2002-05-29 Thread Greg Reinacker
>> You have to be careful about your network architecture as well, to ensure >> you allow bandwidth for "broadcasting" requests across the cluster. > >I must admit ignorance to the under-the-hood mechanics of NLB. How does it distribute the >requests? Do all packets get redirected through the lo

Re: [DOTNET] Connecting to SQL database through a Web Service

2002-05-29 Thread Joseph J. Sarna Jr.
Yep, I have that checked.. Joe -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of John St. Clair Sent: Wednesday, May 29, 2002 12:57 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Connecting to SQL database through a Web Service If you're passing sql cred

[DOTNET] ListBox error in ASP.NET

2002-05-29 Thread Kevin Burton
I have a ListBox that I only want to have a single item selected at a time and when that item is selected I want it to be copied into another ListBox (this is an example in ASP.NET Unleashed p. 224 and 225). The first selection works just fine but the second selection gives me the following error.

Re: [DOTNET] How do we programatically determine if GAC contains particular assembly?

2002-05-29 Thread Bill Conroy
If you install an assembly with the same Name as one that is already in the GAC, it will simply overwrite it. Was there a problem you were having with dups or something? -bc -Original Message- From: Sam Gentile [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 5:29 PM To: [EMAIL

Re: [DOTNET] why does DataSet have to be static meber

2002-05-29 Thread Marsh, Drew
Shawn Wildermuth [mailto:[EMAIL PROTECTED]] wrote: > As long as you are not waiting for the post-back to do the > work. Every post-back to the form is a new instance (ASP.NET > please correct me if I am wrong!). This is what I have > observed in my testing. This is correct. Member variables ar

Re: [DOTNET] AOP to police thread affinity?

2002-05-29 Thread Marsh, Drew
Mcmullan, Andy (Andrew) [mailto:[EMAIL PROTECTED]] wrote: > What I'm really interested in is that regardless of whether > MS should have put the check into the .NET GUI libraries or > not, the fact is that they didn't. Well... beyond debugging, why would you want that check to even take place? E

Re: [DOTNET] Drag and Drop in C#

2002-05-29 Thread franklin gray
If you have a control set to allowdrop, then the dragover event will fire when you drag something over it. In the event, you should say what kind of drop you allow and that will change the icon. such as... Private Sub ucTDFrame_DragEnter(ByVal sender As Object, ByVal e As System.Windows

[DOTNET] How do we programatically determine if GAC contains particular assembly?

2002-05-29 Thread Sam Gentile
I have an installer program that needs to know whether PIAs are already installed in the GAC so that I won't install them twice. So the question is how can we programmatically tell whether the GAC contains a particular assembly? References: I found these articles: Assembly.Load Method (Assembly

Re: [DOTNET] Accessor on an accessor not allowed. Why?

2002-05-29 Thread Jon Jagger
[inline] On Wed, 29 May 2002 21:51:14 +0100, Ian Griffiths <[EMAIL PROTECTED]> wrote: >Arild Fines <[EMAIL PROTECTED]> wrote: > >> >FWIW - I think Petzold misunderstood/misrepresented something >> > there. His example was referring to someControl.Size.Width * 2; >> > something which will fail be

[DOTNET] Drag and Drop in C#

2002-05-29 Thread Arulraja Koildason
Hi, I have a requirement like draging a listitem from a listview control to another Windows forms propertyGrid Control. I have a pbm dragging over the listitem out of listview control. Can anybody help me to fix this pbm. I really appreciate ur help. Thanks Livi __

Re: [ADVANCED-DOTNET] singleton server problem

2002-05-29 Thread Bill Conroy
I don't believe that SuppressFinalize does what you are thinking here. A call to SuppressFinalize sets a bit on the object that tells the GC not to move this object to the freachable queue from the finalization list. Thus the object will never be finalized when reclaimed. In other words Suppres

Re: [ADVANCED-DOTNET] singleton server problem

2002-05-29 Thread Brent E. Rector
GC.SuppressFinalize doesn't keep an object from being garbage collected. The only way to prevent an object from being collected is to insure there is always a live reference to the object. -- Brent Rector, .NET Wise Owl Demeanor for .NET - an obfuscation utility http://www.wiseowl.com/Products/

Re: [DOTNET] Is security stack walk short-circuited when all assemblies have full trust?

2002-05-29 Thread Mike Woodring
- Original Message - From: "David Rohacek" <[EMAIL PROTECTED]> > Is the CLR able to identify the case where all assemblies in a call stack > have full trust? Does it use this information to omit security checks or > stack walks when demands are made? Stack walks are not short-circuited

Re: [DOTNET] why does DataSet have to be static meber

2002-05-29 Thread Karen Healey
I can tell its empty because dstMaster is null. I'm really stumped by this! Is there something I should do in the constructor for my class to initialize dstMaster? The only code I have for it is the declaration and the three lines of code to copy an existing dataset and merge two others in. And

Re: [DOTNET] why does DataSet have to be static meber

2002-05-29 Thread Shawn Wildermuth
As long as you are not waiting for the post-back to do the work. Every post-back to the form is a new instance (ASP.NET please correct me if I am wrong!). This is what I have observed in my testing. You could store it in session state or keep it a static, but as a static, you will be using the

Re: [DOTNET] AOP to police thread affinity?

2002-05-29 Thread Mcmullan, Andy (Andrew)
Hi Ian Sorry, I've confused the issue with my comments about performance. I totally agree with what you say. What I'm really interested in is that regardless of whether MS should have put the check into the .NET GUI libraries or not, the fact is that they didn't. And if omissions like this co

Re: [ADVANCED-DOTNET] remoting with http/soap and http/binary channels within the same client app instance

2002-05-29 Thread Mike Woodring
- Original Message - From: "Chris Keyser" <[EMAIL PROTECTED]> > > 1) Is it legitimate to run both http binary and soap channels within the > same client instance? As far as I can tell, this should not pose a problem. > You can't register the same channel type more than once in a given ap

[DOTNET] Is security stack walk short-circuited when all assemblies have full trust?

2002-05-29 Thread David Rohacek
Is the CLR able to identify the case where all assemblies in a call stack have full trust? Does it use this information to omit security checks or stack walks when demands are made? Does anyone have any ideas for how I can test this theory out? Thanks, David Rohacek You can read messages from t

Re: [DOTNET] why does DataSet have to be static meber

2002-05-29 Thread Ian Griffiths
It sounds like it should be OK. If it's all the one form then it should be the same instance. If you wanted to verify that you could print out the value for GetHashcode() in both places. (Use something like Debug.WriteLine, defined in the System.Diagnostics namespace.) If the numbers are the s

Re: [DOTNET] Accessor on an accessor not allowed. Why?

2002-05-29 Thread Ian Griffiths
Arild Fines <[EMAIL PROTECTED]> wrote: > >FWIW - I think Petzold misunderstood/misrepresented something > > there. His example was referring to someControl.Size.Width * 2; > > something which will fail because the Size property will return a > > copy of the Size struct. > > > > Making changes to

Re: [DOTNET] why does DataSet have to be static meber

2002-05-29 Thread Karen Healey
I'm sure the methods are executing in the correct order. But I'm not sure about it being the same instance. It seems to me it should be the same instance but I'm new to this. I have a multi-panel form (similating multiple pages). At the bottom of one of the last panels made visible, I have a fi

Re: [DOTNET] why does DataSet have to be static meber

2002-05-29 Thread Ian Griffiths
I have never had any problems using DataSets as non-static members. I suspect that something slightly more subtle is going wrong. Are you absolutely sure that (a) the methods are executing in the order you think they are and (b) that they are actually executing on the same instance both times?

Re: [DOTNET] AOP to police thread affinity? (was Re: [DOTNET] Modeless WinForms Bug)

2002-05-29 Thread Ian Griffiths
"Mcmullan, Andy (Andrew)" <[EMAIL PROTECTED]> wrote: > What you are asking here is quite a lot. Every GUI object > would need to check on entry to every method call whether > the calling thread is the thread that created the object. Big > overhead in terms of code to be written, and big performan

Re: [DOTNET] Need a good real-world C# Exceptions Resource or Stategy for Library

2002-05-29 Thread Ted Neward
Again, this is also a place where some Java background would help, since Java guys have been wrestling with this problem for five years now. Granted some of the technical details differ a bit (the Java language requires catch blocks for checked exceptions, for example, where C# has no notion of a

Re: [DOTNET] Simple binding (WinForms) updates

2002-05-29 Thread Ian Griffiths
> I too think that there should be a mechanism by which > the CurrencyManager could be prodded to refresh the > data in the controls. Perhaps in v.next... What's particularly frustrating is that the CurrencyManager does indeed have such a feature (it has a Refresh method), but for some reason th

Re: [DOTNET] Need a good real-world C# Exceptions Resource orStategy for Library

2002-05-29 Thread Sam Gentile
Thanks, I'll look at both of these as well as the MSDN article. The Richter chapter (as usual) is superb. Its funny, its about the only chapter I hadn't read-) >From: Mark Levison <[EMAIL PROTECTED]> >Reply-To: dotnet discussion <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: [DOTNET] N

Re: [DOTNET] ASP.NET and HTTP request routing in a web farm

2002-05-29 Thread Greg Reinacker
Actually, I know of many web farms that are load balanced with NLB. There isn't any gathering of performance information with NLB, although as you mention the software algorithm does take a small amount of overhead. And we've seen in a lab that you don't really want to go over about 6 nodes in on

Re: [DOTNET] Checked casting between DataSet and its children

2002-05-29 Thread Steve Johnson
> ...When casting from a dataset to one of my business > objects, I would like to be able to intercept it and check if this table > exist. If it does not, I'd like to throw an invalid cast exception. > Can > this be done? You can do this by providing explicit and implicit conversion operators fo

[ADVANCED-DOTNET] singleton server problem

2002-05-29 Thread Manuel Costa
Hi, Is there a limit for the number of simultaneous calls to a remote object registered as singleton? I have an application with several servers and several clients per server. After some amount of simultaneous calls to the servers they stop responding, blocking any client call. When a client inv

[DOTNET] Checked casting between DataSet and its children

2002-05-29 Thread Loc Nguyen
I am investigating deriving DataSet for business objects. However, since datasets may contain several datatables, I need to ensure that the dataset has a specific table. When casting from a dataset to one of my business objects, I would like to be able to intercept it and check if this table exi

Re: [DOTNET] Do Enum's take up memory ?

2002-05-29 Thread Brad Wilson
Jeff Roberts wrote: > Does an enum take up memory ? The declaration of that enum does not take up any memory, not. Using one takes up the same amount of (and placement of) memory as its base type. Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages from the DOTNE

[DOTNET] Do Enum's take up memory ?

2002-05-29 Thread Jeff Roberts
Does an enum take up memory ? public enum XFERDefines { XFER_IDLE =0, //no file transfer in progress SENDING_FILE =1, //sending a file now } You can read messages from the DOTNET archive, unsubscri

Re: [DOTNET] Problem with hiding derived methods

2002-05-29 Thread Todd Clemetson
Shawn, The C# Language specification on MSDN appears to be different than the one you are referencing. Here is the link on Microsoft's web site: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csspec/html/vclrfcsharpspec_3_7_1_2.asp . The section in this document is 3.7.12 (not

Re: [DOTNET] ASP.NET and HTTP request routing in a web farm

2002-05-29 Thread Peter Foreman
--- Greg Reinacker <[EMAIL PROTECTED]> wrote: > Actually, I know of many web farms that are load balanced with NLB. There > isn't any gathering of performance information with NLB, although as you > mention the software algorithm does take a small amount of overhead. And > we've seen in a lab th

Re: [DOTNET] Web service or windows service?

2002-05-29 Thread Erick Thompson
Good points on IIS, it looks like a windows service is the way to go. I may write a web service to interact with the windows service, for good logical separation. The assembly is a local spider/indexer type of program which runs slowly in the background. Thanks, Erick - Original Message ---

Re: [DOTNET] Managed thread id?

2002-05-29 Thread Pablo Castro
You're right, you should not use TIDs; but I agree that it's useful for debugging. Use: AppDomain.GetCurrentThreadId() Regards, Pablo Castro Lagash Systems S.A. - Original Message - From: "John Lam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 28, 2002 2:52 AM Subjec

[DOTNET] OT: User profile for Service logon on XP

2002-05-29 Thread Rick Morningstar
From: Richard A Morningstar Sorry for the OT, but I am stuck On NT4 and 2000, we register a component that runs as a Service on a SUBST'ed drive. We have the service setup to run as a particular identity and have a batch file in the user profiles (in the startup group) to setup the SUBST'ed

[DOTNET] Problem with hiding derived methods

2002-05-29 Thread Shawn Wildermuth
(I searched the archives and haven't noticed this anywhere) Take the following classes (taken directly from the spec): class Base { public static void F() {} } class Derived: Base { new private static void F() {} // Hides Base.F in Derived only } class MoreDerived: Derived { static void G

Re: [DOTNET] Need a good real-world C# Exceptions Resource or Stategy for Library

2002-05-29 Thread Sam Gentile
Agreed that it’s a must-read book. That's about the only chapter I haven't read. I will now. Thanks. Sam Gentile Co-Author Wrox Professional Visual C++.NET (ISBN 1861005962 ) [EMAIL PROTECTED] www.project-inspiration.com/sgentile http://www.project-inspiration.com/sgentile/DotNet.htm BLOG: http:

Re: [DOTNET] Connecting to SQL database through a Web Service

2002-05-29 Thread Joseph J. Sarna Jr.
Fixed the issue. It seems that I needed to open up the WebService SQL Server IP on the firewall instead of the Web Server IP. Joe -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of John St. Clair Sent: Wednesday, May 29, 2002 12:57 PM To: [EMAIL PROTECTED

Re: [DOTNET] Web service or windows service?

2002-05-29 Thread franklin gray
"I think with a web service you'll run into issues with IIS, such as timeouts, memory leaks, etc." Not if you use a singleton ojbect. "What happens to an active web service when IIS recycles itself? I would guess that all child processes get recycled as well." The garbage collector will not c

Re: [DOTNET] Web service or windows service?

2002-05-29 Thread franklin gray
sounds like Windows service might be the best bet, but maybe the hardest too. Anther approach is you can always do a singleton object that never get collected by the garbage, have that object get created by a web service call. Then all other Web Service calls just use that object that is alrea

Re: [DOTNET] ASP.NET and HTTP request routing in a web farm

2002-05-29 Thread Greg Reinacker
Actually, I know of many web farms that are load balanced with NLB. There isn't any gathering of performance information with NLB, although as you mention the software algorithm does take a small amount of overhead. And we've seen in a lab that you don't really want to go over about 6 nodes in o

Re: [DOTNET] Operators, CLS compliance, friendly partner methods

2002-05-29 Thread Jon Jagger
On Wed, 29 May 2002 09:41:38 -0700, Eric Gunnerson <[EMAIL PROTECTED]> wrote: >The compiler generated one (the overloaded operator) needs to be one >that isn't likely to collide with names that a user would choose. >Choosing "Add" for this would be a bad idea. At first I too thought it would be

Re: [DOTNET] Web service or windows service?

2002-05-29 Thread Bryan Batchelder
I think you'd be better off with a windows service rather than web service I think with a web service you'll run into issues with IIS, such as timeouts, memory leaks, etc. What happens to an active web service when IIS recycles itself? I would guess that all child processes get recycled as

Re: [DOTNET] Accessor on an accessor not allowed. Why?

2002-05-29 Thread Jon Jagger
On Wed, 29 May 2002 17:54:23 +0200, Arild Fines <[EMAIL PROTECTED]> wrote: >> -Original Message- >> From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of >> Jon Jagger >> In his book, Jeffrey Richter says >> only that it is for reasons best known to and understood by compiler >>

[DOTNET] Web service or windows service?

2002-05-29 Thread Erick Thompson
I have a very long running process in a assembly that runs on a remote server. The process will run for about 2-3 weeks. All the management takes place via a set of web pages. There will also be a set of pages to monitor the process. The monitoring takes place in two different ways, first, the ass

Re: [DOTNET] Putting bits of UI on a secondary thread? (was Re: [DOTNET] Modeless WinForms Bug)

2002-05-29 Thread Matthew Adams
I entirely agree with that approach. The reason I suggest that it is rude in the case where you are spinning work off onto a pool thread is that the pool thread didn't have a message queue when you were given it, and there is no way of clearing it up afterwards, so you haven't left things as you f

Re: [DOTNET] Sending doc as an attachment through mail

2002-05-29 Thread Steve Holak
Here's an example snippet: using System.Web; using System.Web.Services; using System.Web.Mail; private void sendMail(string From,string To, string CC,string Subject, string BodyText,string BCC,string Attachment) { MailMessage mm=new MailMessage(); mm.Fr

[DOTNET] why does DataSet have to be static meber

2002-05-29 Thread Karen Healey
Hi, I've created a class in C# with a DataSet data member declared like this: private DataSet dstMaster; I have a method that builds it by concatenating three datasets together like this: dstMaster = dstOrg.Copy(); dstMaster.Merge( dstContact ); dstMaster.Merge( dstFunding ); In

Re: [DOTNET] Byte array to disk

2002-05-29 Thread Axel Heitland
Don't know if this is the fastest, but FileStream.Write(bytearray, offset, count ) will do a good job. If the array is beyond 64KB you could use asynch-io with BeginWrite. HTH Axel -Original Message- From: David B. Bitton [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 29. M

[DOTNET] FAO: Richard & Chris - RE: [DOTNET] C# CommandLineArgs

2002-05-29 Thread Wayne Lee
Urgent!!! That was never ever meant how it reads, I am sincerely sorry for that...I missed the :-). Richard I am truly grateful for your help, I highly respect every single person who contributes to this and hope I haven't offended anyone. Chris, my greatest thanks to you for pointing this out

Re: [DOTNET] Why aren't controls visible?

2002-05-29 Thread Graeme Foster
Adding a control to its parent Controls collection gives the it the context it needs to operate in. Look at it this way - how would a control know where it was located if it wasn't added to the Controls collection? Where would it draw itself? G. -- Graeme Foster ([EMAIL PROTECTED]) Principal Sof

[DOTNET] Reverse Engineering C# into UML

2002-05-29 Thread Stefan Finch
OK, this might make me sound seriously lazy... There was a case study [1] on reverse engineering a C# program into a UML model using System.Reflection. The example gave a Rational Rose script to build an sequence diagram from the discovered types. Any ideas if anything like this has been atte

Re: [DOTNET] ASP.NET and HTTP request routing in a web farm

2002-05-29 Thread Peter Foreman
--- Andrew Gayter <[EMAIL PROTECTED]> wrote: > In general web farms don't employ Microsoft Component Load Balancing > (CLB), or software enabled Network Load Balancing (NLB) due to the > following reasons I don't think you can lump these two together. CLB is very niche, because most people stic

Re: [DOTNET] ASCII string to byte[]?

2002-05-29 Thread Kit George
David, try System.Text.AsciiEncoding.GetBytes, and Encoding.GetBytes. Kit -Original Message- From: David Ferguson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 8:35 AM To: [EMAIL PROTECTED] Subject: [DOTNET] ASCII string to byte[]? ASCII string to byte[]? What is the quicke

Re: [DOTNET] Operators, CLS compliance, friendly partner methods

2002-05-29 Thread Eric Gunnerson
The compiler generated one (the overloaded operator) needs to be one that isn't likely to collide with names that a user would choose. Choosing "Add" for this would be a bad idea. I do agree that if the operator is static, you'd probably want nicely named version to also be static. -Origina

Re: [DOTNET] Connecting to SQL database through a Web Service

2002-05-29 Thread John St. Clair
If you're passing sql credentials, check that you have both sql and windows authentication enabled -- right-click on the sql instance in Enterprise manager, Security tab. John -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Joseph J. Sarna Jr. Sent: Wed

Re: [DOTNET] ASP.NET and HTTP request routing in a web farm

2002-05-29 Thread Andrew Gayter
I wouldn't say tier-consolidation is anything unexpected. In many cases physically partitioning applications into what are considered presentation, business and data tiers is over done. Even the meaning of what are presentation and data tiers is often misunderstood. It all boils down to someone al

Re: [DOTNET] ASCII string to byte[]?

2002-05-29 Thread Jim Arnold
byte[] bytes = System.Text.ASCIIEncoding.GetBytes(myString); Jim > -Original Message- > From: David Ferguson [mailto:[EMAIL PROTECTED]] > Sent: 29 May 2002 16:35 > To: [EMAIL PROTECTED] > Subject: [DOTNET] ASCII string to byte[]? > > > ASCII string to byte[]? > > What is the quickest way

Re: [DOTNET] Connecting to SQL database through a Web Service

2002-05-29 Thread Joseph J. Sarna Jr.
Agreed, however, this is just a proof-of-concept presentation to show the storage of data on one server, the webservice on another and the client running a WinForm app. I'll try putting a webservice on the SQL server domain and see if that helps. Thanks Joe -Original Message- From: do

Re: [DOTNET] Cryptography Namespace and Diffie-Hellman/DSS

2002-05-29 Thread Brian LaMacchia
Hi Bill, If you're trying to interoperate with PGP the easiest thing for you to do, I'm afraid, is going to be to shell out and call a PGP executable to do the encryption. I say this because there are a bunch of pieces that you'd need to implement yourself in order to interoperate with PGP from

Re: [DOTNET] Some questions about C# fixed statement

2002-05-29 Thread Eric Gunnerson
Fixed should have very little impact on performance unless a GC happens inside of the fixed block. -Original Message- From: José M. Nobre [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 6:15 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Some questions about C# fixed statement H

[DOTNET] ASCII string to byte[]?

2002-05-29 Thread David Ferguson
ASCII string to byte[]? What is the quickest way to convert a string, that only contains ASCII characters, into a byte array? What method would use the least amount of memory? Thanks...David You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMe

Re: [DOTNET] Java-like interposer (was: Proxy class)

2002-05-29 Thread Sievert, James A
Sorry for the lack of response. I've been trying to get an updated sample [1] on gotdotnet. I've haven't successfully got it there yet. Hopefully by tomorrow... > I don't know what the Type parameter in the protected RealProxy > contructors means. Basically, it's the runtime type of the o

Re: [DOTNET] Simple binding (WinForms) updates

2002-05-29 Thread Sean Greer (SBI-Chico)
>From my testing it appears that the property change notification should be a public event of type EventHandler that follows the naming convention Changed. If you define and fire this event when the property changes, all bound controls will be updated. I too think that there should be a mechanis

[DOTNET] Sending doc as an attachment through mail

2002-05-29 Thread Renu Sharma
Does anybody have code for sending any document as an attachment through mail Thanx, Renu You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsu

Re: [DOTNET] byte[] to Object

2002-05-29 Thread Eric Gunnerson
Try byte[] received; aMsg m; fixed (byte* pBuffer = received) { m = *((aMsg*) pBuffer); } -Original Message- From: Miguel Ángel Chacón [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 5:36 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] byte[] to Object Thanks, but may

[DOTNET] AOP to police thread affinity? (was Re: [DOTNET] Modeless WinForms Bug)

2002-05-29 Thread Mcmullan, Andy (Andrew)
Jeff What you are asking here is quite a lot. Every GUI object would need to check on entry to every method call whether the calling thread is the thread that created the object. Big overhead in terms of code to be written, and big performance overhead at runtime. The performance overhead issu

Re: [DOTNET] Modeless WinForms Bug

2002-05-29 Thread Ian Griffiths
Presumably Microsoft thought that putting the System.Windows.Forms.Timer on the Windows Forms Toolbox would be enough of a clue that you were supposed to use that one for Windows Forms applications. I guess most VB developers will look there first, since they've always dragged timers off a tool b

Re: [DOTNET] Putting bits of UI on a secondary thread? (was Modeless WinForms Bug)

2002-05-29 Thread Ian Griffiths
Which is more or less what Internet Explorer appears to do. Sometimes. Except when it doesn't. (I've never quite worked out what it is that causes it to ignore the settings for launching in a new process or not...) But anyway, you would only ever need to do this if your UI thread ever went off

Re: [DOTNET] Connecting to SQL database through a Web Service

2002-05-29 Thread franklin gray
I would suggest you have a web service inside the domain that is public, and have your other web service call it, or just go directly to the web service in the same domain as the SQL Server machine. I don't think making the SQL Server machine accessable from outside the firewall a good idea.

  1   2   3   >