Re: [DOTNET] Custom Hosts, AppDomains and Domain-Neutral Assemblies

2002-06-11 Thread Nick Wienholt
If you want different behaviour from the default (which you correctly state below - mscoree.idl has comments which confirms this behaviour), and don't want to use unmanaged code, the only real option is to rely on registry settings. Under HKEY_CURRENT_USER\Software\Microsoft\.NETFramework, you ca

[DOTNET] Custom Hosts, AppDomains and Domain-Neutral Assemblies

2002-06-11 Thread Wilson Chiesa
Hi guys, I have a question related to AppDomains and Custom Hosts. How can I create a custom host that loads domain-neutral assemblies using C# ? I know that you can do that using C++ and the CorBindToRuntimeEx API, but how about if I want to create the host using C# and share the assemblies betw

Re: [ADVANCED-DOTNET] Threading is blocking itself or ?

2002-06-11 Thread Simon Fell
It looks like all the threads you're creating are MTA threads, but the MSTK transport object is apartment threaded so you'll end up with all the MTA threads blocking waiting on the host STA thread. You need to make the threads you're creating be STA threads. Cheers Simon On Tue, 11 Jun 2002 11:1

[DOTNET] Setup Project Problems (MSI File in Visual Studio)

2002-06-11 Thread Shawn Wildermuth
Boy I feel kinda ignorant. I am creating a Setup Project in Visual Studio.NET and I want to specify a directory in the File System Pane and make it's Default location be the value of a Registry Key. I could write a custom step, but I cannot return a Property back to the installer. The custom st

Re: [ADVANCED-DOTNET] Threading is blocking itself or ?

2002-06-11 Thread Ben Kloosterman
Ian , Just for information here are the times for a little prog I wrote it is interesting that there is an optomisation in Thread.Start() when starting mutliple threads to the same delgate. The first one takes 40 ms and later ones are very quick (occasionaly the second one takes 10ms) .

