Getting error to open the file through service account in ASP.NET

BeUnique 2,332 Reputation points
2021-08-25T13:41:19.973+00:00

i am using Treeview controls and mentioning direct file server path inside the NavigateURL.

we have new service account and has mapped with the file server folder and it's ready for accessible. (It's working fine).

when accessing through application, getting below error -->
cannot find "\USA\NYK\EMPDB\EMPDETAILS\EMP00101.drng" Make sure the path or Internet address is correct

The same folder will work when accessing through physical login of service account.

We did all the settings and configuration followed by many research. but, not able to get the solution..?

pls. advice.

<asp:TreeView ID="TreeView1" runat="server" ExpandDepth="1" Font-Names="Trebuchet MS" Font-Size="15px" ForeColor="#E98300" Font-Bold="true"> <Nodes> <asp:TreeNode Text="EmpStatus" Value="EmpStatus"> <asp:TreeNode Text="USEMP" Value="USEMP"> <asp:TreeNode Text="EMPUS" Value="EMPUS" NavigateUrl="\USA\NYK\EMPDB\EMPDETAILS\EMP00101.drng" Target="_blank"></asp:TreeNode> </asp:TreeNode> </asp:TreeNode>



</asp:TreeNode>
</Nodes>
</asp:TreeView>

Web.config

<identity impersonate="true" userName="DUENET\DATAPM1010" password ="******"></identity>

Developer technologies | ASP.NET | Other
{count} votes

1 answer

Sort by: Most helpful
  1. BeUnique 2,332 Reputation points
    2021-08-31T09:56:46.487+00:00

    Thanks for your great help.

    I mapped service account with file server in my local system..

    and i logged again using service account with file server path.

    It's working now..

    0 comments No comments

Your answer

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