Azure Cloud Service There is not enough space on the disk -


i have been getting error: exception details: system.io.ioexception: there not enough space on disk.

i know happening because when user comes page zip file him/her downloaded , unzipped. each zip has around 45 mb , when unzipped around 50 mb. start getting error after few visits page (i believe when 1 gb downloaded) , saved locally cloud service disc

i'm running cloud service on azure, size of service medium:

local resource = 489 gb apps = approx. 1.5 gb

is there way can increase size of disc can save let's 50 gb ?

edit

here part of code error:

using (var client = new webclient())         {             client.downloadfile(link, hostingenvironment.mappath("~/ebookdownloads/" + name));               using (zipfile zip = zipfile.read(hostingenvironment.mappath("~/ebookdownloads/" + name)))             {                 foreach (var e in zip)                 {                     e.extract(foldertocreate, extractexistingfileaction.overwritesilently); // overwrite == false                     // var filepath = httpcontext.server.mappath("~/ebookdownloads/" + nameoffolder + "/" + e.filename);                     var filepath = path.combine(server.mappath("~/ebookdownloads/" + nameoffolder), e.filename);                     listoflinks.add(new ebookshelper { name = e.filename, size = bytestostring(new fileinfo(filepath).length), url = "/platinum/downloadebook?name=" + e.filename });                     var y = e;                 }                       }         } 

you use local storage resources, added inside service definition, e.g.:

<servicedefinition>   <webrole name="myservice_webrole" vmsize="medium">     <localresources>       <localstorage name="localstoragename" sizeinmb="50000" cleanonrolerecycle="false" />     </localresources>   </webrole> </servicedefinition> 

to access local storage runtime use roleenvironment.getlocalresource(name) able path local storage.

var localresource = roleenvironment.getlocalresource("localstoragename"); var rootpath = localresource.rootpath 

Comments