Access to the path 'SoftProServer4.0' is denied.

Discussions related to custom development with Select.
mrisen
Posts: 98
Joined: Wed Jul 25, 2012 7:01 pm

Access to the path 'SoftProServer4.0' is denied.

Post by mrisen »

We're getting "Access to the path 'SoftProServer4.0' is denied. " on a new test box. We've determined that a workaround is to add the calling user to the local Administrators group, but would prefer to not do this. Does anyone know what permissions need to be specifically granted in order to remove the account from the Administrators group and to allow it to work with SoftPro?
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Access to the path 'SoftProServer4.0' is denied.

Post by BobRichards »

What are you trying to do when you get the message. Where are you seeing the message?
Bob Richards, Senior Software Developer, SoftPro
mrisen
Posts: 98
Joined: Wed Jul 25, 2012 7:01 pm

Re: Access to the path 'SoftProServer4.0' is denied.

Post by mrisen »

Code: Select all

var softproServer = new SelectServer(config.SelectServerName, credential);
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Access to the path 'SoftProServer4.0' is denied.

Post by BobRichards »

Have you tried adding the user explicitly to Select via SPAdmin? You can add Windows users that way.
Bob Richards, Senior Software Developer, SoftPro
mrisen
Posts: 98
Joined: Wed Jul 25, 2012 7:01 pm

Re: Access to the path 'SoftProServer4.0' is denied.

Post by mrisen »

Well, ok, that seems weird. The credentials being passed are the Admin credentials, but the process is running under a network account who's purpose is to synchronize orders from our system and SoftPro. That account doesn't do anything more. My understanding is that the SoftPro credentials handle all of the SoftPro related stuff, such as creating orders. Are you saying the calling network account also needs some sort of SoftPro permissions? If so, which ones?
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Access to the path 'SoftProServer4.0' is denied.

Post by BobRichards »

Not quite. In order to access the Select mid-tier, you must log in as with an account that either has been manually entered (via SPAdmin) or is a member of a group that is synced automagically from the Windows system groups in SPAdmin --> Security --> Groups. If you are passing in a valid username/password, the permissions are based on that entity alone. (The account the mid-tier processes run under are not relevant.)

Has it every worked with a remote client? Make sure you log into the desired account using the Select client?

I believe it is most likely that your initial error message "Access to the path 'SoftProServer4.0" is telling you that your network path to the Select mid-tier is illegal or non-existent. Double check the URL you are using with the credentials. Does the mid-tier have a firewall up that is refusing connections from you?
Bob Richards, Senior Software Developer, SoftPro
John Morris
Posts: 411
Joined: Thu Sep 11, 2008 11:35 am
Location: Raleigh, NC, USA
Contact:

Re: Access to the path 'SoftProServer4.0' is denied.

Post by John Morris »

Please provide the call stack for any errors.
John Morris
Sr. Software Architect
SoftPro
mrisen
Posts: 98
Joined: Wed Jul 25, 2012 7:01 pm

Re: Access to the path 'SoftProServer4.0' is denied.

Post by mrisen »

So this is a test box with pretty much a default SoftPro installation. The SoftPro DBs, windows services, and client (and everything else) is on the box. The calling process, which is hosted by IIS, is also on the same box. Looking at other test boxes, this account has been added to the local administrators group, and that suppressed the problem. We just noticed this when we built out a new test box. Logging in with the client, locally or remotely has always worked, regardless of the login (when using the Admin account). Because this is all on the same box, I'm not sure it is a network issue unless there is a mapped network share or something. Do you know what "SoftProServer4.0" is? A file, folder, share, registry key...?

Here's the call stack:

System.Reflection.TargetInvocationException occurred
HResult=-2146232828
Message=Exception has been thrown by the target of an invocation.
Source=mscorlib
StackTrace:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
at SoftPro.ClientModel.Server.CreateService(IServiceContainer container, Type serviceType)
at System.ComponentModel.Design.ServiceContainer.GetService(Type serviceType)
at SoftPro.ClientModel.Server.GetService(Type serviceType, Boolean ensureAuthenticated)
at SoftPro.ClientModel.Server.GetService[T](Boolean ensureAuthenticated)
at SoftPro.Select.Client.SelectServer.OnInitialize()
at SoftPro.Select.Client.SelectServer..ctor(IServiceProvider site, Uri uri, ICredentials credentials)
at SoftPro.Select.Client.SelectServer..ctor(String uri, ICredentials credentials)
at RIM.NEXTitle.Business.Integration.SoftPro.SoftProOrderService.CreateSelectServer(IConfigurationWrapper config) in e:1.Debug.All.Daily.NEXTitle.Business.Integration.SoftPro.cs:line 130
InnerException: System.UnauthorizedAccessException
HResult=-2147024891
Message=Access to the path 'SoftProServer4.0' is denied.
Source=mscorlib
StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at System.IO.Directory.CreateDirectory(String path)
at SoftPro.ClientModel.Integration.Registration.GetCacheFilePath()
at SoftPro.ClientModel.Integration.Registration.OnInitialize()
at SoftPro.ClientModel.Integration.Registration..ctor(IServiceProvider site)
InnerException:
John Morris
Posts: 411
Joined: Thu Sep 11, 2008 11:35 am
Location: Raleigh, NC, USA
Contact:

Re: Access to the path 'SoftProServer4.0' is denied.

Post by John Morris »

In your application, what does the following function call return?

Code: Select all

Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
John Morris
Sr. Software Architect
SoftPro
John Morris
Posts: 411
Joined: Thu Sep 11, 2008 11:35 am
Location: Raleigh, NC, USA
Contact:

Re: Access to the path 'SoftProServer4.0' is denied.

Post by John Morris »

Also, what is the actual name of your Select server?
John Morris
Sr. Software Architect
SoftPro
Post Reply