EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Running VDisk as Windows service

Posted: 10/14/2008 09:46:48
by Khayralla AL-Athari (Standard support level)
Joined: 09/23/2008
Posts: 75

Hi all

I convert the Mounter sample from a windows application to a windows service.
When this service is installed and started. I cann't see the virtuall drive. Howerver, when I run it as a console application every thing is fine.
this is the starting point.
public partial class MasterService : ServiceBase

        public static void Main()
            MasterService ServicesToRun = new MasterService();
            if (Environment.UserInteractive)//run as Consol application
                Console.WriteLine("Press any key to stop program");
            else                          )//run as Windows Service

all ininializtion are coded in onStart().
any help?


Posted: 10/14/2008 09:51:55
by Eugene Mayevski (Team)

"I don't see" doesn't explain the problem. Where do you expect to see it? If you are talking about Windows Explorer, please read the forum archive, this topic was discussed here a dozen of times. Just search for "service" word.

Sincerely yours
Eugene Mayevski
Posted: 10/14/2008 11:20:15
by Khayralla AL-Athari (Standard support level)
Joined: 09/23/2008
Posts: 75

Hi Eugene

I searched the forum archive, but there is no helpful topic.

I expect to see the virtual drive in the Windows Explorer.

there was no error in the event log.
Service started successfully.

Also I created a new Log event.
Storage created successfully.
Mount Media = 5000
Point added successfully.

I wrote the ininializtion code inside OnStart().

protected override void OnStart(string[] args)
            mCbFs = new CallbackFileSystem();
            mCbFs.OnMount = new CbFsMountEvent(CbFsMount);

I can't see anything wrong??
Why I can't see the virtual Drive in Windows Explorer ?

Posted: 10/14/2008 11:39:48
by Volodymyr Zinin (Team)


It's necessary to install a helper dll VSMntNtf.dll. For details see the topic "Helper DLLs" in the CallbackFS documentation.
Posted: 10/14/2008 13:15:57
by Khayralla AL-Athari (Standard support level)
Joined: 09/23/2008
Posts: 75

thanks Eugene, Vladimir

I forgate to include
CallbackFileSystem.InstallDriver(drivarName, mGuid, ref Reboot);




Topic viewed 3398 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!