Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Error during import
Last Post 04/20/2009 3:13 PM by Peter Donker. 10 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Sean Nolan
New Member
New Member
Posts:29


--
03/30/2008 10:36 PM

I have successfully imported a folder with over 400 files in a number of subfolders. I then started a second import and it failed after about 120 files. The regular page with the file status messages displayed and then this error showed at the end of the page:

[HttpException (0x80004005): Cannot redirect after HTTP headers have been sent.]
   System.Web.HttpResponse.Redirect(String url, Boolean endResponse) +3296352
   DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +328
   DotNetNuke.Framework.PageBase.Page_Error(Object Source, EventArgs e) +483
   System.Web.UI.TemplateControl.OnError(EventArgs e) +2085508
   System.Web.UI.Page.HandleError(Exception e) +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7341
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
   System.Web.UI.Page.ProcessRequest() +86
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.desktopmodules_bring2mind_dmx_admin_importexecute_aspx.ProcessRequest(HttpContext context) +4
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

The URL of the page is:

/DesktopModules/Bring2mind/DMX/Admin/ImportExecute.aspx?PortalId=1&TabId=74&ModuleId=399

Sean

Sean Nolan
New Member
New Member
Posts:29


--
04/01/2008 3:03 AM

I figured this one out - there was a file in the folders I was importing named ~WRL2324.tmp, I guess DMX doesn't handle the tilde in the file name. I removed that file and then the import worked.

Sean

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
04/30/2008 7:15 PM
Sean,

I cannot replicate this. I used a file with the ~ in front and it imported. Looking through the code again I'd be surprised if it tripped up on bad names as the file naming in Windows is already more restrictive than in DMX. So if the file has a valid name on disk upon import it should not pose a problem. The original error was a redirect error, by the way.

Peter
Ryan Garcia
New Member
New Member
Posts:16


--
06/20/2008 10:15 PM

Peter/Nolan,

I was having the same problem and I SOLVED it by adding the line below in the excluded paths of the compression settings of DNN.

desktopModules/Bring2mind/DMX/Admin/ImportExecute.aspx

I am using DNN 04.04.01 and DMX 3.05.05.

Aside form the error Nolan mentioned above I also site's log viewer shows this also

----
Method: System.Web.HttpResponse.AppendHeader
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Server cannot append header after HTTP headers have been sent. ---> System.Web.HttpException: Server cannot append header after HTTP headers have been sent. at System.Web.HttpResponse.AppendHeader(String name, String value) at DotNetNuke.HttpModules.Compression.CompressingFilter.WriteHeaders() at DotNetNuke.HttpModules.Compression.DeflateFilter.Write(Byte[] buffer, Int32 offset, Int32 count) at System.Web.HttpWriter.Filter(Boolean finalFiltering) at System.Web.HttpResponse.Flush(Boolean finalFlush) at System.Web.HttpResponse.Flush() at Bring2mind.DNN.Modules.DMX.Controls.Admin.ImportExecute.WriteFeedback(HttpResponse response, Int32 indent, String message, Boolean showtime) at Bring2mind.DNN.Modules.DMX.Controls.Admin.ImportExecute.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
----

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
06/23/2008 1:56 PM

Thanks Ryan,

Note your error is a compression error and not a DMX error.

Peter

optospeed
New Member
New Member
Posts:15


--
09/18/2008 11:39 AM

Peter,

I'm having big trouble in importing a complete directory into DMX. Whatever files are contained in the directory, I always get the following error...

Any suggestion?

Importing

00: - Retrieving Import Settings
00: -  PortalId:  Success
00: -  TabId:  Success
00: -  ModuleId:  Success
00: -  Directory to import:  Success
00: -  Collection to import to:  Success
00:00:00.015 - Importing to Documents

 

 

 


Server Error in '/' Application.

Cannot redirect after HTTP headers have been sent.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Cannot redirect after HTTP headers have been sent.

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
09/23/2008 10:56 AM
Can you see any error in the Event Log (DNN's Admin menu)? There is no redirect in the code where you get this error, so it looks like something is overriding the module code.

Peter
Sean Nolan
New Member
New Member
Posts:29


--
01/11/2009 7:55 AM

Peter,

I had to import again last week and had the same problem with the same named file (it's a temporary MS Word file). In case it matters, the file was in a subfolder of a folder in the root and the subfolder name has spaces in it. So my file is something like

rootfolder\sub folder\~WRL2324.tmp

Is the tilde perhaps being seen as the HttpRuntime.AppDomainAppVirtualPath shortcut?

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/11/2009 10:02 PM
Hi Sean,
Interesting. I'll make a note of that and try to replicate it.
Peter
chrisuae
New Member
New Member
Posts:1


--
04/16/2009 1:59 PM

 I'm experiencing the same error with version 05.00.05.  I was able to work around it by giving read access rights to the Network Service on all subfolders, but it consistently gave the error if there was a subfolder that was not accessible to Network Service.  For example:

Folder1 contains Folder2.  Network service has read access to Folder1 but does not have any access to Folder2.  The error occurs when the import reaches Folder2.

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
04/20/2009 3:13 PM
I think you guys need to exempt the DesktopModules/Birng2mind/DMX/Admin/ImportExecute.aspx from compression. The 'Cannot do xyz after HTTP headers have been sent' error usually means that compression is active. You can test to see if this is a compression issue by temporarily switching the compression off and trying again.

Peter
You are not authorized to post a reply.