Re: [DOTNET] shift-click in IE can cause headaches :(

2002-06-11 Thread David B. Bitton
do what i do, just tell QA it's not a bug, it's a performance enhancement -- David B. Bitton [EMAIL PROTECTED] www.codenoevil.com Code Made Fresh DailyT - Original Message - From: "Phill Tornroth" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 11, 2002 1:43 PM Subject: s

Re: [DOTNET] NotifyIcon and WinForms

2002-06-11 Thread Eric Gunnerson
Have you tried: Form.WindowState = WindowState.Normal; -Original Message- From: Jeff Roberts [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 6:08 AM To: [EMAIL PROTECTED] Subject: [DOTNET] NotifyIcon and WinForms I have a WinForms application that minimizes into the System t

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

2002-06-11 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

Re: [DOTNET] VS.Net "Copy Local" feature

2002-06-11 Thread VB Dot Net Team
This issue is usually caused by using file-based references instead of project-to-project references and not having dependencies between projects set up correctly. For example, if you have the following projects and references, with each reference set to CopyLocal=True: * IDBAdapter * Pr

Re: [DOTNET] Handling Unhandled Exceptions

2002-06-11 Thread Pradeep Tapadiya
Paul, It seems the Forms runtime code adds a ThreadExceptionHandler to the application. Instead of using an UnhandledExceptionHandler, try using a ThreadExceptionHandler. Application.ThreadException += new ThreadExceptionEventHandler(MyExceptionHandler); Hope this helps. Pradeep http://www.

Re: [DOTNET] ADO.NET and Dispose

2002-06-11 Thread Shawn Wildermuth
Peter, I know that Bob's book and mine (which won't be out for a while, so buy Bob's : ) both cover it pretty extensively. We both try and hammer that point home. Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: The DOTNET list will be retired 7/1/02 > [mailto:[

Re: [DOTNET] How can I programmatically RESTORE my window?

2002-06-11 Thread Jeff Roberts
Bill, Thanks ! that works. I am surprised there is not an easier way than that ! jeff You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] shift-click in IE can cause headaches :(

2002-06-11 Thread Phill Tornroth
Hey all, I had a tester try to multiply-select from a list (built using an control)... Apparently, holding shift and clicking in IE opens the link up in a separate window, which in this case causes a blank screen to pop up with the address: javascript:__doPostBack("lstTests:_ctl2:lnkValue',") A

Re: [DOTNET] FormsAuthentication.Signout and browser back button

2002-06-11 Thread Peter Foreman
--- "Marsh, Drew" <[EMAIL PROTECTED]> wrote: > Brian Weeres [mailto:[EMAIL PROTECTED]] wrote: > > > That's not quite what I was looking for. I would like the > > pages to be cached as long as they are signed in but once > > they signout I would like to remove them from cache or cause > > them to h

Re: [ADVANCED-DOTNET] Reflection.Emit and modules

2002-06-11 Thread Henk de Koning
I think modules are only supported on CodeDom and the unmanaged api. -- homo homini Henkk - Original Message - From: "Paolo Molaro" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 11, 2002 5:51 PM Subject: [ADVANCED-DOTNET] Reflection.Emit and modules > I can't find a w

Re: [DOTNET] ADO.NET and Dispose

2002-06-11 Thread Peter Foreman
--- "Beauchemin, Bob" <[EMAIL PROTECTED]> wrote: > database cursors, so if you don't call it, you will indeed run out of cursors. There >is at least > one ADO.NET book out that discusses this. ;-) I assume this is yours? [1] :-) > Database programmers are used to calling Close; Dispose is .NET

Re: [DOTNET] Find Current DataRow in Bound Control's Table

2002-06-11 Thread Ian Griffiths
You need to use the Form's BindingContext property to obtain the CurrencyManager for the data source. If it's just a DataTable use this: int position = BindingContext[myTable]; If it's a table inside a DataSet you can also do this: int position = BindingContext[myDataSet, "TableName"]; As

[DOTNET] Security Exception with COM

2002-06-11 Thread Jason Briedis
I have a .NET assembly that references a COM dll that does an http request. When I call that assembly from a test app it works just fine calling out the the COM dll. When I include my assembly in a .NET web application, then try to call it, I get a COM Exception: Security Error has occurred.

Re: [ADVANCED-DOTNET] Encryption and Decryption using MemoryStream

2002-06-11 Thread Paul Ballard
With FlushFinalBlock I still get garbage. I tried FlushFinalBlock and Flush. Any other ideas? Paul Ballard [EMAIL PROTECTED] >From: Joseph E Shook <[EMAIL PROTECTED]> >Reply-To: "Moderated discussion of advanced .NET topics." ><[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: [ADVANCED-

Re: [DOTNET] ADO.NET and Dispose

2002-06-11 Thread Peter Foreman
--- Chris Anderson <[EMAIL PROTECTED]> wrote: > I just would like to know what the most appropriate techniques are for > Disposal of ADO.NET objects > > Basically..Am I going overkill on the Dispose methods? Not IMO. > Also...What resources are actually being disposed? It depends. The connecti

Re: [ADVANCED-DOTNET] Unhandled Exception Management

2002-06-11 Thread Mark Boulter
Have you looked at: http://samples.gotdotnet.com/quickstart/howto/doc/WinForms/WinFormsAppEr rorHandler.aspx Windows Forms installs a message pump exception handler. You can override this to use you own dialig as per above. My guess is that this is trapping the error before your AppDomain except

Re: [DOTNET] How can I programmatically RESTORE my window?

2002-06-11 Thread Bill Schmidt
Jeff, There may be a direct way to do what you want. Perhaps someone else knows how -- I don't. However, you can modify Bill H's suggestion by saving the previous WindowState property before the form is sent to the task bar, then restore it to what it was before by setting the WindowState prope

[DOTNET] Find Current DataRow in Bound Control's Table

2002-06-11 Thread Jay Ayliff
Hi List, In a Windows Forms VB application I have a DataGrid bound to a DataTable that was created at runtime. When I have clicked on a row in the grid how do I find the corresponding DataRow? I can't use the DataGrid's CurrentRowIndex because the grid is sortable, so the grid row number won't be

Re: [DOTNET] How can I programmatically RESTORE my window?

2002-06-11 Thread Jeff Roberts
Bill, Thanks, but that always makes my window normal size. If it was previously maximized, then I want it to restore to Maximized ! jeff You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [ADVANCED-DOTNET] Encryption and Decryption using MemoryStream

2002-06-11 Thread Joseph E Shook
Try adding a encStream.FlushFinalBlock() just before the close() method. -Original Message- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED]] On Behalf Of Paul Ballard Sent: Tuesday, June 11, 2002 7:48 AM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] Encryp

[ADVANCED-DOTNET] Data Access API

2002-06-11 Thread Thomas
A number of people I have run into, and to some extend even I myself, have been confused about the use of ADO.NET datasets versus the concept of building your own Domain Object Model and using datareaders and commands to manage the db access portion of a system. I am wondering what experience the

Re: [DOTNET] ADO.NET and Dispose

2002-06-11 Thread Francesco Sanfilippo
I invoke Dispose() like crazy inside the DAL I wrote, and was wondering if it was overkill. Your comments reinforce to me that, no matter how much people tell me "you don't have to Dispose everything under the sun," I am doing the right thing by cleaning up after myself. Francesco >From: Bra

[DOTNET] Retrieve a Control in a WinForms DataGrid Cell

2002-06-11 Thread LeTS
Hi All, How can i retrieve a Control in a WinForms DataGrid Cell Like i have a Checkbox Column in the Grid. How do i get access to the individual Checkboxes. Thanks in Advance Regards, Sendhil * Disclaimer: The information

Re: [DOTNET] FormsAuthentication.Signout and browser back button

2002-06-11 Thread Marsh, Drew
Brian Weeres [mailto:[EMAIL PROTECTED]] wrote: > That's not quite what I was looking for. I would like the > pages to be cached as long as they are signed in but once > they signout I would like to remove them from cache or cause > them to have to be fetched from the server. Is this possible? So

Re: [DOTNET] Why is CancelButton special?

2002-06-11 Thread Marsh, Drew
Chris Sells [mailto:[EMAIL PROTECTED]] wrote: > I *can* handling OnClosing. I'm just looking to understand > the inconsistency. --Chris Sorry, responded before I saw your further exchanges with Mark. Later, Drew [ .NET MVP | weblog: http://radio.weblogs.com/0104813/ ] You can read messages fr

Re: [DOTNET] ADO.NET and Dispose

2002-06-11 Thread Chris Anderson
> In most data providers, Connection.Dispose simply calls > Connection.Close, and, in case of SqlClient, NULLs out the > connection string so you can't use the Connection again > without replacing it. In most providers, Command.Dispose is > not strictly required, but, in at least one case, (OleDb

Re: [DOTNET] Why is CancelButton special?

2002-06-11 Thread Chris Sells
I *can* handling OnClosing. I'm just looking to understand the inconsistency. --Chris - Original Message - From: "Marsh, Drew" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 11, 2002 8:58 AM Subject: Re: [DOTNET] Why is CancelButton special? > Chris Sells [mailto:[EMAIL

Re: [DOTNET] Why is CancelButton special?

2002-06-11 Thread Chris Sells
Thanks, Mark. I assumed it was a labor-saving device. Chris Sells http://www.sellsbrothers.com/ > -Original Message- > From: The DOTNET list will be retired 7/1/02 > [mailto:[EMAIL PROTECTED]] On Behalf Of Mark Boulter > Sent: Tuesday, June 11, 2002 8:27 AM > To: [EMAIL PROTECTED] > Subj

Re: [ADVANCED-DOTNET] Unhandled Exception Management

2002-06-11 Thread Ian Griffiths
The surprising thing is that this works in VS.NET - you should really be trapping the Application.ThreadException event - this is raised by Windows Forms when an event handler throws an exception. As for why throwing an exception in your form constructor is different...well it could be this: are

[ADVANCED-DOTNET] Reflection.Emit and modules

2002-06-11 Thread Paolo Molaro
I can't find a way to support modules using the Reflection.Emit interface, or, more precisely, separately compiled modules. We want to create a module in one compilation run and later create an assembly and add the module to it, or add to an AssemblyBuilder a module created with another compiler.

Re: [DOTNET] Why is CancelButton special?

2002-06-11 Thread Mark Boulter
We special cased setting AcceptButton and CancelButton in order to make the designtime a "one click" operation - rather than having to set the DialogResult and then then the CancelButton or vice versa you just have to set the CancelButton. The typical case is that you want the CancelButton to clos

Re: [DOTNET] Why is CancelButton special?

2002-06-11 Thread Marsh, Drew
Chris Sells [mailto:[EMAIL PROTECTED]] wrote: > In might be possible in VB.NET, but handling the Cancel > button's click event in WinForms does *not* stop the form > from closing. Chris, Why can't you handle OnClosing? protected override void OnClosing(CancelEventArgs e) { Debug.Write

Re: [DOTNET] Why is CancelButton special?

2002-06-11 Thread Chris Sells
I don't (yet) want pressing the Cancel button to not close the form, but that wasn't my question. WinForms has a nice architecture for setting the DialogResult for a button and either having the form close or not when the button is pressed based on whether they DialogResult property for that butto

Re: [DOTNET] AGAIN: Building a solution with embedded resources

2002-06-11 Thread Jan Dropczynski
Yes, I did! The property is set to true. The project assembly is copied to the main project folder! Only the localized satelite assemblies are not copied! Jan You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.devel

[ADVANCED-DOTNET] Problem with reading dynamically created checkboxes in datagrid

2002-06-11 Thread Stefan
Hello, I am trying to read the values of a chackboxes that I have manually added to a datagrid. I always get an System.NullReferenceException as an error message. The code that I use to read the value of the checkbox is: Sub UpdateOrdersListDatabase() Dim orders As OrdersDB = New ASPNetPortal.O

[DOTNET] [OT] Jumping the gun

2002-06-11 Thread Brad Wilson
And hopefully not jumping the shark. :) I'm un-subscribing from this list because of the new segregated lists. See you all there! Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMent

Re: [DOTNET] How can I programmatically RESTORE my window?

2002-06-11 Thread Bill Haney
this.WindowState = System.Windows.Forms.FormWindowState.Normal; bill > -Original Message- > From: The DOTNET list will be retired 7/1/02 > [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Roberts > Sent: Tuesday, June 11, 2002 8:02 AM > To: [EMAIL PROTECTED] > Subject: [DOTNET] How can I prog

Re: [DOTNET] Why is CancelButton special?

2002-06-11 Thread Mark Boulter
There is code in the CancelButton setter that sets the DialogResult of the CancelButton to Cancel if it is currently "None". This code is there so that if you set the CancelButton of the Form the DialogResult for the CancelButton is automatically set to Cancel- meaning setting up the CancelButton

Re: [DOTNET] Why is CancelButton special?

2002-06-11 Thread Jacob Grass
Chris- >Setting cancelButton.DialogResult to None in the designer has no effect >-- at runtime the form is still closed. You can override the Closing if you want. . . Just handle the Closing event of the Dialog and set e.Cancel = True. Private Sub Form2_Closing(ByVal sender As Object, ByVal

Re: [DOTNET] Is this DOTNET list available after 7/1/02 ?

2002-06-11 Thread Brad Wilson
Jeff Roberts wrote: > I noticed that when I search the archives, it says that the list will be > retired on 7/1/02. What does this mean ? The list itself will be "unpostable" as of 7/1. There are new lists set up that segregate the traffic (and so far, for those who have used them, has done an e

Re: [DOTNET] ADO.NET and Dispose

2002-06-11 Thread Beauchemin, Bob
In most data providers, Connection.Dispose simply calls Connection.Close, and, in case of SqlClient, NULLs out the connection string so you can't use the Connection again without replacing it. In most providers, Command.Dispose is not strictly required, but, in at least one case, (OleDb data pr

Re: [DOTNET] Read only behaviour for a DataTable

2002-06-11 Thread Mark Boulter
You could hand out a DataView with AllowEdit & AllowAdd set to false - I think this will give you the behavior you are after mark -Original Message- From: Ian Griffiths [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 2:42 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Read only b

[ADVANCED-DOTNET] Encryption and Decryption using MemoryStream

2002-06-11 Thread Paul Ballard
I am trying to do a quick encryption/decryption on strings. All of the examples I've seen involve encrypting whole files using FileStream. I have been attempting to simulate that functionality using MemoryStream. However, if I use an exact copy of the MemoryStream that I have encrypted as the s

Re: [ADVANCED-DOTNET] Server Push Technology in .NET

2002-06-11 Thread Craig Andera
Well, in terms of high-level capability, DCOM and .NET remoting are really equivalent. Both give you the capability to make callbacks by passing object references from a client to a server. Connection points aren't required for this to happen - they just make dynamic discovery a little bit easier

Re: [DOTNET] FormsAuthentication.Signout and browser back button

2002-06-11 Thread Brian Weeres
Thanks for the reply. This will indeed stop the pages from caching: Response.Cache.SetCacheability(HttpCacheability.NoCache); That's not quite what I was looking for. I would like the pages to be cached as long as they are signed in but once they signout I would like to remove them from cache or

Re: [DOTNET] Why is CancelButton special?

2002-06-11 Thread Chris Sells
> Usually a form can be stopped from closing by > handling the event which occurs when cancel button is > clicked . This is possible in VB . I presume it should > be possible in .Net In might be possible in VB.NET, but handling the Cancel button's click event in WinForms does *not* stop the form

Re: [DOTNET] AGAIN: Building a solution with embedded resources

2002-06-11 Thread Jeremy Hopkin
Do you have "copy local" set to true on the refernces properties? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Is this DOTNET list available after 7/1/02 ?

2002-06-11 Thread Jeff Roberts
Thanks ! You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] AGAIN: Building a solution with embedded resources

2002-06-11 Thread Jan Dropczynski
Hi again, I have still my problem with Visual Studio .NET. My solution contain any projects and one of it contain localized embedded .resources files. At build time Visual Studio is building the satelite assemblies for that files in the project's folder but it don't copy that assembly files into

Re: [DOTNET] ADO.NET and Dispose

2002-06-11 Thread Chris Anderson
> > Basically..Am I going overkill on the Dispose methods? > > Not at all. If a class implements IDisposable, that means it > wants to call Dispose the absolute moment you're through. In > the case here, it means database connection resources are > returned to the pool to be used by others. I beli

Re: [DOTNET] Is this DOTNET list available after 7/1/02 ?

2002-06-11 Thread Serdar Kilic
Hi Jeff, It's announced here: -- Kind Regards, Serdar | skilic.com Jeff, said: JR> I noticed that when I search the archives, it says that the list will be retired on 7/1/02. What does this mean ? JR> You can read m

[DOTNET] Is this DOTNET list available after 7/1/02 ?

2002-06-11 Thread Jeff Roberts
I noticed that when I search the archives, it says that the list will be retired on 7/1/02. What does this mean ? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[ADVANCED-DOTNET] Unhandled Exception Management

2002-06-11 Thread Paul Stevens
I am moving this thread here from the DOTNET List, Hope no one minds I have run into e few strange problems when using different methods to handle "unhandled" exceptions I have tried catching all unhandled exceptions in the following two ways 1. Put a try Catch Block around Application.Run 2. U

Re: [DOTNET] NotifyIcon and WinForms

2002-06-11 Thread Mcmullan, Andy (Andrew)
Try calling Activate() on the form. Andy Mc -Original Message- From: Jeff Roberts [mailto:[EMAIL PROTECTED]] Sent: 11 June 2002 14:35 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] NotifyIcon and WinForms I do use Show and Hide, but when I call Show, it only Shows my window in the task ba

[DOTNET] How can I programmatically RESTORE my window?

2002-06-11 Thread Jeff Roberts
When my window is minimized, I want to restore the window to the previous size and location from within my application. In WIN32 I called ShowWindow(SW_RESTORE); Can someone tell me how to do this in c# ? thanks ! You can read messages from the DOTNET archive, unsubscribe from DOTNET, or sub

Re: [DOTNET] ADO.NET and Dispose

2002-06-11 Thread Jeff Fedor
Absolutely true -- even with a handful of users, you'll start getting Max Pool errors. j -Original Message- From: Brad Wilson [mailto:[EMAIL PROTECTED]] Sent: Tue 6/11/2002 9:40 AM To: [EMAIL PROTECTED] Cc: Subject: Re: [DOTN

Re: [ADVANCED-DOTNET] Secure remoting...

2002-06-11 Thread Rui Dias Quintino
You can pass the identity between the two application domains call contexts, you'll need to implement ILogicalThreadAffinative interface for that. There's a simple example of this at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/ frlrfSystemRuntimeRemotingMessagingI

Re: [ADVANCED-DOTNET] Threading is blocking itself or ?

2002-06-11 Thread Greg Reinacker
I'm not sure about the SOAP toolkit you're using, but many toolkits (.NET included) will, by default, limit the number of concurrent HTTP connections to a single endpoint to 2 (this is part of the HTTP 1.1 spec, I believe). So you may be seeing an artificial bottleneck, where all of your requests

Re: [DOTNET] NotifyIcon and WinForms

2002-06-11 Thread Jeff Roberts
I do use Show and Hide, but when I call Show, it only Shows my window in the task bar and does not restore it ! When a user minimizes my window, I enable the NotifyIcon & disable the ShowInTaskbar property of my main form. This displays the icon in the task bar. When a user clicks on the ico

Re: [DOTNET] ADO.NET and Dispose

2002-06-11 Thread Brad Wilson
Chris Anderson wrote: > Basically..Am I going overkill on the Dispose methods? Not at all. If a class implements IDisposable, that means it wants to call Dispose the absolute moment you're through. In the case here, it means database connection resources are returned to the pool to be used by ot

Re: [DOTNET] NotifyIcon and WinForms

2002-06-11 Thread Pierre
You could use Show and Hide of your main form. Pierre > I have a WinForms application that minimizes into the System tray via a NotifyIcon >class. I want to restore my window when the user clicks on the icon in the system >tray back to the size and location it was before it was minimized. I

[DOTNET] NotifyIcon and WinForms

2002-06-11 Thread Jeff Roberts
I have a WinForms application that minimizes into the System tray via a NotifyIcon class. I want to restore my window when the user clicks on the icon in the system tray back to the size and location it was before it was minimized. I don't see any Winforms method to restore the window like th

Re: [DOTNET] Super simple DataAdapter quesiton...

2002-06-11 Thread Blain Timberlake
Huh Okay, here is what I just did. I use EM under my NT permissions. Created a northwind SP, and it failed as expected. I dropped that SP. I used QA, still using my NT permissions, created the same northwind SP, and it worked. This looks like something really really buggy here folks. To

Re: [DOTNET] Repost: SQL Server over the Internet

2002-06-11 Thread Greg Reinacker
Well, if it was my database, and I had my business data in it, I wouldn't expose my SQL Server directly to the internet. So given that, I'd front the SQL server with either a web service or a remote object. The SQLXML web service is a cool idea, and performs well in certain scenarios, but again

[DOTNET] ADO.NET and Dispose

2002-06-11 Thread Chris Anderson
Hi I just would like to know what the most appropriate techniques are for Disposal of ADO.NET objects ie, consider the following code (VB): (It just creates and returns a dataset) Public Function GetDataSet() As DataSet Dim conn As New SqlConnection(connString) Dim cmdSelect As N

Re: [DOTNET] Super simple DataAdapter quesiton...

2002-06-11 Thread Blain Timberlake
Certainly reproducible (on both our dev machines here anyway). In EM for SQL, go into Northwind and create a new SP: CREATE PROCEDURE [dbo].[ListCustomers] AS select * from customers GO Create an SQL user, give them access to that database and exec permissions on that SP. Now open Visual Studi

Re: [DOTNET] User auth. using Remoting/TCP

2002-06-11 Thread Greg Reinacker
Not by default; identity information is not propogated across the remoting channel. You could either build this transparently into the channel (the easiest way is probably building a pair of channel sinks) or you could do it a bit more explicitly using the CallContext (easier to implement, but mu

Re: [DOTNET] Super simple DataAdapter quesiton...

2002-06-11 Thread Greg Reinacker
I've seen this same behavior; unbelievably frustrating. I never did completely track it down, but here's what I was doing and how I got around it. I only saw the problem when I created SQL Server stored procedures through the VS.NET designer. In VS.NET, I was connecting to the database as a non

Re: [DOTNET] Super simple DataAdapter quesiton...

2002-06-11 Thread Mitch Denny
Blain, Can you reproduce step by step using the Northwind or Pubs databases or is the behaviour specific to the database that you are are working with? Make sure you list what to do step by step because just following your instructions before, there were a few ambiguities. The other thing is tha

Re: [DOTNET] Async programming in .Net

2002-06-11 Thread Majercak Ivan
Hi, What about downloading in chunks? Not quite sure about that, but with System.IO.Filestream object you can do random access within the file... Another option would be to look around the web for components, which do the same thing with some handshake etc. - go google go :-) Bye, Ivan -O

Re: [DOTNET] Handling Unhandled Exceptions

2002-06-11 Thread Paul Stevens
I am really doing something wrong here, Two scenarios, in a Forms Sub New I Throw an exception, my unhandled exception event handler catches this and everything is just fine, now I take the same exception and throw it in a buttons Click event and nothing nada Zip, the exception is reported and the

Re: [DOTNET] Super simple DataAdapter quesiton...

2002-06-11 Thread Blain Timberlake
Am I not getting a response because: A) This is a bad question and I'm just doing something idiotic B) It's a flakey behaviour no one else has seen C) There is no answer Or D) None of the above ??? =Blain -Original Message- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAI

