Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Image doesn't load and security on folder is the cause??

Reply
Thread Tools

Image doesn't load and security on folder is the cause??

 
 
Filip De Backer
Guest
Posts: n/a
 
      01-27-2005
hi everyone,

On the webserver, all the websites are in folders on the d-drive.
eg: my test website is 'd:\dir1\dir2\websites\asptest'.
The IIS is configurated that all th esite sare in the d:\...\websites\
directory

I want to show a picture in the Image control.
The images are in 'd:\dir1\dir2\websites\asptest\pictures'.

when I said ImageUrl= "/asptest/pictures/picture1.jpg, it doesn't work.
All the domain users and the asp .net machine user have full control to this
folder, and still it doesn't work.

But when I've created a share for thedirectory, it works fine.
so ImageUrl="\\servername\sharename$\pictures\picture 1.jpg" works fine.

How does this come?

thanks for the answers,

Filip

 
Reply With Quote
 
 
 
 
Ken Schaefer
Guest
Posts: n/a
 
      01-27-2005
Please do a "view source" in your browser, and post the relevant HTML that
isn't working. You are looking for an

<img src="...." >

tag. Does the src= attribute appear to contain a valid URL?

Cheers
Ken

"Filip De Backer" <.(donotspam)> wrote in message
news:7AA256CC-0EF0-4D92-A457-...
> hi everyone,
>
> On the webserver, all the websites are in folders on the d-drive.
> eg: my test website is 'd:\dir1\dir2\websites\asptest'.
> The IIS is configurated that all th esite sare in the d:\...\websites\
> directory
>
> I want to show a picture in the Image control.
> The images are in 'd:\dir1\dir2\websites\asptest\pictures'.
>
> when I said ImageUrl= "/asptest/pictures/picture1.jpg, it doesn't work.
> All the domain users and the asp .net machine user have full control to
> this
> folder, and still it doesn't work.
>
> But when I've created a share for thedirectory, it works fine.
> so ImageUrl="\\servername\sharename$\pictures\picture 1.jpg" works fine.
>
> How does this come?
>
> thanks for the answers,
>
> Filip
>



 
Reply With Quote
 
 
 
 
Ken Schaefer
Guest
Posts: n/a
 
      01-27-2005
Additionally, check your IIS logfiles to determine why the file is not being
sent to the client.

Cheers
Ken

"Ken Schaefer" <> wrote in message
news:...
> Please do a "view source" in your browser, and post the relevant HTML that
> isn't working. You are looking for an
>
> <img src="...." >
>
> tag. Does the src= attribute appear to contain a valid URL?
>
> Cheers
> Ken
>
> "Filip De Backer" <.(donotspam)> wrote in
> message news:7AA256CC-0EF0-4D92-A457-...
>> hi everyone,
>>
>> On the webserver, all the websites are in folders on the d-drive.
>> eg: my test website is 'd:\dir1\dir2\websites\asptest'.
>> The IIS is configurated that all th esite sare in the d:\...\websites\
>> directory
>>
>> I want to show a picture in the Image control.
>> The images are in 'd:\dir1\dir2\websites\asptest\pictures'.
>>
>> when I said ImageUrl= "/asptest/pictures/picture1.jpg, it doesn't work.
>> All the domain users and the asp .net machine user have full control to
>> this
>> folder, and still it doesn't work.
>>
>> But when I've created a share for thedirectory, it works fine.
>> so ImageUrl="\\servername\sharename$\pictures\picture 1.jpg" works fine.
>>
>> How does this come?
>>
>> thanks for the answers,
>>
>> Filip
>>

>
>



 
Reply With Quote
 
Filip De Backer
Guest
Posts: n/a
 
      01-27-2005
if (File.Exists(strPicturePath))
{
strHtml = strHtml + "<img src='" + strPicturePath + "'>";
}

So there isn't any img tag in my html page, but when use the share on the
directory it works


"Ken Schaefer" wrote:

