To set the path to a log file add a reference to to your project, add using statement and set the FileLogger. If you do not see the log file most likely there is not enough permissions for creating the file. Your application must have permissions to create, delete and move (rename) files in the folder where the log is being written. If you experience any problems with Core API examine the log file first. By default, the log file is created in the folder where your application resides. IT Hit Map WebDAV Drive logs all requests and responses as well as exceptions to a log file.
For 64-bit Windows use files located in \SDK\圆4\ folder. If you run 32-bit Windows, with your application you must deploy all files located in \x86\Core\ folder. In this case, your application will run when user log-ins to the computer. Alternatively you can add path to your application under the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run If you would like your drive to be mounted each time computer boots usually you will have to create a Windows Service application. Note that when an instance of ActiveDrive drive is destroyed the drive is unmounted from the file system. Pass drive letter, WebDAV server URL and login credentials to ActiveDrive class constructor:ĪctiveDrive drive = new ActiveDrive('z', new Uri(""), "User1", "pwd")
Create an instance of ActiveDrive class and call Mount method.
The license should be set each time you run your application, before drive mounting.
Use this ID when uninstalling the driver with Management. Pass unique application ID to InstallDriver method. Management.InstallDriver("MyDriveMappingAppID")
The BuildMsi sample provided with the SDK demonstrates how to use the merge modules to build x86 and 圆4 installation files.Īfter installing your application (or during custom action execution) you can set the license using Service API via IDriveServiceManager interface so that the registration wizard do not appear: using It does not add any shortcuts to the Start / All Programs menu or desktop. The merge module installs file system driver, Windows service, Tray application and Windows Explorer Shell Extension on a target machine. The IT Hit Map WebDAV Drive SDK provides the merge module that could be used in your setup application.
RemoveDrive method passing drive letter as a parameter: manager.RemoveDrive('z') Using the Merge Module in Your Setup Application To unmount the drive, call IDriveServiceManager. In case of domain authentication, specify the user name in the DOMAIN\Login format. Pass drive letter, WebDAV server URL and login credentials to DriveSettings constructor. IDriveServiceManager manager = DriveManager.GetManager()
To mount a new drive create instance of DriveSettings class, get IDriveServiceManager interface and call AddDrive method: DriveSettings driveSettings = new DriveSettings('z', Your application folder must also contain and. To use Service API the IT Hit Map WebDAV Drive (or merge module, see below) must be installed on the computer where Service API is used.Īdd a reference to and to your. Net Service API provided by IT Hit Map WebDAV Drive you can mount and unmount drives to your local file system. Both SDK and license file could be downloaded here. If you experience any problems the first thing to do is to examine the logfile called .log created in C:\Windows\Temp folder. To start using the API, you will need the Map WebDAV Drive SDK and the evaluation license file. The schema below shows components of Map WebDAV Drive: Net Service API, include the Map WebDAV Drive to your installation program or build your own interface for drive mapping. With Map WebDAV Drive, you can programmatically mount a drive using the.