Re: [DOTNET] Forcing data bound controls to be populated before showing form

2002-06-11 Thread Jay Glynn
If you used the visual designer, then the bindings are set in the InitilizeComponent method that is called by the forms ctor. they have the syntax of controlname.Bindings.Add(property name, data source, data source path). You can move these somewhere else, as long as it is after InitilizeCompone

Re: [DOTNET] Why is CancelButton special?

2002-06-11 Thread george antony
Usually a form can be stopped from closing by handling the event which occurs when cancel button is clicked . This is possible in VB . I presume it should be possible in .Net You got to set Cancel = -1 in the code if I remember correctly in VB. --- Ian Griffiths <[EMAIL PROTECTED]> wrote: > As

Re: [ADVANCED-DOTNET] Strange tab order behavior

2002-06-11 Thread Ian Griffiths
Yikes! I've never seen that before. Although the behaviour you describe sounds somewhat reminiscent of what Windows Forms validation does - are you using validation in this application? So can I ask you to clarify a few things? When you say 'custom controls', do you mean a control that derives

Re: [DOTNET] Why is CancelButton special?

2002-06-11 Thread Ian Griffiths
As far as I can tell the purpose of having a CancelButton is to close the form for you automatically whatever. If you don't want this behaviour don't assign a CancelButton! By the way having the DialogResult as None is handled as a special case. If you set the DialogResult to be anything else t

