Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have one requirement and it is most important of my project.
I'm using multiple buttons used in my dashboard.
I have some files and kept it in file server path like \\RMN\T001\PROC\MATERIALDB\MAT01210821.png
I have service account like "ZSANER\MENACT001"
The above service account has been mapped with the above file server path ZSANER\MENACT001 ==> RMN (Parent folder Mapped)
my question is how do we call direct file path through this service account (like using impersonate).
This is most critical requirement in my industry and waiting to resolve this issue...
Solved! Go to Solution.
I created website and used below code. Called website url in button event.
string folder = @"\\RMN\T001\PROC\MATERIALDB\";
string fileName="MAT01210821.png";
string filePath=Path.Combine(folder, fileName) ;
Response.ContentType = ("application/pdf");
Response.AddHeader("content-disposition", "attachment; filename=" + fileName);
Response.TransmitFile(filePath);
create new app pool in IIS, and apply service account instead of using web config file.
Map that new pool in that website.
It's working perfect.
Thanks.
Any update on this query...? This is very urgent...
I created website and used below code. Called website url in button event.
string folder = @"\\RMN\T001\PROC\MATERIALDB\";
string fileName="MAT01210821.png";
string filePath=Path.Combine(folder, fileName) ;
Response.ContentType = ("application/pdf");
Response.AddHeader("content-disposition", "attachment; filename=" + fileName);
Response.TransmitFile(filePath);
create new app pool in IIS, and apply service account instead of using web config file.
Map that new pool in that website.
It's working perfect.
Thanks.
Thanks for your sharing.