Re: [ADVANCED-DOTNET] Hi

2005-07-21 Thread Chris Day
The file is protected with the password ghj001. === This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com

Re: [ADVANCED-DOTNET] Programmatically installing "File and Print Sharing"

2005-07-17 Thread Chris Day
ROTECTED] -Original Message- From: Chris Day [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 13, 2005 5:09 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Programmatically installing "File and Print Sharing" Use the ServiceController class to get a list of ser

Re: [ADVANCED-DOTNET] Need advice on my Theory of Two way communication Remoting

2005-07-14 Thread Chris Day
Yeah this should be fine. Basically you are opening a HttpWebRequest and keeping it alive so that you can have a connection between IIS and Client B. The only issue I can see with this is does it support two-way communication? If it does than everything is sweet, otherwise it may prove expensi

Re: [ADVANCED-DOTNET] Programmatically installing "File and Print Sharing"

2005-07-13 Thread Chris Day
Use the ServiceController class to get a list of services to see if "Server" has been installed. If it hasn't then you will need to create an unattended setup install file and use the sysocmgr utility to install the required components. For this utility you probably want to start at http://support

Re: [ADVANCED-DOTNET] Need advice on my Theory of Two way communication Remoting

2005-07-13 Thread Chris Day
Let me try and summarise what I think you are saying. There are three actors - ClientA, ClientB and IISServer The idea is that ClientA and ClientB want to talk to each other but for some reason they can't talk to each other directly but they can talk to IISServer. Your proposal is as follows 1.

Re: [ADVANCED-DOTNET] httpHandler question

2005-05-08 Thread Chris Day
Do you get an InnerException? This may explain what the error in the child request is. Chris -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Francesco Sent: Monday, 9 May 2005 11:45 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM

Re: [ADVANCED-DOTNET] Dynamically Implementing an interface at runtime

2005-05-01 Thread Chris Day
The other option is a little more work but it wouldn't require a MethodInfo.Invoke for every call. Load the IUtility type and the utility object then using Reflection.Emit create a new class derived from the utility object inheriting from the IUtility interface. If the method signatures match it

Re: [ADVANCED-DOTNET] Session maintanance

2005-05-01 Thread Chris Day
Similar to Word you could create a temporary file whenever someone starts a new session, and depending on requirements update that file with details of the session periodically. Then if the user ends the session you delete the file. Then on start up the application checks for these files, if it f

Re: [ADVANCED-DOTNET] Invisible text in TextArea?

2005-04-20 Thread Chris Day
Do you have a simplified version of the problem you can send? Just paste it inline as you can't send attachments. -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Baudouin, Andrew Sent: Thursday, 21 April 2005 8:06 AM To: ADVA

Re: [ADVANCED-DOTNET] UI thread problems - further insight

2005-04-20 Thread Chris Day
be required to be used in any number of ways by different customers. regards -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Behalf Of Chris Day Sent: 20 April 2005 01:02 To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET

Re: [ADVANCED-DOTNET] UI thread problems - further insight

2005-04-19 Thread Chris Day
Is there a reason why you can't invoke a delegate on the UI thread (from the background thread) which constructs and displays the modeless form? private void myBackgroundThread(Form mainForm) { // do stuff If (someCondition) { mainForm.Invoke(new OpenModelessFormDelegate(OpenMod

Re: [ADVANCED-DOTNET] UI thread problems

2005-04-13 Thread Chris Day
I've had this issue before, where the loading of an STA threaded COM component causes the whole process to pause in a wait state indefinitely. The way I solved this was to create a new Thread, make it STA threaded then point it to a method which then loads the COM component. This solved the probl

Re: [ADVANCED-DOTNET] Writing html directly to a placeholder

2005-04-11 Thread Chris Day
Just put the results of the call to the function plus the extra html directly into the placeholder Text property. myPlaceholder.Text = "" Regards, Chris -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Mark Gregory Sent: Mond

Re: [ADVANCED-DOTNET] MessageQueue and Thread

2005-03-23 Thread Chris Day
Checking the code for MessageQueue in Reflector is looks like it is using overlapped I/O (System.Threading.Overlapped), which uses completion ports. Chris -Original Message- From: Mike Woodring [mailto:[EMAIL PROTECTED] Sent: Thursday, 24 March 2005 10:54 AM To: ADVANCED-DOTNET@DISCUSS.DE

Re: [ADVANCED-DOTNET] PowerPoint Add-In

2005-03-10 Thread Chris Day
Powerpoint and Word are pretty similar, so... http://www.codeproject.com/csharp/WordAddInPart1.asp Chris -Original Message- From: Robert Pohl [mailto:[EMAIL PROTECTED] Sent: Thursday, 10 March 2005 9:41 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] PowerPoint Add-I

Re: [ADVANCED-DOTNET] Updating of Form on every click

2005-03-01 Thread Chris Day
Create a member variable of the type of the form you are popping up, then when you need to update it check if it is null, if so create and display it otherwise just update the form that already exists. Chris -Original Message- From: Adnan Siddiqi [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: [ADVANCED-DOTNET] System global Mutex

2005-03-01 Thread Chris Day
Also another gotcha...especially note win2k On MSDN (October 2001) this restiction is stated into the remarks section: Terminal Services: The name can have a "Global\" or "Local\" prefix to explicitly create the object in the global or session name space. The remainder of the name can contain an

Re: [ADVANCED-DOTNET] Foreign key relation in which foreign key i s null

2005-02-27 Thread Chris Day
Create a new table AB which stores a relationship between table A and table B, then create foreign key relationships between the columns in AB and the respective columns in table A and B. Then when you select out you can left join table A to table AB and if there is a null then you know there is n

Re: [ADVANCED-DOTNET] Iterating all threads in an ApplicationCont ext

2005-02-08 Thread Chris Day
Have you tried Process.Threads? http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdiagnosticspro cessclassthreadstopic.asp -Original Message- From: Jekke Bladt [mailto:[EMAIL PROTECTED] Sent: Wednesday, 9 February 2005 7:10 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [

Re: [ADVANCED-DOTNET] ServiceController status returning wrong state?

2004-08-26 Thread Chris Day
Google and ye shall find, check the last post. http://tinyurl.com/46gka > -Original Message- > From: Blain T Timberlake [mailto:[EMAIL PROTECTED] > Sent: Thursday, 26 August 2004 12:28 AM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] ServiceController status > returning wrong

Re: [ADVANCED-DOTNET] ServiceController status returning wrong state?

2004-08-24 Thread Chris Day
There are many statuses in that enumeration, what status do these services actually have? Member name Description ContinuePending The service continue is pending. Paused The service is paused. PausePendingThe service pause is pending. Running The servic

Re: [ADVANCED-DOTNET] Recompiling ASPX Pages

2004-08-12 Thread Chris Day
> -Original Message- > From: Kristoffer Sheather [mailto:[EMAIL PROTECTED] > Sent: Friday, 13 August 2004 2:34 PM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] Recompiling ASPX Pages > And exactly what is he supposed to be compiling? A detailed > description of the ASP.net dy

Re: [ADVANCED-DOTNET] Recompiling ASPX Pages

2004-08-12 Thread Chris Day
The easy solution is to put your database connection string into the section of the Web.config file, then read it in from there using System.Configuration.ConfigurationSettings.AppSettings("ConnectionString ") (where you named the setting ConnectionString for example). This means if you ever want

Re: [ADVANCED-DOTNET] Large solutions and references

2004-08-10 Thread Chris Day
> Am I going about this the right way? Does anyone have real > world experience working with a solution this large with lots > of cross subsystem dependencies? Any insight on the subject > is appreciated. We just had the split projects, each person built their own then used file references.

Re: [ADVANCED-DOTNET] [E500] [ADVANCED-DOTNET] Quick String question

2004-07-08 Thread Chris Day
Also you might want to put it all into one transaction. The option is to write it out to a file and then bulk insert it. Chris > -Original Message- > From: Ivan Towlson [mailto:[EMAIL PROTECTED] > Sent: Thursday, 8 July 2004 9:30 PM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTN

Re: [ADVANCED-DOTNET] how to get current installed .NET Framework path.

2004-07-05 Thread Chris Day
System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory() > > I'm looking for .NET Framework installation path using which i can > > execute InstallUtil.exe from setup.exe and install the > Windows NT Service. > > Is there anyone knows how to get full .NET installation > path and

Re: [ADVANCED-DOTNET] Large Solutions (100 projects) and Team Development with VS.NET

2004-06-03 Thread Chris Day
As long as the pdb and the source file is available from somewhere you can set break points wherever you like. >From the unstable's solution vs.net open the stable source file, set break point where you want it to be, debug solution and voila(!) execution will stop at the break point. Chris > --

Re: [ADVANCED-DOTNET] Replacing web service components

2004-05-26 Thread Chris Day
This article contains some "best practice" issues when it comes to versioning web services it won't help with your issue but it may help with the "bigger" concerns! http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservi ce/html/service04032002.asp > -Original Message- >

Re: [ADVANCED-DOTNET] Generic connection string for MSSQL, JET, ODBC using OleDbConnection?

2004-05-18 Thread Chris Day
> -Original Message- > From: Josh Blair [mailto:[EMAIL PROTECTED] > I want the wizard to be flexible and allow them choose from > MSSQL, JET, and generic ODBC sources. Can OleDb in ADO.NET > support this type of flexibility or will I need to > System.Data.SqlClient, System.Data.OleDb,

Re: [ADVANCED-DOTNET] MSMQ

2004-05-12 Thread Chris Day
> -Original Message- > From: Saravana Prasad S [mailto:[EMAIL PROTECTED] > The problem is the reader thread can not keep sending > millions of messages to MSMQ as there is a memory limit. I > treid to send as mamy messages as possible to msmq. But after > sending two and a half

Re: [ADVANCED-DOTNET] MSMQ

2004-05-11 Thread Chris Day
I'm not sure if this works, and it is inefficient but call GetEnumerator() on the MessageQueue class then iterate though each message incrementing a counter, and voila you have the number of messages. I'm not sure if iterating is going to pull the messages off, or that it will be quick! If you ju

Re: [ADVANCED-DOTNET] Reduce .NET socket connect timeout?

2004-05-06 Thread Chris Day
The other option is to call BeginConnect then Thread.Sleep your timeout value and then check if the callback was successful if not throw an exception, and the call back should swallow the connection if eventually successful or swallow an exception if it can't connect. > -Original Message-

Re: [ADVANCED-DOTNET] parsing a java webservice

2004-03-09 Thread Chris Day
One thing you may want to try is that once you have gotten to the start of the document pass the stream into a BinaryReader. I've found that StreamReaders really don't like binary data in the stream! StreamReader sr = new StreamReader(someXmlStream); // read through to word doc BinaryReader br =

Re: [ADVANCED-DOTNET] Folder Browse Dialog in Setup Project

2004-03-05 Thread Chris Day
Or go for P/Invoke with SHBrowseForFolder, however check the newsgroups because I believe there were some issues with this. > -Original Message- > From: Frans Bouma [mailto:[EMAIL PROTECTED] > Sent: Friday, 5 March 2004 1:31 AM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] Fol

Re: [ADVANCED-DOTNET] Transparent Persistence [WAS: Web Services, Remoting and Coupling]

2004-02-17 Thread Chris Day
> > There is another style of persistance which is to persist the > > object via some sort of serialisation and then record any > > changes in a log, and then taking full snapshots of the > > system every now and then. > > > > This is the basis of the prevayler concept. Having played > > with i

Re: [ADVANCED-DOTNET] Transparent Persistence [WAS: Web Services, Remoting and Coupling]

2004-02-17 Thread Chris Day
> Just in case you do not know (like most people) there is > exactly ONE system on the market that makes transparent > persistence, and this is in the java world. This is done by There is another style of persistance which is to persist the object via some sort of serialisation and then record

Re: [ADVANCED-DOTNET] Ensuring unique keys from multiple DataSets when updating

2004-02-04 Thread Chris Day
There is a nice little article about this on msdn http://msdn.microsoft.com/library/default.asp?url=/msdnmag/issues/03/07/ DataPoints/toc.asp However there is a caveat, I couldn't get the new rows to merge back into the client-side dataset without a constraint exception. To get around this I ju

Re: [ADVANCED-DOTNET] Specifying reference assemblies for ilasm.exe

2004-02-04 Thread Chris Day
Try adding this code to the top of the assembly where the rest of the '.extern's should be .assembly extern System.Data { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. .ver 1:0:5000:0 } Or you could use ildasm to look at an already compiled assembly and just copy what you see there

Re: [ADVANCED-DOTNET] How to create an enumeration that exposes formats

2003-10-26 Thread Chris Day
It's easy just use the XML compliant and () instead! > -Original Message- > From: Jeff Varszegi [mailto:[EMAIL PROTECTED] > Sent: Saturday, 25 October 2003 12:29 AM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] How to create an enumeration > that exposes formats > > > One

Re: [ADVANCED-DOTNET] Do properties need a 'holder' keyword?

2003-10-22 Thread Chris Day
I know that when using properties there are a lot of read only (get accessor only) properties which would be useful to have auto-generated for me. Think of the Count property in a collection. Internally it's read/write but externally the property has a get accessor only. Having a short-hand way

Re: [ADVANCED-DOTNET] .NET P2P Network Programming

2003-09-02 Thread Chris Day
Have a look at http://www.dotnetremoting.cc/DisplayPage.aspx?key=OSR_BiDirTcpChannel This could take care of the NAT problem. I'm sure there is another project that has the same idea, but I can't find a link to it at the moment. Another one to look at, that looks like it is a bit more complete i

Re: [ADVANCED-DOTNET] Custom ServerTransportSink

2003-08-25 Thread Chris Day
[EMAIL PROTECTED] > Sent: Monday, 25 August 2003 11:44 AM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] Custom ServerTransportSink > > > Chris Day -- did you mean "is incorrect" when you say > "is...WRONG!"? That is, did you mean that Brant Fa

Re: [ADVANCED-DOTNET] Custom ServerTransportSink

2003-08-24 Thread Chris Day
That remoting ignore's customErrors tag is in fact WRONG! People may have tried it but put the tag in the wrong place. It should be like this HTH Chris > -Original Message- > From: Brant Fallin [mailto:[EMAIL PROTECTED] > Sent: Saturday, 23 August 2003 12:56 AM > To: [EMAIL PRO

Re: [ADVANCED-DOTNET] Remoting on the new Framework

2003-07-28 Thread Chris Day
> > > > > > > Change this line to and see if that works. Chris

Re: [ADVANCED-DOTNET] Remoting on the new Framework

2003-07-24 Thread Chris Day
Can you provide a simplified version of your app + .config files? Setting impersonate=true is okay unless you want anonymous access from the client to the server. > -Original Message- > From: JC Oberholzer [mailto:[EMAIL PROTECTED] > Sent: Thursday, 24 July 2003 6:49 PM > To: [EMAIL PROT

Re: [ADVANCED-DOTNET] remoting exception not propagating to the client

2003-06-24 Thread Chris Day
What is your whole .config file? > -Original Message- > From: Rakesh Ranjan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 24 June 2003 6:18 PM > To: [EMAIL PROTECTED]; Chris Day > Subject: Re: remoting exception not propagating to the client > > > I have tried

Re: [ADVANCED-DOTNET] remoting exception not propagating to the client

2003-06-24 Thread Chris Day
oting or web services? You subject > says remoting, but the description of the error you're seeing > sounds like web services. > > -Mike > DevelopMentor > http://staff.develop.com/woodring > > > > > > -Original Message- > > From: Mode

Re: [ADVANCED-DOTNET] remoting exception not propagating to the client

2003-06-23 Thread Chris Day
Your .config file should look like > -Original Message- > From: Rakesh Ranjan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 24 June 2003 3:28 AM > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] remoting exception not propagating > to the client > > > I have a server runn