473,386 Members | 2,078 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,386 software developers and data experts.

No Images from VPN

I have an ASP.Net 2.0 page that displays images in a DataList from a virtual
directory on a different server in the domain. All works fine at a regular
workstation, but when I log in via our VPN the images do not show, only a
red X shows where the image should be. Any ideas why this happens and where
I need to look to get them to display?

Below is how I am populating the DataList.

Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)

If Not Page.IsPostBack Then

Dim strpath As String = "/MyWeb/Photos/DAUCHY, JOE/RO25369"

Dim dirInfo As New DirectoryInfo(Server.MapPath(strpath))
PhotoList.DataSource = dirInfo.GetFiles("*.jpg")

PhotoList.DataBind()

End If

End Sub

David
May 1 '07 #1
4 1120
are you accessing images via https? obviously it's not able to find the url
for image. can u right-click on broken image and look at the url?
May 1 '07 #2
No, we are accessing images directly from server url, e.g.
\\server\share\somefile.jpg

David

"Vijay" <Vi***@discussions.microsoft.comwrote in message
news:98**********************************@microsof t.com...
are you accessing images via https? obviously it's not able to find the
url
for image. can u right-click on broken image and look at the url?

May 1 '07 #3

Try using a fully-qualified server name..

\\server.yourcompany.com\share\somfile.jpg

Or better yet put the images on the web server and reference them
through http.

HTH,

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Tue, 1 May 2007 16:29:51 -0500, "David C" <dl*****@lifetimeinc.com>
wrote:
>No, we are accessing images directly from server url, e.g.
\\server\share\somefile.jpg

David

"Vijay" <Vi***@discussions.microsoft.comwrote in message
news:98**********************************@microso ft.com...
>are you accessing images via https? obviously it's not able to find the
url
for image. can u right-click on broken image and look at the url?
May 2 '07 #4
No, we are accessing images directly from server url, e.g.
\\server\share\somefile.jpg

David
You *hope* to reference those images by that path. But Server.MapPath returns
an absolute path like "C:\whatever\MyWeb\Photos\DAUCHY, JOE\RO25369\".
This will work fine on the system where the image is, but not if you are
accessing
it from some other computer (whether VPN or not).
Look at the html source in the browser and try to locate the image. What
is the
URL that you find there?
You will have to translate the image path back to some path that is accessible
via IIS.

Hans Kesting
>
"Vijay" <Vi***@discussions.microsoft.comwrote in message
news:98**********************************@microsof t.com...
>are you accessing images via https? obviously it's not able to find
the
url
for image. can u right-click on broken image and look at the url?

May 2 '07 #5

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

Similar topics

7
by: Wayne | last post by:
I have a script that uses filesystemobject that reads files from a given path, in my case images. It is running on a server that is 2000 adv svr w/ all current patches. The script prior to some...
3
by: Simon | last post by:
This problem has been driving me mad for months.... Seen a few posts on forums about it but no answers... No mention on MSDN etc. XP Pro SP1, VS.NET (c#) .Net framework 1.1, IIS 5.1. In a...
10
by: Neo Geshel | last post by:
I am seeking to hand-roll my own blog in ASP.NET 2.0 and SQLExpress 2005. Why? Because I can. Because I will gain experience. The one thing that has me stumped at square one is inline images....
6
by: wattanabi | last post by:
Greetings, I'm attempting to layout a bunch of images in a grid using DIV's instead of a table. I currently have a 3x6 table that I need to convert to css. I've seen various example of a 3 to 4...
2
by: mouseit101 | last post by:
Hi, I'm writing a script that would (hopefully) search google images for whatever, and then return a list of URLs for the image. Right now I have: $dom = new DomDocument(); $url =...
0
by: Frenchie | last post by:
Hi, I have created a very neet menu from an example found on the MSDN library at: http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.menuitembinding.imageurlfield.aspx My...
1
by: Cerebral Believer | last post by:
Hi folks, I am using the following code for mouse over (roll-overs) in my XHTML code. <a onmouseover="document.getElementById('sitemap').src = '../images/buttons/sitemap_mo.jpg';"...
4
toxicpaint
by: toxicpaint | last post by:
Hi, can anyone give me a hand. I'm currently displaying 4 random images at the top of a page. I did this using an array of 35 pictures and then writing them to page. The problem I have is that in...
5
by: remon87 | last post by:
I need some help. I have javasript that creates the submenu but it works if I have a text with css. I need it to do the same with a roll over images. so when I click on the image the submenu...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.