Solved

Asp.net mvc C#

Posted on 2016-09-16
2
43 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
ID: 41802553
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
ID: 41802577
Was helpful.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

839 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