473,395 Members | 1,891 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,395 software developers and data experts.

Local asp.net test server won't show images

Ok, this seems weird, but i think it's a permissions problem (perhaps);
but I cannot seem to access any external resources within a web
project.
When I set up a new web app, add a resource to it, edit the default
aspx with an img tag, and run it, the generated html looks fine, but
the image will not show.
I test the path to the image and i can view it in my browser, but it
will not display on the page. Just to check i gave the img a width,
height and bgcolor and right-clicked>view image and it worked fine.
Has anyone encountered this before?

Aug 15 '06 #1
4 2556
No, but look at source on the page in question and see if it has a size of
1x1.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think Outside the Box!
*************************************************
"Neil C" <ne******@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Ok, this seems weird, but i think it's a permissions problem (perhaps);
but I cannot seem to access any external resources within a web
project.
When I set up a new web app, add a resource to it, edit the default
aspx with an img tag, and run it, the generated html looks fine, but
the image will not show.
I test the path to the image and i can view it in my browser, but it
will not display on the page. Just to check i gave the img a width,
height and bgcolor and right-clicked>view image and it worked fine.
Has anyone encountered this before?

Aug 15 '06 #2
That doesn't seem to be the case. Here's the output:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
</head>
<body>
<form id="form1">
<div>
<img style="width:200px; height:200px;
background-color:#CCCCCC;" src="image.jpg" alt="image" />
</div>
</form>
</body>
</html>

Additionally this renders as expected in design view in visual studio,
just not in execution. I don't think this is an html question...

Cowboy (Gregory A. Beamer) wrote:
No, but look at source on the page in question and see if it has a size of
1x1.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think Outside the Box!
*************************************************
"Neil C" <ne******@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Ok, this seems weird, but i think it's a permissions problem (perhaps);
but I cannot seem to access any external resources within a web
project.
When I set up a new web app, add a resource to it, edit the default
aspx with an img tag, and run it, the generated html looks fine, but
the image will not show.
I test the path to the image and i can view it in my browser, but it
will not display on the page. Just to check i gave the img a width,
height and bgcolor and right-clicked>view image and it worked fine.
Has anyone encountered this before?
Aug 15 '06 #3
On top of that, it seems that the asp.net website administration tool
will not show images either... As before i can view the images wth the
path that they're linked to in the page, but they will not render
visually on the page....
Is must be the way asp.net development server is set up (or installed)
Anyone have any suggestions?

Neil C wrote:
That doesn't seem to be the case. Here's the output:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
</head>
<body>
<form id="form1">
<div>
<img style="width:200px; height:200px;
background-color:#CCCCCC;" src="image.jpg" alt="image" />
</div>
</form>
</body>
</html>

Additionally this renders as expected in design view in visual studio,
just not in execution. I don't think this is an html question...

Cowboy (Gregory A. Beamer) wrote:
No, but look at source on the page in question and see if it has a size of
1x1.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think Outside the Box!
*************************************************
"Neil C" <ne******@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Ok, this seems weird, but i think it's a permissions problem (perhaps);
but I cannot seem to access any external resources within a web
project.
When I set up a new web app, add a resource to it, edit the default
aspx with an img tag, and run it, the generated html looks fine, but
the image will not show.
I test the path to the image and i can view it in my browser, but it
will not display on the page. Just to check i gave the img a width,
height and bgcolor and right-clicked>view image and it worked fine.
Has anyone encountered this before?
>
Aug 15 '06 #4
Riiight..
Well this is totally re-produceable..

All you have to do is get firefox to block images from localhost. Then
when you view pages from you computer they won't work, voila.......

Yeah i'm annonyed.. how did this block images from localhost occur??
Angry...

Cheers to cowboy for his assistance

Neil C wrote:
On top of that, it seems that the asp.net website administration tool
will not show images either... As before i can view the images wth the
path that they're linked to in the page, but they will not render
visually on the page....
Is must be the way asp.net development server is set up (or installed)
Anyone have any suggestions?

Neil C wrote:
That doesn't seem to be the case. Here's the output:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
</head>
<body>
<form id="form1">
<div>
<img style="width:200px; height:200px;
background-color:#CCCCCC;" src="image.jpg" alt="image" />
</div>
</form>
</body>
</html>

Additionally this renders as expected in design view in visual studio,
just not in execution. I don't think this is an html question...

Cowboy (Gregory A. Beamer) wrote:
No, but look at source on the page in question and see if it has a size of
1x1.
>
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
>
*************************************************
Think Outside the Box!
*************************************************
"Neil C" <ne******@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Ok, this seems weird, but i think it's a permissions problem (perhaps);
but I cannot seem to access any external resources within a web
project.
When I set up a new web app, add a resource to it, edit the default
aspx with an img tag, and run it, the generated html looks fine, but
the image will not show.
I test the path to the image and i can view it in my browser, but it
will not display on the page. Just to check i gave the img a width,
height and bgcolor and right-clicked>view image and it worked fine.
Has anyone encountered this before?
Aug 16 '06 #5

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

Similar topics

8
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set...
2
by: enrique | last post by:
Hello everyone, I'm looking for a "directory path" solution that will allows me to test my app locally and then test on remote web server without having to update my web.config file each time I...
6
by: =?Utf-8?B?QnNtZW5nZW4=?= | last post by:
I am trying to make sure that the local connection is up. I have presently been using the NetworkChange.NetworkAvailabilityChanged Event for this. Is there a better way to do this? Also, I...
5
Sl1ver
by: Sl1ver | last post by:
I have this piece of code public bool Write(string KeyName, object Value) { try { // Setting string subKey1 =...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.