473,408 Members | 2,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Can't load graphics in .NET 2.0 site

I had an ASP.NET 2.0 site which works fine on my PC. I have just copied it to
a server, and set it up to run in a virtual folder. The web pages work fine,
but the graphics won't load - if I try to open a gif from one of the folders,
I get the following message. Why would an ASPX file load, but a GIF file
won't?

I have tried messing with security on the files, and have even given
'Everyone' access to read and execute, but still no joy.

Surely I don't need a specific httphandler for GIFs and JPEGs?

Thanks!

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 07/04/2006 09:33:14
Event time (UTC): 07/04/2006 08:33:14
Event ID: 6c1b482203d248a287fd180cd08e563e
Event sequence: 6
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/Root/all-in-one-1-127888723889584620
Trust level: Full
Application Virtual Path: /all-in-one
Application Path: C:\Inetpub\all_in_one\
Machine name: FWSERVER01

Process information:
Process ID: 6876
Process name: w3wp.exe
Account name: THEFAITHWORKS\IWAM_FWSERVER01

Exception information:
Exception type: HttpException
Exception message: Path '/all-in-one/images/AoG_blue.master/spacer.gif'
is forbidden.

Request information:
Request URL: http://10.0.0.3/all-in-one/images/Ao...ter/spacer.gif
Request path: /all-in-one/images/AoG_blue.master/spacer.gif
User host address: 10.0.0.3
User:
Is authenticated: False
Authentication Type:
Thread account name: THEFAITHWORKS\IWAM_FWSERVER01

Thread information:
Thread ID: 1
Thread account name: THEFAITHWORKS\IWAM_FWSERVER01
Is impersonating: False
Stack trace: at
System.Web.HttpForbiddenHandler.ProcessRequest(Htt pContext context)
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)
Custom event details:

For more information, see Help and Support Center at
Apr 7 '06 #1
5 1677
DWS
Hello,
Please send more information.
Can you load the graphics by typing address in browser?
Can you show us some of the html sent to the client browser?
Thanks
DWS

"iainfogg" wrote:
I had an ASP.NET 2.0 site which works fine on my PC. I have just copied it to
a server, and set it up to run in a virtual folder. The web pages work fine,
but the graphics won't load - if I try to open a gif from one of the folders,
I get the following message. Why would an ASPX file load, but a GIF file
won't?

I have tried messing with security on the files, and have even given
'Everyone' access to read and execute, but still no joy.

Surely I don't need a specific httphandler for GIFs and JPEGs?

Thanks!

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 07/04/2006 09:33:14
Event time (UTC): 07/04/2006 08:33:14
Event ID: 6c1b482203d248a287fd180cd08e563e
Event sequence: 6
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/Root/all-in-one-1-127888723889584620
Trust level: Full
Application Virtual Path: /all-in-one
Application Path: C:\Inetpub\all_in_one\
Machine name: FWSERVER01

Process information:
Process ID: 6876
Process name: w3wp.exe
Account name: THEFAITHWORKS\IWAM_FWSERVER01

Exception information:
Exception type: HttpException
Exception message: Path '/all-in-one/images/AoG_blue.master/spacer.gif'
is forbidden.

Request information:
Request URL: http://10.0.0.3/all-in-one/images/Ao...ter/spacer.gif
Request path: /all-in-one/images/AoG_blue.master/spacer.gif
User host address: 10.0.0.3
User:
Is authenticated: False
Authentication Type:
Thread account name: THEFAITHWORKS\IWAM_FWSERVER01

Thread information:
Thread ID: 1
Thread account name: THEFAITHWORKS\IWAM_FWSERVER01
Is impersonating: False
Stack trace: at
System.Web.HttpForbiddenHandler.ProcessRequest(Htt pContext context)
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)
Custom event details:

For more information, see Help and Support Center at

Apr 7 '06 #2
Hi DWS

If I put the link to the GIF directly, I an error saying:

This type of page is not served.
Description: The type of page you have requested is not served because it
has been explicitly forbidden. The extension '.gif' may be incorrect.
Please review the URL below and make sure that it is spelled correctly.

