Solved

Asp.net mvc C#

Posted on 2016-09-16
2
45 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 36

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
I need help changing the default value for an @HTML.LabelFor control 4 38
asp.net figure out error 3 26
SSIS GUID Variable 2 37
CSS for Popup in ASP.NET 4 19
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

730 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