> Please do a "view source" in your browser, and post the relevant HTML that
> isn't working. You are looking for an
>
> <img src="...." >
>
> tag. Does the src= attribute appear to contain a valid URL?
>
> Cheers
> Ken
>
> "Filip De Backer" <.(donotspam)> wrote in message
> news:7AA256CC-0EF0-4D92-A457-...
> > hi everyone,
> >
> > On the webserver, all the websites are in folders on the d-drive.
> > eg: my test website is 'd:\dir1\dir2\websites\asptest'.
> > The IIS is configurated that all th esite sare in the d:\...\websites\
> > directory
> >
> > I want to show a picture in the Image control.
> > The images are in 'd:\dir1\dir2\websites\asptest\pictures'.
> >
> > when I said ImageUrl= "/asptest/pictures/picture1.jpg, it doesn't work.
> > All the domain users and the asp .net machine user have full control to
> > this
> > folder, and still it doesn't work.
> >
> > But when I've created a share for thedirectory, it works fine.
> > so ImageUrl="\\servername\sharename$\pictures\picture 1.jpg" works fine.
> >
> > How does this come?
> >
> > thanks for the answers,
> >
> > Filip
> >

>
>
>

 
Reply With Quote
 
Ken Schaefer
Guest
Posts: n/a
 
      01-27-2005
There must be an <img> tag in your HTML source. Your web-browser only
understands HTML.

Don't look in your code source. You need to look in your *HTML* source (in
your web-browser).

Cheers
Ken

"Filip De Backer" <.(donotspam)> wrote in message
news:7012D6A3-6C51-4B5B-9F17-...
> if (File.Exists(strPicturePath))
> {
> strHtml = strHtml + "<img src='" + strPicturePath + "'>";
> }
>
> So there isn't any img tag in my html page, but when use the share on the
> directory it works
>
>
> "Ken Schaefer" wrote:
>
>> Please do a "view source" in your browser, and post the relevant HTML
>> that
>> isn't working. You are looking for an
>>
>> <img src="...." >
>>
>> tag. Does the src= attribute appear to contain a valid URL?
>>
>> Cheers
>> Ken
>>
>> "Filip De Backer" <.(donotspam)> wrote in
>> message
>> news:7AA256CC-0EF0-4D92-A457-...
>> > hi everyone,
>> >
>> > On the webserver, all the websites are in folders on the d-drive.
>> > eg: my test website is 'd:\dir1\dir2\websites\asptest'.
>> > The IIS is configurated that all th esite sare in the d:\...\websites\
>> > directory
>> >
>> > I want to show a picture in the Image control.
>> > The images are in 'd:\dir1\dir2\websites\asptest\pictures'.
>> >
>> > when I said ImageUrl= "/asptest/pictures/picture1.jpg, it doesn't work.
>> > All the domain users and the asp .net machine user have full control to
>> > this
>> > folder, and still it doesn't work.
>> >
>> > But when I've created a share for thedirectory, it works fine.
>> > so ImageUrl="\\servername\sharename$\pictures\picture 1.jpg" works fine.
>> >
>> > How does this come?
>> >
>> > thanks for the answers,
>> >
>> > Filip
>> >

>>
>>
>>



 
Reply With Quote
 
Filip De Backer
Guest
Posts: n/a
 
      01-27-2005
I've checked the source in the webbrowser, so that's why I've posted that
piece of code.... I relly don't know what the difference is between the two
pethods of getting the picture.


"Ken Schaefer" wrote:

> There must be an <img> tag in your HTML source. Your web-browser only
> understands HTML.
>
> Don't look in your code source. You need to look in your *HTML* source (in
> your web-browser).
>
> Cheers
> Ken
>
> "Filip De Backer" <.(donotspam)> wrote in message
> news:7012D6A3-6C51-4B5B-9F17-...
> > if (File.Exists(strPicturePath))
> > {
> > strHtml = strHtml + "<img src='" + strPicturePath + "'>";
> > }
> >
> > So there isn't any img tag in my html page, but when use the share on the
> > directory it works
> >
> >
> > "Ken Schaefer" wrote:
> >
> >> Please do a "view source" in your browser, and post the relevant HTML
> >> that
> >> isn't working. You are looking for an
> >>
> >> <img src="...." >
> >>
> >> tag. Does the src= attribute appear to contain a valid URL?
> >>
> >> Cheers
> >> Ken
> >>
> >> "Filip De Backer" <.(donotspam)> wrote in
> >> message
> >> news:7AA256CC-0EF0-4D92-A457-...
> >> > hi everyone,
> >> >
> >> > On the webserver, all the websites are in folders on the d-drive.
> >> > eg: my test website is 'd:\dir1\dir2\websites\asptest'.
> >> > The IIS is configurated that all th esite sare in the d:\...\websites\
> >> > directory
> >> >
> >> > I want to show a picture in the Image control.
> >> > The images are in 'd:\dir1\dir2\websites\asptest\pictures'.
> >> >
> >> > when I said ImageUrl= "/asptest/pictures/picture1.jpg, it doesn't work.
> >> > All the domain users and the asp .net machine user have full control to
> >> > this
> >> > folder, and still it doesn't work.
> >> >
> >> > But when I've created a share for thedirectory, it works fine.
> >> > so ImageUrl="\\servername\sharename$\pictures\picture 1.jpg" works fine.
> >> >
> >> > How does this come?
> >> >
> >> > thanks for the answers,
> >> >
> >> > Filip
> >> >
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Ken Schaefer
Guest
Posts: n/a
 
      01-28-2005
