Had the time now to do some more tests.
My test Setup is as described above with just one Change (To make it more comparable to your Setup, Claus): Credentials on my HTPC are now the same as on all the other Computers, i.e. "User"/"PW1" also on htpc.
Settings were:
use credentials of interactive session on Server: unchecked
use username and Password to Access Network: checked
Username: User
Password: PW1
What I did:
Start MP2-Server as application
Add a global share on my htpc via NetworkNeighborhoodResourceProvider
Stop MP2-Server application
Start MP2-Server as Service
Go to Shares configuration
Result:
Exactly the same error as described by Claus above. Now I can confirm 100%
MP2-Server log says:
MediaPortal.Utilities.Exceptions.IllegalCallException: Unable to access resource '//HTPC/Daten/Media/Music/test/'
bei MediaPortal.Extensions.ResourceProviders.NetworkNeighborhoodResourceProvider.NetworkNeighborhoodResourceAccessor..ctor(NetworkNeighborhoodResourceProvider parent, String path)
bei MediaPortal.Extensions.ResourceProviders.NetworkNeighborhoodResourceProvider.NetworkNeighborhoodResourceProvider.TryCreateResourceAccessor(String path, IResourceAccessor& result)
bei MediaPortal.Common.ResourceAccess.ResourcePath.TryCreateLocalResourceAccessor(IResourceAccessor& result) in c:\_MP\Quellcode\MediaPortal-2\MediaPortal\Source\Core\MediaPortal.Common\ResourceAccess\ResourcePath.cs:Zeile 431.
bei MediaPortal.Common.Services.ResourceAccess.UPnPResourceInformationServiceImpl.OnGetResourcePathDisplayName(DvAction action, IList`1 inParams, IList`1& outParams, CallContext context) in c:\_MP\Quellcode\MediaPortal-2\MediaPortal\Source\Core\MediaPortal.Common\Services\ResourceAccess\UPnPResourceInformationServiceImpl.cs:Zeile 305.
bei UPnP.Infrastructure.Dv.DeviceTree.DvAction.FireActionInvoked(IList`1 inParams, IList`1& outParams, CallContext context) in c:\_MP\Quellcode\MediaPortal-2\MediaPortal\Source\Core\UPnP\Infrastructure\Dv\DeviceTree\DvAction.cs:Zeile 146.
bei UPnP.Infrastructure.Dv.DeviceTree.DvAction.InvokeAction(IList`1 inParameters, IList`1& outParameters, Boolean checkSignature, CallContext context) in c:\_MP\Quellcode\MediaPortal-2\MediaPortal\Source\Core\UPnP\Infrastructure\Dv\DeviceTree\DvAction.cs:Zeile 129.
bei UPnP.Infrastructure.Dv.SOAP.SOAPHandler.HandleRequest(DvService service, Stream messageStream, Encoding streamEncoding, Boolean subscriberSupportsUPnP11, CallContext context, String& result) in c:\_MP\Quellcode\MediaPortal-2\MediaPortal\Source\Core\UPnP\Infrastructure\Dv\SOAP\SOAPHandler.cs:Zeile 155.
So it really seems to be the constructor. Will try to add "ImpersonateUser()" to the constructor and Report back...
Michael
My test Setup is as described above with just one Change (To make it more comparable to your Setup, Claus): Credentials on my HTPC are now the same as on all the other Computers, i.e. "User"/"PW1" also on htpc.
Settings were:
use credentials of interactive session on Server: unchecked
use username and Password to Access Network: checked
Username: User
Password: PW1
What I did:
Start MP2-Server as application
Add a global share on my htpc via NetworkNeighborhoodResourceProvider
Stop MP2-Server application
Start MP2-Server as Service
Go to Shares configuration
Result:
Exactly the same error as described by Claus above. Now I can confirm 100%
MP2-Server log says:
MediaPortal.Utilities.Exceptions.IllegalCallException: Unable to access resource '//HTPC/Daten/Media/Music/test/'
bei MediaPortal.Extensions.ResourceProviders.NetworkNeighborhoodResourceProvider.NetworkNeighborhoodResourceAccessor..ctor(NetworkNeighborhoodResourceProvider parent, String path)
bei MediaPortal.Extensions.ResourceProviders.NetworkNeighborhoodResourceProvider.NetworkNeighborhoodResourceProvider.TryCreateResourceAccessor(String path, IResourceAccessor& result)
bei MediaPortal.Common.ResourceAccess.ResourcePath.TryCreateLocalResourceAccessor(IResourceAccessor& result) in c:\_MP\Quellcode\MediaPortal-2\MediaPortal\Source\Core\MediaPortal.Common\ResourceAccess\ResourcePath.cs:Zeile 431.
bei MediaPortal.Common.Services.ResourceAccess.UPnPResourceInformationServiceImpl.OnGetResourcePathDisplayName(DvAction action, IList`1 inParams, IList`1& outParams, CallContext context) in c:\_MP\Quellcode\MediaPortal-2\MediaPortal\Source\Core\MediaPortal.Common\Services\ResourceAccess\UPnPResourceInformationServiceImpl.cs:Zeile 305.
bei UPnP.Infrastructure.Dv.DeviceTree.DvAction.FireActionInvoked(IList`1 inParams, IList`1& outParams, CallContext context) in c:\_MP\Quellcode\MediaPortal-2\MediaPortal\Source\Core\UPnP\Infrastructure\Dv\DeviceTree\DvAction.cs:Zeile 146.
bei UPnP.Infrastructure.Dv.DeviceTree.DvAction.InvokeAction(IList`1 inParameters, IList`1& outParameters, Boolean checkSignature, CallContext context) in c:\_MP\Quellcode\MediaPortal-2\MediaPortal\Source\Core\UPnP\Infrastructure\Dv\DeviceTree\DvAction.cs:Zeile 129.
bei UPnP.Infrastructure.Dv.SOAP.SOAPHandler.HandleRequest(DvService service, Stream messageStream, Encoding streamEncoding, Boolean subscriberSupportsUPnP11, CallContext context, String& result) in c:\_MP\Quellcode\MediaPortal-2\MediaPortal\Source\Core\UPnP\Infrastructure\Dv\SOAP\SOAPHandler.cs:Zeile 155.
So it really seems to be the constructor. Will try to add "ImpersonateUser()" to the constructor and Report back...
Michael