Failed to open network folder from ASP.NET application

I used the following code to open network folder:
<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl =  "\\fileshare" Text="View related documents" Target="_blank">        </asp:HyperLink>

It runs well in server 'A' but not server 'B',
Both server running in win2008 IIS7. Kindly advise how to fix it
Panda 5888EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

udaya kumar laligondlaTechnical LeadCommented:
It's just a hyper link that you are creating, it's not dependent on server.  

What is the error are you getting ? Server error or client error ?

Post the error details or screen shots.
Panda 5888EngineerAuthor Commented:
There is no error shown. When click on the link, fileshare folder is not open. Applying same code to another server and it did open up the folder.
udaya kumar laligondlaTechnical LeadCommented:
Right click on the hyper link and copy the link using "copy link address" in chrome or "copy shortcut" in IE.
For both the servers and check the difference you are getting in the hyper link target.
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Prakash SamariyaIT ProfessionalCommented:
Use UNC path for network sharing file\folder path like below

<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl =  "file://///fileshare" Text="View related documents" Target="_blank">        </asp:HyperLink>

Open in new window

Panda 5888EngineerAuthor Commented:
I've requested that this question be deleted for the following reason:

Need to repost question
udaya kumar laligondlaTechnical LeadCommented:
You could give a correction comment if the issue is with the clarification of error. If the content of the question is wrong then it will be a new question.

I think it's not fair to delete question after solutions are suggested.
Panda 5888EngineerAuthor Commented:
Further checking showed that same issue happen in both server.
It works fine if click from http://server01/application/Default.aspx instead of

By removing the '' the folder can be open without issue.
udaya kumar laligondlaTechnical LeadCommented:
Have you checked the hyper link target of the resulted link. Post the hyper link result. You can use "file://targetpath" as link as suggested by "Prakash"
chrome.pngExamine the links generated by both servers. That may show the issue. Post the hyper links generated
Panda 5888EngineerAuthor Commented:
Both are showing same result
Prakash SamariyaIT ProfessionalCommented:
You can't access shared folder as your web URL like machine.domain. It is working as per shared name with the machine name (shared path will be accessible to same domain only) so it is not needed to use domain name in shared path!
Try to use as I suggested and let me know with the error/exception sapshot/details
file: must be followed by ///// (5 slash)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
udaya kumar laligondlaTechnical LeadCommented:
Use This

<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl =  "file://fileshare"  Text="View related documents"  Target="_new" />

and try
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.