Requested URL: /all-in-one/images/AoG_blue.master/outreach_hdr.gif

=============

Also, here are a couple of sample bits of HTML, none of which work:

<td background="../images/AoG_blue.master/blue_headings.gif" width="754"
height="84">

<td><img src="../images/AoG_blue.master/spacer.gif" width="200"
height="30"></td>
</tr>
<tr>
<td> <img src="../images/AoG_blue.master/outreach_hdr.gif"
width="754" height="66"></td>

Thanks

Iain
"DWS" wrote:
Hello,
Please send more information.
Can you load the graphics by typing address in browser?
Can you show us some of the html sent to the client browser?
Thanks
DWS

"iainfogg" wrote:
I had an ASP.NET 2.0 site which works fine on my PC. I have just copied it to
a server, and set it up to run in a virtual folder. The web pages work fine,
but the graphics won't load - if I try to open a gif from one of the folders,
I get the following message. Why would an ASPX file load, but a GIF file
won't?

I have tried messing with security on the files, and have even given
'Everyone' access to read and execute, but still no joy.

Surely I don't need a specific httphandler for GIFs and JPEGs?

Thanks!

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 07/04/2006 09:33:14
Event time (UTC): 07/04/2006 08:33:14
Event ID: 6c1b482203d248a287fd180cd08e563e
Event sequence: 6
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/Root/all-in-one-1-127888723889584620
Trust level: Full
Application Virtual Path: /all-in-one
Application Path: C:\Inetpub\all_in_one\
Machine name: FWSERVER01

Process information:
Process ID: 6876
Process name: w3wp.exe
Account name: THEFAITHWORKS\IWAM_FWSERVER01

Exception information:
Exception type: HttpException
Exception message: Path '/all-in-one/images/AoG_blue.master/spacer.gif'
is forbidden.

Request information:
Request URL: http://10.0.0.3/all-in-one/images/Ao...ter/spacer.gif
Request path: /all-in-one/images/AoG_blue.master/spacer.gif
User host address: 10.0.0.3
User:
Is authenticated: False
Authentication Type:
Thread account name: THEFAITHWORKS\IWAM_FWSERVER01

Thread information:
Thread ID: 1
Thread account name: THEFAITHWORKS\IWAM_FWSERVER01
Is impersonating: False
Stack trace: at
System.Web.HttpForbiddenHandler.ProcessRequest(Htt pContext context)
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)
Custom event details:

For more information, see Help and Support Center at

Apr 7 '06 #3
DWS
Good Morning Ian,

../images .. says to go up a directory. try removing the ../

<td background="../images/AoG_blue.master/blue_headings.gif" width="754"
height="84">
<td background="images/AoG_blue.master/blue_headings.gif" width="754"
height="84">

If you're making dotnet controls in code you write
image.imageurl="~/images/Aog_blue.master...

Good Luck
DWS
"iainfogg" wrote:
Hi DWS

If I put the link to the GIF directly, I an error saying:

This type of page is not served.
Description: The type of page you have requested is not served because it
has been explicitly forbidden. The extension '.gif' may be incorrect.
Please review the URL below and make sure that it is spelled correctly.

Requested URL: /all-in-one/images/AoG_blue.master/outreach_hdr.gif

=============

Also, here are a couple of sample bits of HTML, none of which work:

<td background="../images/AoG_blue.master/blue_headings.gif" width="754"
height="84">

<td><img src="../images/AoG_blue.master/spacer.gif" width="200"
height="30"></td>
</tr>
<tr>
<td> <img src="../images/AoG_blue.master/outreach_hdr.gif"
width="754" height="66"></td>

Thanks

Iain
"DWS" wrote:
Hello,
Please send more information.
Can you load the graphics by typing address in browser?
Can you show us some of the html sent to the client browser?
Thanks
DWS

