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

2002-05-28 Thread Marco Russo
Sam, You have to read chapter 18 (Exceptions) of Jeffrey Richter's "Applied Microsoft .NET Framework Programming" book. It is complete, exhaustive and full of useful consideration, expecially when Jeffrey point your attention to SDK guideline inconsistencies. It's not a simple explanation of the

Re: [DOTNET] Framework question

2002-05-28 Thread Graeme Foster
The .NET Framework has to be installed. G. -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Dustin Wish with NCA Communications Sent: 28 May 2002 20:04 To: [EMAIL PROTECTED] Subject: Framework question Do you have to have the frameworks installed on a

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

2002-05-28 Thread John Lam
Sorry Sam, I meant to say "diagnostic" where I wrote "debugging". Also, I wasn't answering your original question; rather I was questioning Kirk's assertion that the client should do all logging and not the library. If I was diagnosing a problem in the field on some product that used your library

[DOTNET] Reusable toolbar design questions

2002-05-28 Thread Kollen Glynn
I wanted to throw my thoughts out to the list on creating a reusable toolbar (Win Forms). Normally a toolbar is constructed within the form at runtime and is a one off job. Now when I say reusable, I mean the buttons and bitmaps are already defined with some base functionality. For example, a t

[DOTNET] Byte array to disk

2002-05-28 Thread David B. Bitton
What's the quickest way to dump a byte array to disk (new file) ? -- David B. Bitton [EMAIL PROTECTED] www.codenoevil.com Code Made Fresh DailyT You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] Problems compiling ASP.net app

2002-05-28 Thread Reggie Burnett
Windows XP Pro VS.Net Ent Release Very small, simple ASP.net app Twice now in the last hour I have received error messages upon compiling that it cannot copy the output of the compilation to the run directory because another process has the files open. Restarting the web server corrects this. N

Re: [DOTNET] IJW and P/Invoke

2002-05-28 Thread Scott Densmore
I guess I admit I will have both.. Right next to DCOM, ATL Etc. My C++ career included all these! scott -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Richard Grimes Sent: Tuesday, May 28, 2002 2:29 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] I

[DOTNET] Global.asax - bug or by design?

2002-05-28 Thread Dean Cleaver
In my Global.asax Application_Start I have this code: string Downloads = Server.MapPath("Downloads"); Normally this works fine - "www.mydomain.com" causes it to map to D:\INetPub\wwwRoot\WebSite\Downloads which is good. However, I restarted the IIS (using IISReset.bat) and immediately went to t

Re: [DOTNET] SoapExtension Priority

2002-05-28 Thread Fumiaki Yoshimatsu
You can set it via SoapExtensionAttribute.Priority, like: [CompressionExtensionAttribute(ctorParam, Priority=3)] Of course you have to implement SoapExtensionAttribute- derived class to do the job. Fumiaki Yoshimatsu > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECT

Re: [DOTNET] IJW and P/Invoke

2002-05-28 Thread Sam Gentile
Congrats on another one. Your first is quite outstanding. 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://www.pro

Re: [DOTNET] IJW and P/Invoke

2002-05-28 Thread Richard Grimes
The next book is not an update of the first. It is a different book altogether: http://www.microsoft.com/mspress/books/5959.asp the two books will look very nice next to each other on anyone's bookshelf :-) Richard - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Re: [DOTNET] JObs?

2002-05-28 Thread Dustin Wish with NCA Communications
thx!!! - Original Message - From: Sean Greer (SBI-Chico) <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 28, 2002 5:56 PM Subject: Re: [DOTNET] JObs? > There's a seperate listserv for job-related postings [1]. > > Seang > > [1] http://discuss.develop.com/dotnet-j

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

2002-05-28 Thread Sam Gentile
I don't know what you mean by logging John. Its not about debugging. To me, it comes down to this: I'm making a library of useful .NET functions mainly around System.Xml stuff. There are a bunch of things that could go wrong. I think those things should be caught. I think it would be really crappy

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

