Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
We are using a NAS storage in our web application which is added as virtual directory in IIS 6.0 . If we are accessing files like www.mywebsite.com/Virtualdirectorypath/imagename.jpg we are able to view the image .
But when we access in local network with ip address and path like
123.4.5.6/Virtualdirectorypath/imagename.jpg it is not showing..
what could be the problem ?Is it a permission problem ?
 
Any help appreciated
 
Thanks in Advance...
Posted 12-Dec-12 3:36am
Edited 12-Dec-12 18:15pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,
 
Its not a permission problem, because its is accessed through domain name.
 
Domain is nothing just a string to represent IP.
 
Checking :
 
1. Open command prompt
2. write ping www.mywebsite.com[^]
3. Copy ip and try with that ip.
  Permalink  
Comments
ancymathew at 13-Dec-12 1:08am
   
Thanks Suvabrata ...for your response..
 
I tried the way that you specified ..with ip from command prompt..
even that is also not working ..there is a another directory(not nas storage) in same path which contains images...i can access that also..
only nas storage have problem..
Another thing is i tried by adding another website without domain..
In that case i can view the images through our local ip and path.
I dont know if it is related to some settings problem...
 
Thanks in advance
Suvabrata Roy at 13-Dec-12 1:21am
   
you should try in this format http://IP/Virtualdirectorypath/imagename.jpg
 
The IP which you get after pinging the Domain name
 
this should work.
ancymathew at 13-Dec-12 2:06am
   
Thanks Suvabrata for your quick response..:) we are using the same path which u mentioned ... As i mentioned with the ip which i got after pinging with directory which is not nas storage is accessible..this folder and nas storage are in same root.but if we specified nas storage directory it is not showing http://IP/Virtualdirectorypathofnasstorage/imagename.jpg not working http://IP/Virtualdirectorypathofcommondirectory/imagename.jpg Working Thanks
Suvabrata Roy at 13-Dec-12 2:14am
   
Virtualdirectorypathofnasstorage : is the path defined in you NAS if so then it will not work.
 
because if you typing Http then your request is running by default against network service so network service dose not have permission at that folder, but when you using VD (virtual directory) then your request sent to IIS then IIS request the defined user to access that particular file and getting back the stream and sending the same stream to the browser then Image is opening. :)
ancymathew at 13-Dec-12 2:56am
   
Thanks Suvabrata ..
Sorry ..I think my comment have some problem... By
"Virtualdirectorypathofnasstorage" I didnt mean it is the path in nas storage.
it is the path of virtual directory which is a nas storage folder...
 
And about your second comment can i give permission for network service
to this virtual directory ? .other virtual directory files can access like this.only this nas storage virtual directory have problem.
Even the same webiste i added in same server without host header. Then
also i can access these files with the ip(local) and path ...
Or did i miss something in ur comment ?
 
Thanks
Suvabrata Roy at 13-Dec-12 3:28am
   
If i can get into your server then it very helpful for me to under stand the problem.
Anyway compare the permission with other NAS which are working at your sever.
Best of Luck

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 304
1 Sergey Alexandrovich Kryukov 255
2 Shweta N Mishra 216
3 Maciej Los 210
4 PIEBALDconsult 184
0 OriginalGriff 7,660
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,665


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 12 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100