Access to the path 'AccountFolder.Base.cs' is denied.

While adding the AnRefresData add-on I got the error: Application Installation failed. I downloaded the Installation log and this is what it says. I need help please. Thanks

2020-01-24 09:52:03,100 Loading packages from database

2020-01-24 09:52:03,668 Composing packages

2020-01-24 09:52:04,291 Schema "AnRefreshDataCSS" saved in package "AnRefreshData"

2020-01-24 09:52:04,317 Schema "BaseGridDetailV2" saved in package "AnRefreshData"

2020-01-24 09:52:04,339 Schema "BasePageV2" saved in package "AnRefreshData"

2020-01-24 09:52:04,356 Schema "BaseSectionV2" saved in package "AnRefreshData"

2020-01-24 09:52:04,356 Package "AnRefreshData" saved

2020-01-24 09:52:04,486 Added - resources in package "AnRefreshData"

2020-01-24 09:52:05,820 Updating modified schemas

2020-01-24 09:52:06,715 Schema source code "AnRefreshDataCSS" from package AnRefreshData generated

2020-01-24 09:52:06,916 Schema source code "BaseGridDetailV2" from package AnRefreshData generated

2020-01-24 09:52:07,117 Schema source code "BasePageV2" from package AnRefreshData generated

2020-01-24 09:52:07,432 Schema source code "BaseSectionV2" from package AnRefreshData generated

2020-01-24 09:52:07,851 Updating tables structure in database

2020-01-24 09:52:07,851 Updating tables structure in database

2020-01-24 09:52:07,868 Installing data

2020-01-24 09:52:07,886 Compiling configuration dll

2020-01-24 09:52:08,973 System.UnauthorizedAccessException: Access to the path 'AccountFolder.Base.cs' is denied.

   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.CreateFile(String path, Boolean append, 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 Terrasoft.Core.Packages.PackageContentDownloader.DownloadSource(Package package, String downloadPath, String sourceName, String sourceContent)

   at Terrasoft.Core.Compilation.DBWorkspaceBuilder.GetSourcesPaths(IEnumerable`1 packages)

   at Terrasoft.Core.Compilation.DBWorkspaceBuilder.InitializeContent(IList`1 moduleDescriptors)

   at Terrasoft.Core.Packages.WorkspaceBuilder.BuildInternalNetStandard(Boolean force, BuildResultType& buildResultType)

   at Terrasoft.Core.Packages.WorkspaceBuilder.Build()

   at Terrasoft.Core.AppInstallation.Packages.Operations.SystemPackageOperations.Save(IEnumerable`1 packages, PackageInstallOptions options)

   at Terrasoft.Core.AppInstallation.Packages.SystemPackageManager.Save(PackageInstallOptions installOptions)

   at Terrasoft.Core.AppInstallation.Packages.AppInstaller.Install(String sourcePath, String destinationPath, PackageInstallOptions installOptions, IInstalledAppInfo installedAppInfo)

   at Terrasoft.WebApp.PackageInstaller.AppInstallerServiceInternal.<>c__DisplayClass8_0.b__0()

   at Terrasoft.WebApp.PackageInstaller.BaseInstallerServiceInternal.InvokeWithLogging[TResult](Func`1 action)

Like 0

Like

2 comments

Hello Yanina,

If this is on-site application please distribute full access rights to root and Terrasotf.WebApp folder to IIS system user, restart the application and recycle pool in IIS and try to install the package once again. If this is cloud based application please report this issue to us at support@creatio.com and provide us with the file you are trying to upload and also provide us with the name of cloud based application to which the package should be deployed.

Best regards,

Oscar

Thank you so much for your help. I did grant full rights and it now works.

Show all comments