2002-05-28 Thread John Lam
Actually, I'm not sure that I agree that the library should not do *any* logging. If I want to debug a library in the field, I would want to have mechanisms whereby I could enable logging in my library (reading a registry key, presence of an environment variable etc). -John http://www.iunknown.c

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

2002-05-28 Thread Kirk Jackson
Sorry, I misunderstood what you meant by 'handling'. Yeah, I agree that the client should do any logging, rather than the library. Kirk -Original Message- From: franklin gray [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 29 May 2002 10:14 a.m. To: [EMAIL PROTECTED] Subject: Re: [DOTNET]

[DOTNET] Sluggish XmlTextReader Performance (was RE: [DOTNET] Windows Application painfully sluggish)

2002-05-28 Thread Chris Sells
I'd also suggest trying to use your XmlTextReader in a console application. I hate to see the good name of my favorite .NET technology sullied unnecessarily. : ) Chris Sells http://www.sellsbrothers.com/ > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf

Re: [DOTNET] PDF Downloads

2002-05-28 Thread Joel Mueller
FYI, Response.ClearContent is exactly equivalent to Response.Clear (it calls Reponse.Clear). Response.ClearAll is the equivalent of calling Response.ClearHeaders followed by Response.Clear. > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Erick Th

Re: [DOTNET] dynamically determining which roles have access to a folder/file

2002-05-28 Thread Joseph E Shook
In the days of ASP we would use the PermissionChecker Object. Here is a code snippet that I was experimenting with about 5 months ago. PermissionCheckerClass pmck = new PermissionChecker.PermissionCheckerClass(); bool joe; try { joe = pmck.HasAccess("/Au

Re: [DOTNET] JObs?

2002-05-28 Thread Sean Greer (SBI-Chico)
There's a seperate listserv for job-related postings [1]. Seang [1] http://discuss.develop.com/dotnet-jobs.html -Original Message- From: Dustin Wish with NCA Communications [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 2:42 PM To: [EMAIL PROTECTED] Subject: [DOTNET] JObs? Any

[DOTNET] JObs?

2002-05-28 Thread Dustin Wish with NCA Communications
Any programming positions for a dottie to find work at? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

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

2002-05-28 Thread Eric Gunnerson
For a library, your main concern should be giving the programmer sufficient information. In many cases, the exception thrown by the runtime may be good enough, and you can just let the exception fly. In other cases, you may want to wrap the exception in your own exception to provide additional c

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

2002-05-28 Thread Duncan Godwin
Hi Sam, I seem to remember Effective Java has some great Idioms for Exception handling. I try create Application exceptions where possible, and inherit all of an application's (or library's) exceptions from this application level exception. Allows for generic catching of all exceptions thrown b

Re: [DOTNET] VB.NET Documentation/Comment processing Tool

2002-05-28 Thread Mattias Sjögren
Dave, >I have't tried this, but I'd be interested in anyone else comments on this >(no pun intended :-) ). > >XML Comments for VB.NET >http://www.fesersoft.com/Products/ Last time I checked, it used custom attributes for the comments. That isn't a very good solution IMO. It clutters the code e

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

2002-05-28 Thread franklin gray
"With the libraries we create, we try to make the exceptions that a library client receives meaningful." so you create custom exceptionsI bet just like I said below. ".. so that the client knows that they are catching all meaningful application exceptions:" The client knows of all exceptio

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

2002-05-28 Thread Peter Foreman
--- Brad Wilson <[EMAIL PROTECTED]> wrote: > However, if you use Windows Load Balancing, my understanding is that the > multiple machines all appear as one large, single machine to the outside > world. In that scenario, I'm not sure how/if you could move the request to > another machine. In realit

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

2002-05-28 Thread Kirk Jackson
With the libraries we create, we try to make the exceptions that a library client receives meaningful. This often means that we need to wrap up internal sql / xml / io exceptions into an UnknownPersonException (etc...) Also, we find it extremely useful to XML-Doc the exceptions that each method i

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

2002-05-28 Thread Peter Foreman
--- Brad Wilson <[EMAIL PROTECTED]> wrote: > Brad Wilson wrote: > > > However, if you use Windows Load Balancing, my understanding is that the > > multiple machines all appear as one large, single machine to the outside > > world. > > My mistake. This is clustering, not load balancing. That'll tea

Re: [DOTNET] PDF Downloads

2002-05-28 Thread Bryan Batchelder
Something less verbose, and works in all browsers (in my experience): if (Request.Params["file"] != null) { String PathToFile = Server.MapPath("") + "\\" + Request.Params["file"].ToString(); Response.ContentType = "application/octet-stream"; Response.AddHeader("content-di

[DOTNET] dynamically determining which roles have access to a folder/file

2002-05-28 Thread Bob Edwards
Is there a way to determine which roles have access to a directory? You can set that a given folder can only be accessed by, for example, Manager or Employee, is there a way to examine a directory and tell which roles have access? Thanks. Bob. You can read messages from the DOTNET archive, uns

Re: [DOTNET] using enterpriseservices based components in vb6

2002-05-28 Thread Brooke Philpott
This helps, but with a normal class when you do Register for COM Interop under your project properties it does all this stuff automatically (of course it doesn't use enterprise services). I guess I was looking for something like that. This will work though. Thanks, -Brooke -Original Mes

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

2002-05-28 Thread Bryan Batchelder
Can you give us a concrete example of what you are trying to do. I certainly still don't understand exactly what you want. --b Bryan Batchelder eBusiness Consultant ConnectWise, Inc. 813-935-7100 x 425 > -Original Message- > From: George Mladenov [mailto:[EMAIL PROTECTED]] > Sen

[DOTNET] keeping user data in DataTables in a Session object

2002-05-28 Thread Francesco Sanfilippo
I am building a .NET C# "community" application. I have classes for the different types of users: Person, Visitor, Member, Administrator which inherit from each other, in the order shown above. Now I am developing properties and methods of the Member class. Each Member has data in SQL tables,

Re: [DOTNET] Input on the most commonly used design patterns

2002-05-28 Thread Dustin Wish with NCA Communications
Have you looked at the ibuyspy.com portal site? It has a great layout of writing modules to do what I think you are looking for. Toolbars are controlled by user controls, redirection to mobile environments done in the default.aspx, content driven from the sql db, etc. Really pretty cool scripting

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

2002-05-28 Thread Bryan Batchelder
There is a pretty decent FTP client written in managed code at codeproject.com. http://www.codeproject.com/dotnet/dotnetftp.asp --b Bryan Batchelder eBusiness Consultant ConnectWise, Inc. 813-935-7100 x 425 > -Original Message- > From: Jeff Roberts [mailto:[EMAIL PROTECTED]] > S

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

2002-05-28 Thread Bryan Batchelder
Not that I am aware of. When writing an app to run properly on a web farm, you should think in the mindset that any given request could hit any of the servers. You can use a weaker form of load balancing that will lock a user session into a specific server - this is called affinity - such that o

Re: [DOTNET] web dialog

2002-05-28 Thread Bryan Batchelder
The javascript method Brad is talking about (I think) is showModalDialog(). http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml /reference/methods/showmodaldialog.asp My understanding is that it is the desired way of doing what you want - as long as you are using IE of cours

Re: [DOTNET] Simple question

2002-05-28 Thread Chris Anderson
Strange Mine does (It *was* "Combined Help collection" or something, but I changed that when I upgraded MSDN to April Merak > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Wayne Lee > Sent: 28 May 2002 22:23 > To: [EMAIL PROTECTED] > Subject: Re:

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

2002-05-28 Thread Sam Gentile
That's too simplistic. I don't have a GUI app. I am creating a reusable set of classes in a library that I want to have intelligent exception hadling for. Its more like what Graeme understood in his reply. >From: franklin gray <[EMAIL PROTECTED]> >Reply-To: dotnet discussion <[EMAIL PROTECTED]>

Re: [DOTNET] PDF Downloads

2002-05-28 Thread Erick Thompson
Wayne, Sure, no problem. In the Page_Load event handler, put in something like Response.Clear(); Response.ClearHeaders(); Response.ClearContent(); Response.ContentType = "application/pdf"; byte[] pdf = GetPDF(); // this is any function that returns a bunch of bytes Response.BinaryWrite(pdf)

Re: [DOTNET] Framework question

2002-05-28 Thread Wayne Lee
Unfortunately mate the framework needs to be installed on the client. Bummer eh? Wayne -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Dustin Wish with NCA Communications Sent: 28 May 2002 20:04 To: [EMAIL PROTECTED] Subject: [DOTNET] Framework questio

Re: [DOTNET] Framework question

2002-05-28 Thread franklin gray
framework has to be installed. -Original Message- From: Dustin Wish with NCA Communications [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 2:04 PM To: [EMAIL PROTECTED] Subject: [DOTNET] Framework question Do you have to have the frameworks installed on a machine to deploy your

[DOTNET] Simple question

2002-05-28 Thread Wayne Lee
All, Is there way in Visual Studio.NET to find out what MSDN month it's using? Thanks Wayne Lee Evident Systems Ltd www.evidentsystems.co.uk This email has been scanned with Norton AntiVirus 2002 You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other Dev

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

2002-05-28 Thread Brad Wilson
George Mladenov wrote: > This is exactly what I want and I was hoping that there is something built- > in to do it. Sorry if it sound stupid, but would it be possible to open up > an HTTP request to the second host directly if there is load balancing > software installed. Like I said, it depends

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

2002-05-28 Thread Peter Foreman
--- George Mladenov <[EMAIL PROTECTED]> wrote: > I am trying to design my web application so that it can be run in a web > farm but I've never actually had any experience with web farms. I am > assuming that in a web farm some load balancing software (MS Application > Center?) routes HTTP requests

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

2002-05-28 Thread Graeme Foster
Hi Sam, In your example, I'd say it doesn't make much sense to let the ArgumentNullException out unless the null argument originated outside of your library, in which case you'd probably want to catch the exception and throw a new ArgumentNullException describing the argument from the callers per

[DOTNET] Serialization and assembly version redirection

2002-05-28 Thread Paul Currit
I am persisting objects to a database using the BinaryFormatter. If the version of the assembly containing the serializable type changes, can the serialized object in the database be deserialized with the newer version. In other words, is there any way to deserialize objects that were originally s

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

2002-05-28 Thread George Mladenov
Hi Brad, This is exactly what I want and I was hoping that there is something built- in to do it. Sorry if it sound stupid, but would it be possible to open up an HTTP request to the second host directly if there is load balancing software installed. Wouldn't it be intercepted or that's not how lo

Re: [DOTNET] using enterpriseservices based components in vb6

2002-05-28 Thread Dustin Wish with NCA Communications
Look at the interop features for .net. I know how to add a reference to a pass .dll into the future, but unsure about sending to back to the past. - Original Message - From: Brooke Philpott <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 28, 2002 2:28 PM Subject: [DOTNET]

Re: [DOTNET] Return type of @@IDENTITY

2002-05-28 Thread Dustin Wish with NCA Communications
I believe it is because of the incremental property of the identity - Original Message - From: Jim Arnold <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 28, 2002 12:41 PM Subject: [DOTNET] Return type of @@IDENTITY > Can anyone explain why SQL Server's @@IDENTITY field

[DOTNET] Framework question

2002-05-28 Thread Dustin Wish with NCA Communications
Do you have to have the frameworks installed on a machine to deploy your VB.net app or is everything compiled within it? D You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] PDF Downloads

2002-05-28 Thread Wayne Lee
Erik & peter, Thanks for your reply guys, a code some would be good eric if you don't mind? I'm too tired now...but will look into this tomorrow, 10 hours of .net...and I get tired...ZzZz... Cheers all -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of

Re: [DOTNET] PDF Downloads

2002-05-28 Thread Peter Foreman
--- Wayne Lee <[EMAIL PROTECTED]> wrote: > I have an asp.net app written using c#. What I'd like to do is when > someone clicks a hyperlink, say: > > Click > > I'd like that to open a new page, run a db query which returns the > filename of that doc, and triggers the download of the pdf. A

Re: [DOTNET] PDF Downloads

2002-05-28 Thread Erick Thompson
Wayne, You do the same thing as you would do in ASP. Use the Response object, clear the existing headers, output the headers with your content-length, content-disposition, etc, and then spit out the bytes for the pdf. That way, you avoid meta-tags (and instead use the true headers), so it will wo

Re: [DOTNET] using enterpriseservices based components in vb6

2002-05-28 Thread Fabio Razzo Galuppo
You can implement a interface (IHello) to your Hello component (ServicedComponent) : using System; using System.EnterpriseServices; using System.Reflection; using System.Runtime.CompilerServices; [assembly: AssemblyKeyFile(@"..\..\hello.snk")] [assembly: ApplicationName("MyHello")] [assembly:

Re: [DOTNET] REMOTING problem inside and outside a network

2002-05-28 Thread Dean Cleaver
Yves, Might be 100% of nothing to do with your problem but... Something I learnt the hard way about remoting (and in my case events, in your case callbacks?) is that you have to have all the assemblies for the client objects on the server side also - otherwise it has no "reference" to the assemb

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

2002-05-28 Thread Marsh, Drew
Brad Wilson [mailto:[EMAIL PROTECTED]] wrote: > > Response.Redirect will require a roundtrip to the browser, correct? > > How do you do the same thing without the roundtrip? > > If it's not on the same machine, then there's nothing > built-in that can do it for you. Of course, you could open up >

Re: [ADVANCED-DOTNET] Remoting and Channels

2002-05-28 Thread Marco Russo
If you have two different processes hosting the two services, the answer is no. If you host two Windows services inside the same process, technically you can do it, even if I'm not sure what happens with the Windows Service infrastructure provided by .NET classes. Marco -Original Message

Re: [ADVANCED-DOTNET] Remoting and Channels

2002-05-28 Thread Ingo Rammer
Hi Rob, this is unfortunately not possible due to the underlying TCP/IP protocol's constraints. It only allows a given port number to be opened by a single application at any time, due to the fact that the protocol's implementation (i.e. your operating system) needs a way to "decide" which applic

Re: [ADVANCED-DOTNET] Remoting and Channels

2002-05-28 Thread Browning, Don
Remoting ports are registered on a per/machine basis, so unfortunatly you're out of luck on this... But. Why are you trying to register them on the same port? This may be more of a design issue. Don -Original Message- From: Rob Webb [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May

Re: [DOTNET] Create PDF files from ASP.NET

2002-05-28 Thread Erick Thompson
I was looking for something like this, but didn't have any luck finding a pure ASP.NET solution. However, if this is for an internal system, you could install Apache and FOP on a server and use the XML:FO standard to produce PDFs. Then, write a web service wrapper around the Java components, and u

Re: [DOTNET] Windows Application painfully sluggish

2002-05-28 Thread William Oliveri
So the performance hit is when the user opens the app/form for the first time? What factors altered would produce another performance hit? ReComplile and deploy? In my example the biggest visible drag was on the XMLReader(). I tried adding records to the xml file and it still ran fast so what i

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

2002-05-28 Thread Brad Wilson
George Mladenov wrote: > Response.Redirect will require a roundtrip to the browser, correct? How do > you do the same thing without the roundtrip? If it's not on the same machine, then there's nothing built-in that can do it for you. Of course, you could open up an HTTP request to the second hos

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

2002-05-28 Thread George Mladenov
Response.Redirect will require a roundtrip to the browser, correct? How do you do the same thing without the roundtrip? The problem that I am trying to solve is data-dependent routing. I would like to share state between HTTP requests but I _do not_ want to use the state sharing facilities provide

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

2002-05-28 Thread franklin gray
I really don't understand what you are missing but this is the way I would look at it for a Desktop app. Do this in the UI where events start, not in dll's or class unless you need to trap an error. Try execute stuff Catch show the error to the user by either a messagebox or a

Re: [DOTNET] Windows Identity.GetCurrent vs. User.Identity

2002-05-28 Thread Marsh, Drew
Jesse Liberty [mailto:[EMAIL PROTECTED]] wrote: > Right, that is my understanding, but not what I'm seeing on > the page. I'm using Windows authentication, (and impersonate="true"/>) yet the user.identity is correct (has > the expected user name) but the wp version shows > NT\AUTHORITY\SYSTEM.

Re: [DOTNET] Windows Application painfully sluggish

2002-05-28 Thread Marsh, Drew
William Oliveri [mailto:[EMAIL PROTECTED]] wrote: > Oh heck yeah. That's what I was doing. One click and kill > the app. Then try again. Now it's much different, faster. > I was worried that if this was happening on a 1.8Ghz with 512 > of ram what it might do on a lesser machine. thanks. He

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

2002-05-28 Thread Brad Wilson
George Mladenov wrote: > What I would like to do is to terminate the execution of the current page > and begin the execution of another page but on a specific server from the > farm. Generally server farms don't work this way (however, if you wanted to bounce to another server, you might be able

Re: [DOTNET] Windows Identity.GetCurrent vs. User.Identity

2002-05-28 Thread ChongQing Xiao
Do you allow the anonymous user? (try to uncheck it) If yes, what user account the anonymous user is set up? Chong -Original Message- From: Jesse Liberty [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 2:24 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Windows Identity.GetCurrent

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

2002-05-28 Thread Patrick Steele
Sorry. No first-hand experience with any of them. It's just a set of links I keep handy since it's often asked in the microsoft.public.dotnet.* newsgroups. --- Patrick Steele ([EMAIL PROTECTED]) Lead Software Architect Image Process Design -Original Message- From: Jeff Roberts [mailt

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

2002-05-28 Thread Sam Gentile
I have just been poring through C# books and no one seems to address this well. Sure, otherwise great books like Jesse Liberty's "Progarmming C#" talk about Exceptions but all the examples are too trivial. The examples just shoot out an "I am here" kind of thing in the catch handler. Actually some

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

2002-05-28 Thread Jeff Roberts
Patrick, Do you know if any of the links for frp are better than the others ? thanks You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

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

2002-05-28 Thread George Mladenov
Hello, I am trying to design my web application so that it can be run in a web farm but I've never actually had any experience with web farms. I am assuming that in a web farm some load balancing software (MS Application Center?) routes HTTP requests to the different web servers depending on their

[DOTNET] using enterpriseservices based components in vb6

2002-05-28 Thread Brooke Philpott
I have successfully created a component in c# that uses EnterpriseServices for object pooling, however I noticed that when I tried to call the object from vb6 I was not able to use intellisense. Upon further inspection it seems that the the test method was not exported to the .tlb The method I

Re: [DOTNET] Windows Identity.GetCurrent vs. User.Identity

2002-05-28 Thread Jesse Liberty
Right, that is my understanding, but not what I'm seeing on the page. I'm using Windows authentication, (and ) yet the user.identity is correct (has the expected user name) but the wp version shows NT\AUTHORITY\SYSTEM. Any ideas? Thanks. -j --- Jesse Liberty, Presid

Re: [DOTNET] Windows Identity.GetCurrent vs. User.Identity

2002-05-28 Thread ChongQing Xiao
User.Identity.Name is for the login in user. WindoewsIdentity.GetCurrent is for the user of current running thread. If you set up impersonate as true, these two user should be the same. Chong -Original Message- From: Jesse Liberty [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 1

Re: [DOTNET] Windows Application painfully sluggish

2002-05-28 Thread franklin gray
But when the client, say opens a form that has a grid that is being loaded as this poster has shown, doesn't it have to load assemblies, do security checks and JIT? Sure, if he doesn't it the second time it will be faster, but many users will not be opening the same forms over and over again.

Re: [DOTNET] Windows Application painfully sluggish

2002-05-28 Thread William Oliveri
On Tue, 28 May 2002 14:02:08 -0400, Marsh, Drew <[EMAIL PROTECTED]> wrote: Oh heck yeah. That's what I was doing. One click and kill the app. Then try again. Now it's much different, faster. I was worried that if this was happening on a 1.8Ghz with 512 of ram what it might do on a lesser mac

Re: [DOTNET] VB.NET Oddity

2002-05-28 Thread Rob Perkins
On Mon, 27 May 2002 22:36:37 -0400, Mark Burns <[EMAIL PROTECTED]> wrote: >Tell me, does this tell you _anything at all_ about this new "Visual Basic"? >(remember that the first word in Basic is supposed to be "Beginners'"?) How >in the heck is a real, actual BEGINNER supposed to cope with nuance

Re: [DOTNET] Windows Identity.GetCurrent vs. User.Identity

2002-05-28 Thread Marsh, Drew
I wrote: > Assuming you're using Windows authentication, there is no > difference. This is a little misleading. It also assumes you've configured your web application with: Later, Drew You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor

Re: [DOTNET] Return type of @@IDENTITY

2002-05-28 Thread Morten Abrahamsen
Well, it's quite simple. @@IDENTITY is a global variable (connection specific though!), and is NOT bound to any table or field. Thus, when you trigger an identity increment the @@IDENTITY variable is filled with the result. Now this variable has to be 'generic', and in order to be able to st

Re: [DOTNET] Windows Identity.GetCurrent vs. User.Identity

2002-05-28 Thread Marsh, Drew
Jesse Liberty [mailto:[EMAIL PROTECTED]] wrote: > In an ASP.NET application, what is the difference between > > User.Identity.Name > > and > > WindowsPrincipal wp = new > WindowsPrincipal(WindowsIdentity.GetCurrent()) > wp.Identity.Name > > When I try this (with anonymous

[DOTNET] Windows Identity.GetCurrent vs. User.Identity

2002-05-28 Thread Jesse Liberty
In an ASP.NET application, what is the difference between User.Identity.Name and WindowsPrincipal wp = new WindowsPrincipal(WindowsIdentity.GetCurrent()) wp.Identity.Name When I try this (with anonymous user off) I get the correct user name from the former, and NT\AUTHO

[DOTNET] PDF Downloads

2002-05-28 Thread Wayne Lee
Hi all, Great list this!! Well impressed after 4 hours!! ;) I have an asp.net app written using c#. What I'd like to do is when someone clicks a hyperlink, say: Click I'd like that to open a new page, run a db query which returns the filename of that doc, and triggers the download of t

[ADVANCED-DOTNET] Remoting and Channels

2002-05-28 Thread Rob Webb
I have two Windows Services, each hosting a separate remote class. I use configuation files to register channels and objects. Is it possible for these to share the same port number? I can only get them to work using different ports. You can read messages from the Advanced DOTNET archive, unsubscr

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

2002-05-28 Thread Patrick Steele
.NET does not have any built-in FTP class. See below for some solutions: http://www.csharphelp.com/archives/archive9.html http://www.quintuslink.com/qlftp.html http://www.mabry.com/dotnet/#ftpnet --- Patrick Steele ([EMAIL PROTECTED]) Lead Software Architect Image Process Design -Origi

Re: [DOTNET] REMOTING problem inside and outside a network

2002-05-28 Thread Ingo Rammer
Hi Yves, I guess I have some bad news for you. Oh and you know about "don't shoot the messenger" ... What you are trying to achieve is not possible with the supplied communication channels (TcpChannel or HttpChannel) because the connection from the server to the client will quite likely be block

[DOTNET] REMOTING problem inside and outside a network

2002-05-28 Thread Yves Gagnon
Hi, I have a problem to know how to work around a remoting problem. I have a client who connects to a server application outside a network (by internet) and the client transfer to the server an object (marshing object) who contains a reference to an interface of an other object inside the client.

Re: [DOTNET] Windows Application painfully sluggish

2002-05-28 Thread William Oliveri
Hi all, I have 512 on my machine at home 500Mhz and a 512 on my workstation at work which is a 1.8Ghz machine. Actually, the worst is the XML to Datagrid. I would think this would be pretty fast. For example: Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventAr

[DOTNET] Return type of @@IDENTITY

2002-05-28 Thread Jim Arnold
Can anyone explain why SQL Server's @@IDENTITY field is returned as a System.Decimal from the managed provider, regardless of the column's SQL type (int in this case)? Or at least can they confirm that it is always Decimal, and doesn't vary? Smells like laziness in the TDS parser, but I just wan

Re: [DOTNET] Windows Application painfully sluggish

2002-05-28 Thread Chris Sells
I haven't noticed that WinForms apps are slow. How much memory have you got on your machine? I find 512 to be the minimum for a .NET dev machine. Chris - Original Message - From: "William Oliveri" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 28, 2002 9:15 AM Subject: [DO

Re: [DOTNET] Windows Forms Design

2002-05-28 Thread Patrick Burrows
You mean the thing where you are picking from the categories of drawings you want to make (in Visio)? I think that's just a clever use of tabs and colors. Left align tabs, set them to track highlight, set the colors right, and there ya go. Hmm... actually, according to Spy++ it is a treeview a

Re: [DOTNET] VB.NET Oddity >> okay enough

2002-05-28 Thread Patrick Burrows
Uhh... I haven't posted here in months. I come in, send, what, 8 emails? And suddenly the list is about to crack from the strain? LOL. You are a riot. Patrick Burrows Well I sleep like a baby With the snakes and the bugs Now Playing: depeche mode - just can´t get enough -

Re: [DOTNET] VB.NET Oddity

2002-05-28 Thread Mark Burns
Patrick, Thanks, I think this is the sort of insight I was looking for. I'll shut up and resume lurking mode as soon as I correct one mis-interpretation I've left hanging out there on this subject. Yes, I did use the term "Beginner, but I really didn't mean "true beginners" in the first-time writ

Re: [DOTNET] VB.NET Oddity

2002-05-28 Thread Patrick Burrows
> > Patrick Burrows wrote: > > > No, it was converted for display according to local settings. > > Locale doesn't tell me whether I want to show two or four > places after the > decimal place. Locale is only helpful for dates & times, and > when you are > looking for very specific types of fo

[DOTNET] Using HTTPWebRequest to make SSL connection fails calling for ASP.NET

2002-05-28 Thread Jason Briedis
I am trying to make an SSL connection with the HTTP WebRequest object using client certificates. It works just fine when I run the app from a console or gui type environment. It fails when I call it through asp.net though. My guess is that maybe it cant access the private key for the client cer

[DOTNET] Windows Forms Design

2002-05-28 Thread James Texter
In several of Microsofts products, I have seen a new form design, where the left hand side is a list of hyperlinks, and, when you click on one of them, the form wraps around the hyperlink, then extends out into the full form( to see, look at the latest editions of Microsoft Money or Visio for Ente

Re: [DOTNET] web dialog

2002-05-28 Thread Collins, Michael G
A simple way to provide a QUOTE Modal Dialog UNQUOTE that is cross browser compatible is this: In the web page that open up the Modal dialog window add the following script block: var popupWindow = null; function doPopup() { // This is your function to bring up the popup window

Re: [DOTNET] VB.NET Oddity >> okay enough

2002-05-28 Thread Mike C
I think back a couple of weeks ago where everyone was slamming the Wrox guy(forget his name) about posting to the list every time someone had a comment. So what is up with these two and the importance of what they have to say to this list. I get way too many emails in a day to have to open one

[DOTNET] Windows Application painfully sluggish

2002-05-28 Thread William Oliveri
Hi all, I have started to build a Windows application and in the process have noticed that the response time is very sluggish(compared to an old VB6 app). The app appears to draw on the screen in sections. You can see the different parts coming up (especially in the 500Mhz machine, see below).

Re: [DOTNET] VB.NET Documentation/Comment processing Tool

2002-05-28 Thread Dustin with NCA Communications, Inc.
Have you looked at RoboHelp for something like this? -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of dave wanta Sent: Tuesday, May 28, 2002 7:09 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] VB.NET Documentation/Comment processing Tool Hi Ivan, I have'

  1   2   >