If you are using Internet Explorer, use View -> Source.

Notepad should open, and you should see the HTML source sent from the
webserver to the browser. Check the <img> tag to see what it looks like.
Post that here.

Cheers
Ken


"Filip De Backer" <.(donotspam)> wrote in message
news:BD91D804-021A-43AD-B59B-...
> I've checked the source in the webbrowser, so that's why I've posted that
> piece of code.... I relly don't know what the difference is between the
> two
> pethods of getting the picture.
>
>
> "Ken Schaefer" wrote:
>
>> There must be an <img> tag in your HTML source. Your web-browser only
>> understands HTML.
>>
>> Don't look in your code source. You need to look in your *HTML* source
>> (in
>> your web-browser).
>>
>> Cheers
>> Ken
>>
>> "Filip De Backer" <.(donotspam)> wrote in
>> message
>> news:7012D6A3-6C51-4B5B-9F17-...
>> > if (File.Exists(strPicturePath))
>> > {
>> > strHtml = strHtml + "<img src='" + strPicturePath + "'>";
>> > }
>> >
>> > So there isn't any img tag in my html page, but when use the share on
>> > the
>> > directory it works
>> >
>> >
>> > "Ken Schaefer" wrote:
>> >
>> >> Please do a "view source" in your browser, and post the relevant HTML
>> >> that
>> >> isn't working. You are looking for an
>> >>
>> >> <img src="...." >
>> >>
>> >> tag. Does the src= attribute appear to contain a valid URL?
>> >>
>> >> Cheers
>> >> Ken
>> >>
>> >> "Filip De Backer" <.(donotspam)> wrote in
>> >> message
>> >> news:7AA256CC-0EF0-4D92-A457-...
>> >> > hi everyone,
>> >> >
>> >> > On the webserver, all the websites are in folders on the d-drive.
>> >> > eg: my test website is 'd:\dir1\dir2\websites\asptest'.
>> >> > The IIS is configurated that all th esite sare in the
>> >> > d:\...\websites\
>> >> > directory
>> >> >
>> >> > I want to show a picture in the Image control.
>> >> > The images are in 'd:\dir1\dir2\websites\asptest\pictures'.
>> >> >
>> >> > when I said ImageUrl= "/asptest/pictures/picture1.jpg, it doesn't
>> >> > work.
>> >> > All the domain users and the asp .net machine user have full control
>> >> > to
>> >> > this
>> >> > folder, and still it doesn't work.
>> >> >
>> >> > But when I've created a share for thedirectory, it works fine.
>> >> > so ImageUrl="\\servername\sharename$\pictures\picture 1.jpg" works
>> >> > fine.
>> >> >
>> >> > How does this come?
>> >> >
>> >> > thanks for the answers,
>> >> >
>> >> > Filip
>> >> >
>> >>
>> >>
>> >>

>>
>>
>>



 
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
Got rid of NSIS Media Popups Just uninstalled WinAmp and removed Winamp folder and NSIS folder Ed Computer Support 0 12-30-2006 01:27 AM
Re: Find file names from /image folder at load CodeMeister ASP .Net 0 05-14-2004 11:19 PM
Re: Find file names from /image folder at load CT ASP .Net 0 05-13-2004 06:17 AM
IT-Security, Security, e-security COMSOLIT Messmer Computer Support 0 09-05-2003 08:34 AM
How To Browse for an image file and save it to image server folder Mike John ASP .Net 0 07-28-2003 04:55 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57