Re: [ADVANCED-DOTNET] Automating Windows Service Installation

2003-09-10 Thread Muthuraj Velayutham
I had a hardcoded value in my InitializeComponent Sub for my FileSystemWatcher Path. So it never even went that far to OnStart. But inside my "OnStart" I am reading the path from a xml file and set the path of FileSystemWatcher. The service was always looking for the hardcoded directory which neve

[ADVANCED-DOTNET] Custom CodeAccessSecurityAttribute

2003-09-10 Thread Squires, Damon
I am having the following issue with a custom attribute I've created. I have inherited from CodeAccessSecurityAttribute and I receive this error: C:\Custom\TestCustomPrincipal\TestSecuredObject.cs(23): Error emitting XASecurityPermissionAttribute' attribute -- 'Failed to load assembly Framework.

Re: [ADVANCED-DOTNET] Automating Windows Service Installation

2003-09-10 Thread Streno, Robert
Oh yeah, I've seen that a lot. Put error handling in your "Start" and constructor to log to event log (or to a file) during startup. Generally this error means that an exception was thrown inside your service, but since there's no console (or windows) available, there was no place to show the exc

Re: [ADVANCED-DOTNET] Automating Windows Service Installation

2003-09-10 Thread Muthuraj Velayutham
Hi Richard, I did use the Customer Action Install/Uninstall combination to install mywinservice.exe. I change my Custom Action Install/Uninstall option to Install the Primary Output from mywinservice.exe, that sort of helped me to get around this problem. Now I can install/reinstall my service wi

Re: [ADVANCED-DOTNET] Remoting over different routers

2003-09-10 Thread Kamen Lilov
Will, What do you mean "on a different router"? A router is a generic term for a device that dispatches network traffic and possibly does other network-related tasks. Two specific issues that might be affecting you are: A) firewall functionality turned on in the router (i.e. one of the subnets c

[ADVANCED-DOTNET] Remoting over different routers

2003-09-10 Thread Will
I have an application with a client and server that communicate via remoting. The client passes its ObjRef to the server. Later on, the server calls the client back. This works great when both computers are on the same router, but when they are on different routers, the server isn't able to call th

Re: [ADVANCED-DOTNET] DllImport and Declara

2003-09-10 Thread J. Merrill
The first is declared "shared"; the second is not. I wonder if that matters -- are you calling both using someinstance.NetQueryDisplayInformation, or are you calling the shared one with classname.NetQueryDisplayInformation ? Good luck. At 08:57 AM 9/10/2003 +0200, Sean Hederman wrote >Sorry ab

Re: [ADVANCED-DOTNET] COM+ Caching

2003-09-10 Thread Avi Ben-Menahem
Regarding the second part of your question (JMX), you can use WMI (System.Management & System.Management.Instrumentation) at a low level and EIF (Enterprise Instrumentation Framework) at a high level. Avi -Original Message- From: Moderated discussion of advanced .NET topics. [mailto:[EMA

Re: [ADVANCED-DOTNET] Automating Windows Service Installation

2003-09-10 Thread James Geall
you may want to try msizap to remove all references to the install. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/m sizap_exe.asp we have had success with this, but be careful it does have switches to kill all msi installed applications :S James -Original Messa

Re: [ADVANCED-DOTNET] DllImport and Declara

2003-09-10 Thread Sean Hederman
Sorry about posting my previous on an old thread. Okay, here's my updated problem. Ideally I'd like to use DllImport. However, have a look at the following two declares: _ Public Shared Function NetQueryDisplayInformation( ByVal p_sServerName As String, ByVal p_iLevel As Integer, ByVal p_iIndex A

Re: [ADVANCED-DOTNET] Automating Windows Service Installation

2003-09-10 Thread Hein, Richard
I have had these problems before myself. Have you added a custom action for the uninstall action? If not, be sure to add one. Make sure to check the event logs for any MSI errors or warnings as well. You say you "tried" to uninstall the service using installutil /u. Does that mean the attemp

Re: [ADVANCED-DOTNET] COM+ Caching

2003-09-10 Thread Avi Ben-Menahem
It has the same functionality is the HttpRuntime.Cache ++, you can write your own expiration policies, scavenging algorithms implementation, etc. The best feature is that you can plug in your own storage implementation in addition to the 3 provided. Regards, Avi -Original Message- From:

Re: [ADVANCED-DOTNET] Why can't I call C and managed C functions at the same time?

2003-09-10 Thread Keith Hill
I know this can be done. Do you have a "main" function declaration in your program e.g.: int main(int argc, char** args) or some variant of the above. -- Keith PS. You might want to check out the following URL: http://support.microsoft.com/?id=814472 -Original Message- From: Akshay

Re: [ADVANCED-DOTNET] Automating Windows Service Installation

2003-09-10 Thread Keith Hill
You could simplify the one line to: using System.Runttime.InteropServices; using System.IO; psi.FileName = Path.Combine(RuntimeEnvironment.GetRunTimeDirectory(), "installutil.exe"); -- Keith -Original Message- From: Paulo Sacramento [mailto:[EMAIL PROTECTED] Sent: Monday, September 08,