Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Local asp.net test server won't show images

Reply
Thread Tools

Local asp.net test server won't show images

 
 
Neil C
Guest
Posts: n/a
 
      08-15-2006
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?

 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      08-15-2006
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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?
>



 
Reply With Quote
 
 
 
 
Neil C
Guest
Posts: n/a
 
      08-15-2006
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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) 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?
> >


 
Reply With Quote
 
Neil C
Guest
Posts: n/a
 
      08-15-2006
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" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed) 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?
> > >


 
Reply With Quote
 
Neil C
Guest
Posts: n/a
 
      08-16-2006
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" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed) 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?
> > > >


 
Reply With Quote
 
elizas elizas is offline
Junior Member
Join Date: Jan 2010
Location: India
Posts: 29
 
      05-04-2010
To enable it open an aspx page and follow the following steps:

1. Click on "View"
2. Click on "Formatting Marks"
3. Click on "Show"
4. Repeat step-1 and step-2
5. Click on "Tag Marks"
Now tags will be shown in the design view.
 
Reply With Quote
 
dmajeed dmajeed is offline
Junior Member
Join Date: Jul 2010
Posts: 1
 
      07-10-2010
i have installed IIS and in design mode i can see the image but browser doesn't show it the image path is f:\pics\1.jpg and i have hardcode this in ImageUrl as
ImageUrl="f:\pics\1.jpg" still i see small image icon in IE but no image.

plz help!!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed: The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID {555F3418-D99E-4E51-800A-6E89CFD8B1D7} to the user NT AUTHORITY\LOCAL SERVICE SID (S-1-5-19). Skybuck Flying Windows 64bit 1 06-29-2009 06:17 PM
Posted 2 messages that didn't show Test test L.D. Computer Support 18 07-30-2007 01:47 AM
.NET 2.0: Sending email on local domain to local exchange 2K server Jim in Arizona ASP .Net 8 01-24-2006 05:37 PM
test test test test test test test Computer Support 2 07-02-2003 06:02 PM
Can't use 'local' to find sql server instances on local machine karim ASP .Net 1 06-26-2003 09:17 PM



Advertisments