• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 69
  • Last Modified:

Asp.net mvc C#

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
Moti Mashiah
Asked:
Moti Mashiah
1 Solution
 
Miguel OzSoftware EngineerCommented:
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
 
Moti MashiahAuthor Commented:
Was helpful.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now