There is not enough space on the disk

Posted by Mamireddy under ASP.NET on 4/1/2014 | Points: 10 | Views : 4052 | Status : [Member] | Replies : 3
My application is running on live.
it's working fine right now but some times we got an error like "There is not enough space on the disk"
we have created a log file that and go that log file shows exceptions like below:

Inner Exception Type: ********** 3/28/2014 12:30:43 AM **********
Exception Type: System.Web.HttpException
Exception: Cannot find the 'DbConn' database in the configuration.
Source: System.Web
Stack Trace:
at System.Web.Caching.SqlCacheDependencyManager.GetDatabaseConfig(String database)
at System.Web.Caching.SqlCacheDependencyManager.InitPolling(String database)
at System.Web.Caching.SqlCacheDependencyManager.EnsureTableIsRegisteredAndPolled(String database, String table)
at System.Web.Caching.SqlCacheDependency.GetDependKey(String database, String tableName)
at System.Web.Caching.SqlCacheDependency..ctor(String databaseEntryName, String tableName)
at DataAccess.GetPageContent(Int32 CityId)

But when i am running in local machine we don't have any exceptions.
and running in server machine exceptions are comming rare times only.the live application don't error's are comming from last month.suddenly we got an error "There is not enough space on the disk".
that error is came only half an hour from continue on this no error it's working fine.


Please give me solution for that.

Thanks,

MallaReddy


Responses

Posted by: Allemahesh on: 4/1/2014 [Member] [MVP] Silver | Points: 25

Up
0
Down
Dear,

You are saying that "There is not enough space on the disk", but your log file showing different error i.e. "Cannot find the 'DbConn' database in the configuration."
How did you get this message "There is not enough space on the disk".
As per the error log, there is a problem in connecting to db.
Please give some more information or error log file so that we can help you.

Mamireddy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Mamireddy on: 4/1/2014 [Member] Starter | Points: 25

Up
0
Down
HI Allemahesh,

when we run the application first time,error is came like "There is not enough space on the disk".then we refresh the page(second time) that exceptions are comming only half an hour here is no application error just exceptions are comming.

why that time is came error page?.right now no error page and no exceptions is showing.

Thanks,

MallaReddy

Mamireddy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 4/1/2014 [Member] [MVP] Silver | Points: 25

Up
0
Down
Well, there are so may reasons behind this error. Without proper exception message, it difficulty to handy the issue.
Some of them are:-

1. IOException: There is not enough space on the disk.
IIS is trying to write the files into the temporary files which is usually located under C:\Windows\Microsoft.net\Framework\<version>\Temporary ASP.NET Files. So check that if C: drive has enough space.

2. Error Copying File or Folder Cannot copy XXXXXXX: There is not enough free disk space. Delete one or more files to free disk space, and then try again. To free space on this drive by delegating old or unnecessary files,click Disk Cleanup.
So it seems it was a quota issue, but not a quota on the hard drive.
On the server you have to go: Start->Programs->Administrative Tools->File Server Resource Manager
Open the Quota Management tab on the left side. Select Quotas
Increasing the quota worked!

See the link:-
http://blogs.msdn.com/b/avkashchauhan/archive/2010/11/15/handling-there-is-not-enough-space-on-the-disk-exception-with-asp-based-service-in-windows-azure.aspx

Happy coding.

Mamireddy, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response