TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ahmed elbarbary
NA
1.6k
277.8k
There is not enough space on the disk when create file by using csharp
May 24 2021 10:52 PM
I work on asp.net core api with .net core 2.2
but i get error
ex = {System.IO.IOException: There is not enough space on the disk : '\\192.168.2.7\ImportExport\testImporter\5\orignal-920e7c47-c345-4c40-86ac-6ecb9dde8e6c.xlsx\orignal-920e7c47-c345-4c40-86ac-6ecb9dde8e6c.xlsx'
at System.IO.FileStream.WriteCore(ReadOnlySpa..
var filedata = ContentDispositionHeaderValue.Parse(Request.Form.Files[0].ContentDisposition).FileName.Trim(
'"'
);
var dbPath = Path.Combine(DirectoryCreate, fileName);
using
(var stream =
new
FileStream(dbPath, FileMode.Create))
{
Request.Form.Files[0].CopyTo(stream);
stream.Flush();
stream.Close();
}
exception done on red line
so why this error happen
and how to avoid it
so how to solve issue please ?
dbpath variable as below
\\192.168.2.7\ImportExport\testImporter\5\orignal-85d31d98-8e98-427b-9c61-fce191f002b8.xlsx\orignal-85d31d98-8e98-427b-9c61-fce191f002b8.xlsx
Reply
Answers (
1
)
Set element property in Javascript when called from Update Panel
what is the difference between inheritance and a class object.