Solved

Asp.net mvc C#

Posted on 2016-09-16
2
31 Views
Last Modified: 2016-09-16
HI Guys,

I have mvc project and I would like to show image files on my pages, these images located in the UNC path on one of my server at work.

How do I access to the network location let's say "\\server\test\file.jpg" and show the image on my page.
I was trying to use the IO assembly and do it but no luck.

Thank you.
0
Comment
Question by:Moti Mashiah
2 Comments
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
Comment Utility
You can not access network locations for security reasons, you should map your network folder to IIS Virtual Directory and then access just like any other folder in you site.
See Create IIS Virtual Directories for steps on how to create one.
0
 
LVL 1

Author Closing Comment

by:Moti Mashiah
Comment Utility
Was helpful.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now