Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
FileResult method is not downloading file.
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
somanath mishra
8y
246
1
Reply
when i click from browser "Download button" it will download my log file which is present in App_Data. my code was
[HttpGet]
public FileResult LogsDownload()
{
return File("~//App_Data//log.txt","text/plain","log.txt");
}
and i am calling this method through ajax from view page.But it returning error that "Process cannot access this file because it is using by another process".
plz help me.Thank you
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
how to pass mutiple city id for each loop
Data Gridview Scroll bar