Re: [DOTNET] Problems to authentificate with client certificate (IIS)

2002-06-11 Thread Thomas Kammer Have
Hello. Perhaps you need to add your CA server to the list of 'Trusted Root Certification Authorities'. To do this start certmgr from a prompt or Choose Tools->Internet Options->Content->Publishers. If you use the Win2K CA you may add choose to add the Test CA to the list when you chose to downlo

Re: [DOTNET] Read only behaviour for a DataTable

2002-06-11 Thread Ian Griffiths
The point being that the DataSet is *always* disconnected. An ADO recordset is, by default, attached to the database, so the notion of read-only was rather more important. With a DataSet any changes that happen to be made will not actually have any long term effect unless something explicitly pu

Re: [ADVANCED-DOTNET] Threading is blocking itself or ?

2002-06-11 Thread Ian Griffiths
"Ben Kloosterman" <[EMAIL PROTECTED]> wrote: > I was going to disagree with Ian , > > While threads are expensive when traffic is going to block on disk > or network traffic I always think Threads are a good solution. You > can minimise the overhead by creating your own threadpool . It wasn't th

[ADVANCED-DOTNET] Security in .NET framework

2002-06-11 Thread Dhamayanthi
Security Vulnerability in .Net Framework and the assemblies - what kind of protective mechanism againts network threats and exploits usage is implemented? (Reference to literature, preferably some support documentation, weblinks will also help) Thanks & Regards, Dhamayanthi You can read mess

