Wednesday, March 7, 2012

Help - not a valid MIMEType

I am trying to use an image with a "Web" source, the url points to an
aspx page on the same machine as the reporting server, this page
returns a jpeg image (a chart) created by some C# code. On the
"Layout" tab of VS.NET the image is displayed but when I switch to the
"Preview" tab I just get the dreaded Red X.
The following warnings are written to the Output window.
Images with external URL references will not display if the report is
published to a report server without an UnattendedExecutionAccount or
the target image(s) are not enabled for anonymous access.
The value of the MIMEType property for the image ?image1' is
"image/jpeg; charset=utf-8", which is not a valid MIMEType.
I have configured the UnattendedExecuionAccount (rsconfig -e...) and
the page which returns the image allows anonymous access but it
doesn't seem to make any difference. What I don't understand is the
message about the invalid MIMEType, the code which returns the image
sets the ContentType="image/jpeg".
Any help much appreciated.Make sure you are using RS SP1
"Mark" <mark.huston@.invensys.com> wrote in message
news:24909f78.0410130833.6ffb3518@.posting.google.com...
> I am trying to use an image with a "Web" source, the url points to an
> aspx page on the same machine as the reporting server, this page
> returns a jpeg image (a chart) created by some C# code. On the
> "Layout" tab of VS.NET the image is displayed but when I switch to the
> "Preview" tab I just get the dreaded Red X.
> The following warnings are written to the Output window.
> Images with external URL references will not display if the report is
> published to a report server without an UnattendedExecutionAccount or
> the target image(s) are not enabled for anonymous access.
> The value of the MIMEType property for the image 'image1' is
> "image/jpeg; charset=utf-8", which is not a valid MIMEType.
> I have configured the UnattendedExecuionAccount (rsconfig -e...) and
> the page which returns the image allows anonymous access but it
> doesn't seem to make any difference. What I don't understand is the
> message about the invalid MIMEType, the code which returns the image
> sets the ContentType="image/jpeg".
> Any help much appreciated.|||Jeff,
I have SP1 installed (did it again to make sure!). The problem does
not occur when displaying external images that come from a file, but
only when they are returned from code (in an aspx.cs module). I am
beginning to think it could be some kind of security/permission
problem, but I don't know where to look for more info on this. for
example the following url will work
http://10.34.3.76/Trending/myImage.jpg
but this one doesn't
http://10.34.3.76/Trending/getImage.aspx
Any ideas ?
"Jeff Dillon" <jeff@.removeemergencyreporting.com> wrote in message news:<#z26bNUsEHA.2780@.TK2MSFTNGP09.phx.gbl>...
> Make sure you are using RS SP1
> "Mark" <mark.huston@.invensys.com> wrote in message
> news:24909f78.0410130833.6ffb3518@.posting.google.com...
> > I am trying to use an image with a "Web" source, the url points to an
> > aspx page on the same machine as the reporting server, this page
> > returns a jpeg image (a chart) created by some C# code. On the
> > "Layout" tab of VS.NET the image is displayed but when I switch to the
> > "Preview" tab I just get the dreaded Red X.
> > The following warnings are written to the Output window.
> >
> > Images with external URL references will not display if the report is
> > published to a report server without an UnattendedExecutionAccount or
> > the target image(s) are not enabled for anonymous access.
> > The value of the MIMEType property for the image 'image1' is
> > "image/jpeg; charset=utf-8", which is not a valid MIMEType.
> >
> > I have configured the UnattendedExecuionAccount (rsconfig -e...) and
> > the page which returns the image allows anonymous access but it
> > doesn't seem to make any difference. What I don't understand is the
> > message about the invalid MIMEType, the code which returns the image
> > sets the ContentType="image/jpeg".
> >
> > Any help much appreciated.|||Always as a quick test, add the ASPNET account to the admin group (perhaps
IUSR and IWAM too).
Jeff
"Mark" <mark.huston@.invensys.com> wrote in message
news:24909f78.0410132301.5b201e32@.posting.google.com...
> Jeff,
> I have SP1 installed (did it again to make sure!). The problem does
> not occur when displaying external images that come from a file, but
> only when they are returned from code (in an aspx.cs module). I am
> beginning to think it could be some kind of security/permission
> problem, but I don't know where to look for more info on this. for
> example the following url will work
> http://10.34.3.76/Trending/myImage.jpg
> but this one doesn't
> http://10.34.3.76/Trending/getImage.aspx
> Any ideas ?
> "Jeff Dillon" <jeff@.removeemergencyreporting.com> wrote in message
news:<#z26bNUsEHA.2780@.TK2MSFTNGP09.phx.gbl>...
> > Make sure you are using RS SP1
> >
> > "Mark" <mark.huston@.invensys.com> wrote in message
> > news:24909f78.0410130833.6ffb3518@.posting.google.com...
> > > I am trying to use an image with a "Web" source, the url points to an
> > > aspx page on the same machine as the reporting server, this page
> > > returns a jpeg image (a chart) created by some C# code. On the
> > > "Layout" tab of VS.NET the image is displayed but when I switch to the
> > > "Preview" tab I just get the dreaded Red X.
> > > The following warnings are written to the Output window.
> > >
> > > Images with external URL references will not display if the report is
> > > published to a report server without an UnattendedExecutionAccount or
> > > the target image(s) are not enabled for anonymous access.
> > > The value of the MIMEType property for the image 'image1' is
> > > "image/jpeg; charset=utf-8", which is not a valid MIMEType.
> > >
> > > I have configured the UnattendedExecuionAccount (rsconfig -e...) and
> > > the page which returns the image allows anonymous access but it
> > > doesn't seem to make any difference. What I don't understand is the
> > > message about the invalid MIMEType, the code which returns the image
> > > sets the ContentType="image/jpeg".
> > >
> > > Any help much appreciated.|||I am having the same problem. I am trying to display a dynamically generated
chart via an aspx web page to perform advanced charting that RS charting can
not do. If I can not get this to work, I do not know how I will be able to
generate the charts that I need within the report. Just as Mark gets, I get
the MIME type error in the preview, a red X when viewed through RS, but the
designer show the image. I have setup Unattended Execution and that made a
slight difference in that the image dimensions were set, but no image.
Please help, I am at wits end.
"Mark" wrote:
> I am trying to use an image with a "Web" source, the url points to an
> aspx page on the same machine as the reporting server, this page
> returns a jpeg image (a chart) created by some C# code. On the
> "Layout" tab of VS.NET the image is displayed but when I switch to the
> "Preview" tab I just get the dreaded Red X.
> The following warnings are written to the Output window.
> Images with external URL references will not display if the report is
> published to a report server without an UnattendedExecutionAccount or
> the target image(s) are not enabled for anonymous access.
> The value of the MIMEType property for the image â'image1' is
> "image/jpeg; charset=utf-8", which is not a valid MIMEType.
> I have configured the UnattendedExecuionAccount (rsconfig -e...) and
> the page which returns the image allows anonymous access but it
> doesn't seem to make any difference. What I don't understand is the
> message about the invalid MIMEType, the code which returns the image
> sets the ContentType="image/jpeg".
> Any help much appreciated.
>|||I began to get this error right after I installed "Office 2003 Pro".
Do you use MS Office 2003?
"Mark" wrote:
> I am trying to use an image with a "Web" source, the url points to an
> aspx page on the same machine as the reporting server, this page
> returns a jpeg image (a chart) created by some C# code. On the
> "Layout" tab of VS.NET the image is displayed but when I switch to the
> "Preview" tab I just get the dreaded Red X.
> The following warnings are written to the Output window.
> Images with external URL references will not display if the report is
> published to a report server without an UnattendedExecutionAccount or
> the target image(s) are not enabled for anonymous access.
> The value of the MIMEType property for the image â'image1' is
> "image/jpeg; charset=utf-8", which is not a valid MIMEType.
> I have configured the UnattendedExecuionAccount (rsconfig -e...) and
> the page which returns the image allows anonymous access but it
> doesn't seem to make any difference. What I don't understand is the
> message about the invalid MIMEType, the code which returns the image
> sets the ContentType="image/jpeg".
> Any help much appreciated.
>|||We had the exact same problem, images rendered from an aspx file would
show up in the designer but not the preview or the full report (with
SP1)
I noticed the error said the invalid mime type was "image/jpeg;
charset=utf-8" or similar
So on the aspx file that returned the jpeg, right below
response.contenttype="image/jpeg"
I added:
response.charset=""
and now the images appear on the report! Looks like reporting services
isn't parsing the HTTP headers correctly...
"Jeff" <Jeff@.discussions.microsoft.com> wrote in message news:<57AC3785-F8DF-4094-A90A-85E6E0917CD6@.microsoft.com>...
> I began to get this error right after I installed "Office 2003 Pro".
> Do you use MS Office 2003?
> "Mark" wrote:
> > I am trying to use an image with a "Web" source, the url points to an
> > aspx page on the same machine as the reporting server, this page
> > returns a jpeg image (a chart) created by some C# code. On the
> > "Layout" tab of VS.NET the image is displayed but when I switch to the
> > "Preview" tab I just get the dreaded Red X.
> > The following warnings are written to the Output window.
> >
> > Images with external URL references will not display if the report is
> > published to a report server without an UnattendedExecutionAccount or
> > the target image(s) are not enabled for anonymous access.
> > The value of the MIMEType property for the image �image1' is
> > "image/jpeg; charset=utf-8", which is not a valid MIMEType.
> >
> > I have configured the UnattendedExecuionAccount (rsconfig -e...) and
> > the page which returns the image allows anonymous access but it
> > doesn't seem to make any difference. What I don't understand is the
> > message about the invalid MIMEType, the code which returns the image
> > sets the ContentType="image/jpeg".
> >
> > Any help much appreciated.
> >

No comments:

Post a Comment