Sujeet Raman

Sujeet Raman

  • 864
  • 927
  • 354.3k

why 'Downloading Excel files' failing in Production/UAT

Sep 8 2020 5:19 AM
Hi All,
 
I have a functionality to download excel file in a c#.net App(MVC).In my Local its downloading in the specified folder but when i deployed it is showing the error
Global Error Code :"Access to the path 'c:\myexcel.
I was trying to access C: folder downloads path of a specific user using Registry .I dont know this is the way to access or how can I access
 
 I am creating file path dynamicaly..
 
string path = Registry.GetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", "{374DE290-123F-4565-9164-39C4925E467B}", String.Empty).ToString();
 
How can I fix this issue ?How can i given a folder path accesible which i have to deploy in UAT Please help me on this

Answers (1)