hyperlinks in asp.net do nothing in latest chrome and edge. Work fine in internet explorer

Andy Drury 1 Reputation point
2021-06-03T07:35:28.047+00:00

Hi,

We have an intranet page designed in asp.net with the following section in.

<td class="style91"><a href="file://ukfd-al-fs01/UKFDJobs/Reports/WeekNumberDespatchReportComb.xltm">

<img alt="" class="style3" src="Images/Spreadsheet2.jpg" /></a></td>

When we click on this in internet explorer excel opens the file as designed.

However in latest chrome and edge on windows 10 nothing happens when click on this.

Why is this ?, can this be rectified.

Developer technologies ASP.NET Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,096 Reputation points
    2021-06-04T03:29:58.327+00:00

    Hi @Andy Drury ,
    Chrome:
    Chrome specifically blocks local file access for security reasons .

    • Method 1 : Disable Chrome built-in security measures
      The command: /path/to/chrome_binary –allow-file-access-from-files -disable-web-security
    • Method 2 : Run a simple server serving static files

    More details,you could refer to below article:
    https://linuxpip.org/fix-not-allowed-to-load-local-resource/

    Edge:
    Solution: You have to configure via Policy the specific sites which should use the IEMode, all other sites will render as modern web sites.
    More details,you could refer to below article:
    https://www.ilikesharepoint.de/2020/05/not-allowed-to-load-local-resource-in-microsoft-edge/
    Best regards,
    Yijing Sun


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.