"iainfogg" wrote:
I had an ASP.NET 2.0 site which works fine on my PC. I have just copied it to
a server, and set it up to run in a virtual folder. The web pages work fine,
but the graphics won't load - if I try to open a gif from one of the folders,
I get the following message. Why would an ASPX file load, but a GIF file
won't?

I have tried messing with security on the files, and have even given
'Everyone' access to read and execute, but still no joy.

Surely I don't need a specific httphandler for GIFs and JPEGs?

Thanks!

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 07/04/2006 09:33:14
Event time (UTC): 07/04/2006 08:33:14
Event ID: 6c1b482203d248a287fd180cd08e563e
Event sequence: 6
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/Root/all-in-one-1-127888723889584620
Trust level: Full
Application Virtual Path: /all-in-one
Application Path: C:\Inetpub\all_in_one\
Machine name: FWSERVER01

Process information:
Process ID: 6876
Process name: w3wp.exe
Account name: THEFAITHWORKS\IWAM_FWSERVER01

Exception information:
Exception type: HttpException
Exception message: Path '/all-in-one/images/AoG_blue.master/spacer.gif'
is forbidden.

Request information:
Request URL: http://10.0.0.3/all-in-one/images/Ao...ter/spacer.gif
Request path: /all-in-one/images/AoG_blue.master/spacer.gif
User host address: 10.0.0.3
User:
Is authenticated: False
Authentication Type:
Thread account name: THEFAITHWORKS\IWAM_FWSERVER01

Thread information:
Thread ID: 1
Thread account name: THEFAITHWORKS\IWAM_FWSERVER01
Is impersonating: False
Stack trace: at
System.Web.HttpForbiddenHandler.ProcessRequest(Htt pContext context)
at
System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)
Custom event details:

For more information, see Help and Support Center at

Apr 7 '06 #4
Hi, DWS

This code works fine on my PC - the path to the images is "../images", as
the web page is in a folder called web which sits at the same level as the
images folder.

I have since tried this on a separate server, and have got the same result
(i.e. the same problem). Is there anything I need to do to get GIFs to
appear? Surely this should be default behaviour?

Is there anything to do with the web.config or machine.config that needs
changing?

Ta

Iain

"DWS" wrote:
Good Morning Ian,

../images .. says to go up a directory. try removing the ../

<td background="../images/AoG_blue.master/blue_headings.gif" width="754"
height="84">
<td background="images/AoG_blue.master/blue_headings.gif" width="754"
height="84">

If you're making dotnet controls in code you write
image.imageurl="~/images/Aog_blue.master...

Good Luck
DWS
"iainfogg" wrote:
Hi DWS

If I put the link to the GIF directly, I an error saying:

This type of page is not served.
Description: The type of page you have requested is not served because it
has been explicitly forbidden. The extension '.gif' may be incorrect.
Please review the URL below and make sure that it is spelled correctly.

Requested URL: /all-in-one/images/AoG_blue.master/outreach_hdr.gif

=============

Also, here are a couple of sample bits of HTML, none of which work:

<td background="../images/AoG_blue.master/blue_headings.gif" width="754"
height="84">

<td><img src="../images/AoG_blue.master/spacer.gif" width="200"
height="30"></td>
</tr>
<tr>
<td> <img src="../images/AoG_blue.master/outreach_hdr.gif"
width="754" height="66"></td>

Thanks

Iain
"DWS" wrote:
Hello,
Please send more information.
Can you load the graphics by typing address in browser?
Can you show us some of the html sent to the client browser?
Thanks
DWS

"iainfogg" wrote:

