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.

Error when exporting app.

See original GitHub issue

I’m submitting a … [x] bug report

…about [x] admin experience UI Current behavior
When exporting an app I get:

{"Message":"Bad Request","ExceptionMessage":"Could not find a part of the path 'C:\\Inetpub\\vhosts\\x.pt\\x.app\\desktopmodules\\tosic_sexycontent\\_\\4b38\\Apps\\CookieConsentForDnn\\2sexy\\App_Data\\app.xml'.","ExceptionType":"System.IO.DirectoryNotFoundException","StackTrace":" at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n 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)\r\n 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)\r\n at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)\r\n at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)\r\n at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)\r\n at ToSic.Eav.Apps.ImportExport.ZipExport.ExportApp(Boolean includeContentGroups, Boolean resetAppGuid) in C:\\Projects\\2sxc\\eav-server\\ToSic.Eav.Apps\\ImportExport\\ZipExport.cs:line 165\r\n at ToSic.Sxc.WebApi.ImportExport.ExportApp.Export(Int32 zoneId, Int32 appId, Boolean includeContentGroups, Boolean resetAppGuid) in C:\\Projects\\2sxc\\2sxc\\Src\\Sxc\\ToSic.Sxc.WebApi\\ImportExport\\ExportApp.cs:line 117\r\n at ToSic.Sxc.WebApi.Admin.AppControllerReal1.Export(Int32 zoneId, Int32 appId, Boolean includeContentGroups, Boolean resetAppGuid) in C:\Projects\2sxc\2sxc\Src\Sxc\ToSic.Sxc.WebApi\Admin\AppControllerReal.cs:line 88\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Tracing.ITraceWriterExtensions.<TraceBeginEndAsyncCore>d__171.MoveNext()\r\n— End of stack trace from previous location where exception was thrown —\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n— End of stack trace from previous location where exception was thrown —\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Tracing.ITraceWriterExtensions.<TraceBeginEndAsyncCore>d__171.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()"}

Your environment

  • 2sxc version(s): 14.8

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tvatavukcommented, Oct 19, 2022

I see related problem.

Here is simple workaround.

  • first click [Save state]
  • then click on [Export App]

image

It should work.

It will be fixed in next release.

0reactions
enfJoaocommented, Oct 19, 2022

Awesome.

Thank you very much good sir.

On Wed, Oct 19, 2022, 16:07 Tonći Vatavuk @.***> wrote:

I see related problem.

Here is simple workaround.

  • first click [Save state]
  • then click on [Export App]

[image: image] https://user-images.githubusercontent.com/2724850/196729139-a2ef05be-cf08-447a-8c52-48fc1bddfba3.png

It should work.

It will be fixed in next release.

— Reply to this email directly, view it on GitHub https://github.com/2sic/2sxc/issues/2860#issuecomment-1284165391, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGKKKX4I6H3RINFPABCFRDDWEAFDBANCNFSM6AAAAAAQWS7KR4 . You are receiving this because you authored the thread.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error When Trying to Export Package
When trying to export my powerapp package I continue to get an error. I have a few environments set up and the app...
Read more >
Error Exporting Video from Photos App on Mac
In the past few months I've run into a problem where my iMac can't export video from the Apple Photos app. When I...
Read more >
Export as an App Error - Looking for advice or help : r/tasker
Export as an App Error - Looking for advice or help. I am building a small, simple app for work, 5 scene that...
Read more >
Error when exporting the application [DX error again]
App Inventor no ha podido compilar el proyecto. El error de compilación es ________Preparing application icon ________Creating animation xml ...
Read more >
When Exporting I Get an error
When I try to export my app I get this error App Inventor is unable to compile this project. The compiler error output...
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