One possibility amongst others is that cfcontent is disabled in the administrator. The first thing to do is to get the actual error message from coldfusion as well as the error code (HTTP 500 = "something went wrong" - a little more info might come in handy). Check the error log file for that. Also, it looks like you have so called "friendly HTTP errors" on in IE - don't do that. Go to Tools -> Internet Options... -> Advanced -> Browsing (in IE) and make sure the "Show friendly HTTP error messages" checkbox is unchecked. Or maybe you are using a site wide error handler?
/t >-----Original Message----- >From: Eric Creese [mailto:[EMAIL PROTECTED] >Sent: Tuesday, March 15, 2005 4:47 AM >To: CF-Talk >Subject: Re: CF to excel > >Okay I tried your suggestion and got the same error > > The page cannot be displayed > There is a problem with the page you are trying to reach >and it cannot >be displayed. > >--------------------------------------------------------------- >----------- > > > > > > HTTP 500 - Internal server error > Internet Explorer > >----- Original Message ----- >From: "Dawson, Michael" <[EMAIL PROTECTED]> >To: "CF-Talk" <cf-talk@houseoffusion.com> >Sent: Monday, March 14, 2005 9:32 PM >Subject: RE: CF to excel > > >> I use this with success: >> >> <cfheader name="Content-Disposition" value="attachment; >> filename=#fileName#"> >> <cfcontent type="Application/Unknown" reset="yes"> >> >> [html content goes here...] >> >> >> This code snippet should prompt you to download/save each spreadsheet >> w/o opening Excel directly. >> >> M!ke >> >> -----Original Message----- >> From: Eric Creese [mailto:[EMAIL PROTECTED] >> Sent: Monday, March 14, 2005 9:22 PM >> To: CF-Talk >> Subject: CF to excel >> >> How come the following will not work. I get a 500 error >> >> <html> >> <head> >> <title>CLASS of <cfoutput>#getYRInfo.class_year#</cfoutput> Spread >> Sheet</title> </head> <body> >> >> <cfcontent type="application/ms-excel"> >> <CFHEADER NAME="content-disposition" >VALUE="filename=classroster.xls"> >> >> <cfoutput><table cols="11"></cfoutput> >> <cfoutput query="getclass"> >> <tr> >> <td ><strong>#fname#</strong></td> >> <td ><strong>#lname#</strong></td> >> <td ><strong>#mname#</strong></td> >> <td ><strong>#addr1#</strong></td> >> <td ><strong>#addr2#</strong></td> <td >> ><strong>#city#</strong></td> >> <td ><strong>#state#</strong></td> >> <td ><strong>#country#</strong></td> >> <td ><strong>#zip#</strong></td> <td >> ><strong>#email#</strong></td> >> <td><strong>#phone#</strong></td> </tr> </cfoutput> >> <cfoutput></table></cfoutput> </body> </html> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198833 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54