Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Exception in GetFile.aspx View modes: 
User avatar
Member
Member
Zakhar - 1/3/2014 3:42:55 AM
   
Exception in GetFile.aspx
Hi guys,

I can see a lot of similar errors in event log, it looks like the errors are thrown by GetFile.aspx even when the attachment is found and returned (no errors on the page itself). Can anyone advise on it?

Here is the error info:
EventID: 225176

EventType: E
EventTime: 1/3/2014 9:27:22 AM
Source: Application_Error
EventCode: EXCEPTION
UserID: 65
UserName: public
IPAddress: 172.16.2.20

EventDescription: Message: Server cannot set status after HTTP headers have been sent.
Stack Trace:
at System.Web.HttpResponse.set_StatusCode(Int32 value)
at CMS.GlobalHelper.RequestHelper.Respond404()
at CMSPages_GetFile.SendFile(CMSOutputFile file) in c:\inetpub\wwwroot\KenticoCMS7\CMSPages\GetFile.aspx.cs:line 429
at CMSPages_GetFile.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\KenticoCMS7\CMSPages\GetFile.aspx.cs:line 291
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Site:
EventUrl: /getattachment/5255d6d5-d48f-494e-9dba-8e1459aa2c28/Corporate-Video.mp4
EventMachineName: LON-WEB01
EventUserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

Thank you

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 1/3/2014 7:56:46 AM
   
RE:Exception in GetFile.aspx
Hello Zakhar,

Could you please tell me which exact version of Kentico are you running at the moment? There was a bug related to this behavior in version 7, so please apply the latest hotfix as first and let us know if the issue will still persist.

Best regards,
Martin Danko