You are viewing limited content. For full access, please sign in.

Question

Question

Access to ConnectionProfile.xml is Denied

asked on April 22, 2016

I have having issues in Workflow creating local profiles in the Options menu so I can have repository information available to create conditional starting rules.

Workflow 9.1 and it is a server I don’t work on that often so I have no idea if this is a new problem or has always been this way.

Could anyone point me in the right direction as to what to start asking my Server team?  If I try to create the profile from my location install of Workflow Designer I can.  It is only when I am directly on the servers that I am getting this error.

Thanks.

 

Access to the path 'C:\ProgramData\Laserfiche\WF\Profiles\ConnectionProfiles.xml' is denied.

Exception

        System.UnauthorizedAccessException:

Access to the path 'C:\ProgramData\Laserfiche\WF\Profiles\ConnectionProfiles.xml' is denied.

 

Stack Trace

        at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

        at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

        at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

        at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)

        at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)

        at Laserfiche.Connection.ConnectionProfileManager.WriteProfiles(String folderpath, IList`1 existing, IList`1 Removed, IList`1 Added, IList`1 Changed)

        at Laserfiche.Connection.ConnectionProfileManager.WriteSystemProfiles()

 

Data items: 1

AlreadyLogged: True

0 0

Answer

SELECTED ANSWER
replied on April 22, 2016

This happens if the current Windows user does not have rights to write to C:\ProgramData\Laserfiche\WF\Profiles. By default, Workflow tries to save connection profiles as "common profiles" available for anybody on the machine. You can create the profile as a user profile instead by clicking "Manage Connections" on the Workflow Profile Manager dialog. Change your drop-down list from "Common Profiles" to "User Profiles" and add the new one. This way it will be saved to your user folder instead (C:\Users\USERNAME\AppData\Roaming\Laserfiche\WF\Profiles).

2 0
replied on April 22, 2016

When saving it as a User Profile, does it also try to save to Common at the same time?  I created as a User Profile but got the same error.  But when I went into the starting rule, I could choose the profile.

 

Thanks.

 

0 0
replied on April 22, 2016

No, it doesn't. Was the error referencing the same exact path?

0 0
replied on April 22, 2016

Yes, it referenced the exact same path.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.