> I had an ASP.NET 2.0 site which works fine on my PC. I have just copied it to
> a server, and set it up to run in a virtual folder. The web pages work fine,
> but the graphics won't load - if I try to open a gif from one of the folders,
> I get the following message. Why would an ASPX file load, but a GIF file
> won't?
>
> I have tried messing with security on the files, and have even given
> 'Everyone' access to read and execute, but still no joy.
>
> Surely I don't need a specific httphandler for GIFs and JPEGs?
>
> Thanks!
>
> Event code: 3005
> Event message: An unhandled exception has occurred.
> Event time: 07/04/2006 09:33:14
> Event time (UTC): 07/04/2006 08:33:14
> Event ID: 6c1b482203d248a287fd180cd08e563e
> Event sequence: 6
> Event occurrence: 1
> Event detail code: 0
>
> Application information:
> Application domain: /LM/W3SVC/1/Root/all-in-one-1-127888723889584620
> Trust level: Full
> Application Virtual Path: /all-in-one
> Application Path: C:\Inetpub\all_in_one\
> Machine name: FWSERVER01
>
> Process information:
> Process ID: 6876
> Process name: w3wp.exe
> Account name: THEFAITHWORKS\IWAM_FWSERVER01
>
> Exception information:
> Exception type: HttpException
> Exception message: Path '/all-in-one/images/AoG_blue.master/spacer.gif'
> is forbidden.
>
> Request information:
> Request URL: http://10.0.0.3/all-in-one/images/Ao...ter/spacer.gif
> Request path: /all-in-one/images/AoG_blue.master/spacer.gif
> User host address: 10.0.0.3
> User:
> Is authenticated: False
> Authentication Type:
> Thread account name: THEFAITHWORKS\IWAM_FWSERVER01
>
> Thread information:
> Thread ID: 1
> Thread account name: THEFAITHWORKS\IWAM_FWSERVER01
> Is impersonating: False
> Stack trace: at
> System.Web.HttpForbiddenHandler.ProcessRequest(Htt pContext context)
> at
> System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
> at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
> completedSynchronously)
>
>
> Custom event details:
>
> For more information, see Help and Support Center at

Apr 7 '06 #5
Solved it - it's a bit of an odd one.

Basically, it didn't work because one of the folder names was
"AoG_blue.master"

The problem is that ".master" has a registered mapping to the aspnet dll,
and it was presumably trying to process it. As soon as I changed the folder
name to "AoG_blue_master", it started working.

The reason it worked on my PC but not the server is that on my PC, it was
being tested with the built in web server with VWD, rather than with IIS,
which obviously is what's running on the server.

Thanks

Iain
"iainfogg" wrote:
Hi, DWS

This code works fine on my PC - the path to the images is "../images", as
the web page is in a folder called web which sits at the same level as the
images folder.

I have since tried this on a separate server, and have got the same result
(i.e. the same problem). Is there anything I need to do to get GIFs to
appear? Surely this should be default behaviour?

Is there anything to do with the web.config or machine.config that needs
changing?

Ta

Iain

"DWS" wrote:
Good Morning Ian,

../images .. says to go up a directory. try removing the ../

<td background="../images/AoG_blue.master/blue_headings.gif" width="754"
height="84">
<td background="images/AoG_blue.master/blue_headings.gif" width="754"
height="84">

If you're making dotnet controls in code you write
image.imageurl="~/images/Aog_blue.master...

Good Luck
DWS
"iainfogg" wrote:
Hi DWS

If I put the link to the GIF directly, I an error saying:

This type of page is not served.
Description: The type of page you have requested is not served because it
has been explicitly forbidden. The extension '.gif' may be incorrect.
Please review the URL below and make sure that it is spelled correctly.

Requested URL: /all-in-one/images/AoG_blue.master/outreach_hdr.gif

=============

Also, here are a couple of sample bits of HTML, none of which work:

<td background="../images/AoG_blue.master/blue_headings.gif" width="754"
height="84">

<td><img src="../images/AoG_blue.master/spacer.gif" width="200"
height="30"></td>
</tr>
<tr>
<td> <img src="../images/AoG_blue.master/outreach_hdr.gif"
width="754" height="66"></td>

Thanks

Iain
"DWS" wrote:

