Click here to Skip to main content
15,894,405 members
Articles / Programming Languages / C#

Setting Exchange Folder Permissions Remotely

Rate me:
Please Sign up or sign in to vote.
4.90/5 (27 votes)
3 Feb 20058 min read 66.9K   1.8K   33  
A way to remotely set permissions on folders in the Exchange Server using an Exchange SDK-based COM in-proc wrapped into a .NET class and exposed to a client with Remoting technique.

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe assembly's progress.
The file is located at ServiceLog.txt.
Installing assembly 'c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe'.
Affected parameters are:
   logtoconsole = true
   assemblypath = c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe
   logfile = ServiceLog.txt
   showcallstack = 
Installing service ESClientPermissionService...
Service ESClientPermissionService has been successfully installed.
Creating EventLog source ESClientPermissionService in log Application...

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe assembly's progress.
The file is located at ServiceLog.txt.
Committing assembly 'c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe'.
Affected parameters are:
   logtoconsole = true
   assemblypath = c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe
   logfile = ServiceLog.txt
   showcallstack = 

The Commit phase completed successfully.

The transacted install has completed.

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe assembly's progress.
The file is located at ServiceLog.txt.
Installing assembly 'c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe'.
Affected parameters are:
   logtoconsole = true
   assemblypath = c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe
   logfile = ServiceLog.txt
   showcallstack = 

An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: No mapping between account names and security IDs was done
   at System.ServiceProcess.ServiceProcessInstaller.GetAccountSid(String accountName)
   at System.ServiceProcess.ServiceProcessInstaller.Install(IDictionary stateSaver)
   at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
   at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
   at System.Configuration.Install.AssemblyInstaller.Install(IDictionary savedState)
   at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
   at System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)

The Rollback phase of the installation is beginning.
See the contents of the log file for the c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe assembly's progress.
The file is located at ServiceLog.txt.
Rolling back assembly 'c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe'.
Affected parameters are:
   logtoconsole = true
   assemblypath = c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe
   logfile = ServiceLog.txt
   showcallstack = 

The Rollback phase completed successfully.

The transacted install has completed.

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe assembly's progress.
The file is located at ServiceLog.txt.
Installing assembly 'c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe'.
Affected parameters are:
   logtoconsole = true
   assemblypath = c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe
   logfile = ServiceLog.txt
   showcallstack = 
Installing service ESClientPermissionService...
Service ESClientPermissionService has been successfully installed.
Creating EventLog source ESClientPermissionService in log Application...

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe assembly's progress.
The file is located at ServiceLog.txt.
Committing assembly 'c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe'.
Affected parameters are:
   logtoconsole = true
   assemblypath = c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe
   logfile = ServiceLog.txt
   showcallstack = 

The Commit phase completed successfully.

The transacted install has completed.

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe assembly's progress.
The file is located at ServiceLog.txt.
Installing assembly 'c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe'.
Affected parameters are:
   logtoconsole = true
   assemblypath = c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe
   logfile = ServiceLog.txt
   showcallstack = 

An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: No mapping between account names and security IDs was done
   at System.ServiceProcess.ServiceProcessInstaller.GetAccountSid(String accountName)
   at System.ServiceProcess.ServiceProcessInstaller.Install(IDictionary stateSaver)
   at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
   at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
   at System.Configuration.Install.AssemblyInstaller.Install(IDictionary savedState)
   at System.Configuration.Install.Installer.Install(IDictionary stateSaver)
   at System.Configuration.Install.TransactedInstaller.Install(IDictionary savedState)

The Rollback phase of the installation is beginning.
See the contents of the log file for the c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe assembly's progress.
The file is located at ServiceLog.txt.
Rolling back assembly 'c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe'.
Affected parameters are:
   logtoconsole = true
   assemblypath = c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe
   logfile = ServiceLog.txt
   showcallstack = 

The Rollback phase completed successfully.

The transacted install has completed.

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe assembly's progress.
The file is located at ServiceLog.txt.
Installing assembly 'c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe'.
Affected parameters are:
   logtoconsole = true
   assemblypath = c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe
   logfile = ServiceLog.txt
   showcallstack = 
Installing service ESClientPermissionService...
Service ESClientPermissionService has been successfully installed.
Creating EventLog source ESClientPermissionService in log Application...

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe assembly's progress.
The file is located at ServiceLog.txt.
Committing assembly 'c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe'.
Affected parameters are:
   logtoconsole = true
   assemblypath = c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe
   logfile = ServiceLog.txt
   showcallstack = 

The Commit phase completed successfully.

The transacted install has completed.

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe assembly's progress.
The file is located at ServiceLog.txt.
Installing assembly 'c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe'.
Affected parameters are:
   logtoconsole = true
   assemblypath = c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe
   logfile = ServiceLog.txt
   showcallstack = 
Installing service ESClientPermissionService...
Service ESClientPermissionService has been successfully installed.
Creating EventLog source ESClientPermissionService in log Application...

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe assembly's progress.
The file is located at ServiceLog.txt.
Committing assembly 'c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe'.
Affected parameters are:
   logtoconsole = true
   assemblypath = c:\exchpubfolderclientpermission-09-01-2005\_release\server\srvhost.exe
   logfile = ServiceLog.txt
   showcallstack = 

The Commit phase completed successfully.

The transacted install has completed.

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
Israel Israel


  • Nov 2010: Code Project Contests - Windows Azure Apps - Winner
  • Feb 2011: Code Project Contests - Windows Azure Apps - Grand Prize Winner



Comments and Discussions