Re: [DOTNET] Array on struct

2002-06-11 Thread Jose M. Nobre
In one way or another, u'll always need to "construct" the structure, so the ctor with a dummy parameter doesn't seams too bad :/ On the other hand, once b and c are ushort[], its bounds are implicitly checked If u need to ensure that b and c aren't changed (e.g. mystruct.b = null;), the

[ADVANCED-DOTNET] Server Push Technology in .NET

2002-06-11 Thread Dhamayanthi
In DCOM environment, we can implement a callback architecture using technologies similar to connection points. Is there any feasibility of such an architecture in .NET "over the web"? Is there any Server Push Technology available in .NET? Thanks & Regards, Dhamayanthi You can read messages fr

[DOTNET] Async programming in .Net

2002-06-11 Thread PrashanthG
Hi, I want to implement Async communication in .Net i.e. I need to make a WebService call on Internet which will download a big file. Can somebody suggest me the better option of the following two methods. 1.Having a new thread for making the Web Service call (multi threading). 2.Using the Asyn

Re: [DOTNET] UI for Windows service

2002-06-11 Thread Paul Stevens
Look I Don't mind the occasional punting of a book on the list but at least learn from other authors on this list DON'T Simply Say there is an example in my book, At least help out and then Add a By the way its in my book too, the message you posted is Nothing But RUDE and Extremely of topic, Pa

