Skip to content
Loading
Regarding get path of file
  • Piyush Pansuriya
    Hi,
    Please share your code what you have done actually. So, I can help you more on this. 
  • Hello Piyush sir,
    will you ellaborate more , which changes should be done in web.config.
    I am just asking you because I am very new to this technology. 
  • Piyush Pansuriya
    You have to configure into appsetting.json or web.config file.
     
    While publishing on server, you have to give permission to access that folder to IIS users. 
  • Hello Piyush sir,
    I have already created one folder in remote server.I have one folder with name Report on "D' drive of server.
    File name is Student.pdf . I want to open that file, so how can I configure that path in C# code so i can overcome on above problem.
  • Piyush Pansuriya
    Hi,
    Your physical path should be configurable, so you can set after publish.
     or
    You have to put your file at same location on remote server.