Solved

Asp.net mvc C#

Posted on 2016-09-16
2
37 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

863 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

28 Experts available now in Live!

Get 1:1 Help Now