> Hello,
> Please send more information.
> Can you load the graphics by typing address in browser?
> Can you show us some of the html sent to the client browser?
>
>
> Thanks
> DWS
>
> "iainfogg" wrote:
>
> > I had an ASP.NET 2.0 site which works fine on my PC. I have just copied it to
> > a server, and set it up to run in a virtual folder. The web pages work fine,
> > but the graphics won't load - if I try to open a gif from one of the folders,
> > I get the following message. Why would an ASPX file load, but a GIF file
> > won't?
> >
> > I have tried messing with security on the files, and have even given
> > 'Everyone' access to read and execute, but still no joy.
> >
> > Surely I don't need a specific httphandler for GIFs and JPEGs?
> >
> > Thanks!
> >
> > Event code: 3005
> > Event message: An unhandled exception has occurred.
> > Event time: 07/04/2006 09:33:14
> > Event time (UTC): 07/04/2006 08:33:14
> > Event ID: 6c1b482203d248a287fd180cd08e563e
> > Event sequence: 6
> > Event occurrence: 1
> > Event detail code: 0
> >
> > Application information:
> > Application domain: /LM/W3SVC/1/Root/all-in-one-1-127888723889584620
> > Trust level: Full
> > Application Virtual Path: /all-in-one
> > Application Path: C:\Inetpub\all_in_one\
> > Machine name: FWSERVER01
> >
> > Process information:
> > Process ID: 6876
> > Process name: w3wp.exe
> > Account name: THEFAITHWORKS\IWAM_FWSERVER01
> >
> > Exception information:
> > Exception type: HttpException
> > Exception message: Path '/all-in-one/images/AoG_blue.master/spacer.gif'
> > is forbidden.
> >
> > Request information:
> > Request URL: http://10.0.0.3/all-in-one/images/Ao...ter/spacer.gif
> > Request path: /all-in-one/images/AoG_blue.master/spacer.gif
> > User host address: 10.0.0.3
> > User:
> > Is authenticated: False
> > Authentication Type:
> > Thread account name: THEFAITHWORKS\IWAM_FWSERVER01
> >
> > Thread information:
> > Thread ID: 1
> > Thread account name: THEFAITHWORKS\IWAM_FWSERVER01
> > Is impersonating: False
> > Stack trace: at
> > System.Web.HttpForbiddenHandler.ProcessRequest(Htt pContext context)
> > at
> > System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
> > at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
> > completedSynchronously)
> >
> >
> > Custom event details:
> >
> > For more information, see Help and Support Center at

Apr 7 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Nick | last post by:
Hello, I wanted to know if anybody has any good suggestions of any books or other resources that could teach me how to make good Web graphics and how to use them in HTML to make Web pages look...
21
by: BlackHawke | last post by:
My name is Nick Soutter, I own a small game development company (www.aepoxgames.net) making our first game (www.andromedaonline.net) in java. I am writing because we are having a very...
5
by: Al Sav | last post by:
I have the following in form load. When the form shows up, the graphics vanishes. This works, if I execute this from button_click. But, even that vanishes if minimize and restore the form. Similar...
8
by: **Developer** | last post by:
Seems that Dot.net can not handle files of Indexed Pixel Format as well as other types of formats. Given a file or and Image of type Indexed Pixel Format is there a method to convert it to some...
0
by: giovanni gherdovich | last post by:
Hello, first of all: Is this the right place to ask plastek-related questions? I'm trying to make plastex work on my Ubuntu Dapper Drake. For LaTeX, I have the all-in-one package tetex.
2
by: Tark Siala | last post by:
hi i'm wprking with C# 2005 + SP1, and i want load image from image file, and then resize it (like from 800X600 Pixel to 640X480 Pixel), and then save it in another image file, i want do that for...
5
by: simon | last post by:
hello, I have a server set up on my local (home) network and can not get an ajax application to run on the box. it works fine on our developement server and also works fine locally. I...
14
by: Joe | last post by:
this file is drawn in VB.NET and input output goes by XmlSerializer. Therefore, simple output file looks like: <?xml version="1.0" encoding="utf-8"?> <DrawablePicture...
8
by: ofiras | last post by:
Hi, I made a "Paint" program, but I couldn't find a method to paint 1 pixel using graphic state ("Graphics g = Graphics.FromHwnd(this.Handle);") How can I paint 1 pixel? I guess I can make a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.