question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Class winsw.Plugins.SharedDirectoryMapper.SharedDirectoryMapper does not exist

See original GitHub issue

Summary.

start syncthing.exe

Error message for program startup

2021-02-25 19:04:56,600 INFO  - Starting syncthing
2021-02-25 19:04:56,614 ERROR - Failed to start service.
WinSW.Extensions.ExtensionException: mapNetworkDirs: Cannot load the class by name: winsw.Plugins.SharedDirectoryMapper.SharedDirectoryMapper
 ---> WinSW.Extensions.ExtensionException: mapNetworkDirs: Class winsw.Plugins.SharedDirectoryMapper.SharedDirectoryMapper does not exist
   at WinSW.Extensions.WinSWExtensionManager.CreateExtensionInstance(String id, String className)
   --- End of inner exception stack trace ---
   at WinSW.Extensions.WinSWExtensionManager.CreateExtensionInstance(String id, String className)
   at WinSW.Extensions.WinSWExtensionManager.LoadExtension(String id)
   at WinSW.Extensions.WinSWExtensionManager.LoadExtensions()
   at WinSW.WrapperService.DoStart()
   at WinSW.WrapperService.OnStart(String[] args)
2021-02-25 19:04:57,649 FATAL - Failed to start the service.
  <extensions>
    <extension enabled="true" className="winsw.Plugins.SharedDirectoryMapper.SharedDirectoryMapper" id="mapNetworkDirs">
      <mapping>
        <map enabled="false" label="N:" uncpath="\\UNC"/>
        <map enabled="false" label="M:" uncpath="\\UNC2"/>
      </mapping>
    </extension>
  </extensions>

Environment

  • WinSW version: v3.0.0-alpha.7
  • WinSW package type: WinSW-x64.exe
  • Windows version: windows10 20H2

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
juacamgocommented, Apr 8, 2021

Hi @fbigun ,

I am facing the same issue using WinSW-x64.exe on Windows 10 Version 20H2 using WinSW v2.11.0, have you managed to solve the problem?

Thank you.

0reactions
ikihikicommented, Aug 17, 2022

className="WinSW.Plugins.RunawayProcessKillerExtension,WinSW.Plugins" worked. I think it is due to the fact that the assembly in which the pulgin exists is different in ILMerge and PublishSingleFile.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue #319 · Issue #551 · winsw/winsw
I am accessing Ubuntu share path, from java code path is accessed fine but when I create service error is comming. need help,...
Read more >
Developers - Class winsw.Plugins.SharedDirectoryMapper ...
Plugins.SharedDirectoryMapper.SharedDirectoryMapper does not exist at WinSW.Extensions.WinSWExtensionManager.CreateExtensionInstance(String id, ...
Read more >
winsw
winsw. A wrapper executable that can be used to host any executable as an ... Plugins.SharedDirectoryMapper.SharedDirectoryMapper does not exist at WinSW.
Read more >
Windows Service Wrapper : YAML Configuration Support
In this project, I will update WinSW to validate configurations at the startup. It is not implemented yet and will be in phase...
Read more >
Jenkins Windows Slave setup using Winsw not working
There are some errors in the sample "Jenkins-Slave.xml" that is presented at the linked web page (which yours is apparently based on).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found