[DOTNET] reading application configuration files for Windows application

2002-06-11 Thread george antony
Hello I need to read a connectionstring value for my windows application from a config file. When the configuration changes it should take effect immediately. How do I do this ? Should I be implementing a IConfigurationSectionHandler ? Can someone help . thanks George __

Re: [ADVANCED-DOTNET] Secure remoting...

2002-06-11 Thread Ben Kloosterman
This is a tough choice you always have to make . Choice 1 - Use fast binary tcp connection , in which case you have to do the security yourself. eg send a hash of the userID with every request if you want high security. Choice 2 - use non binary connection and .NET can do it for you . EJB 1.3

Re: [ADVANCED-DOTNET] Threading is blocking itself or ?

2002-06-11 Thread Ian Griffiths
Would I be right in assuming that MSSOAPLib is a COM type library that you are using via interop? This is a somewhat strange way to be doing SOAP from .NET, given that it has a whole bunch of built-in support for making SOAP calls... Was this project ported from VB6? But if it is, do you know w

[DOTNET] Asp.net X Webcam

2002-06-11 Thread Ricardo Barros Figueira
Good morning Friends, How to use one Webcam with ASP.NET ? Thanks Best regards, Ricardo Figueira (RBFIGUEIRA) You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] enumerating a collection while adding more items to it

2002-06-11 Thread Chris Anderson
heh..yeah that would be easier Thanks Jeremy (hmm..must catch up with you OTL ... it's been a long time ) Merak > -Original Message- > From: Jeremy Hopkin [mailto:[EMAIL PROTECTED]] > Sent: 10 June 2002 16:48 > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] enumerating a collection while

[DOTNET] Compiler Error Message: CS1607: Assembly generation -- Referenced assembly 'empDate' is a localized satellite assembly

2002-06-11 Thread PMOH (Peter Mohr)
Can anyone tell my why my web service returns this ? Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS160

Re: [DOTNET] intercepting sound volume to soundcard

2002-06-11 Thread Miguel Ángel Chacón
The initial step is to interop with DirectShow from DirectX 8. But i´m not sure you can do this. I can´t provide more info. -Mensaje original- De: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]] En nombre de franklin gray Enviado el: lunes, 10 de junio de 2002 22:04 Par