Jump to content

Recommended Posts

Posted

Thanks for this. Now tested - but running GetQuotaFromPath and specifying either a local directory and a UNC both return -1 still :(

 

Specifying an invalid UNC (e.g. \\madeupservername\share) causes a delay, which tells us that the code to switch to the UNC server search is working, but the code is returning -1 all of the time.

 

In my working code above, the returns from the FSRM API are of type 'long' not int/double. Are we looking at a integer overload?

 

M

Posted

Ok, give http://sdrv.ms/NgWSe1 a try, it's just the HAP.Data.Quota dll, it replaces the existing one in c:\pf\nbdev\hapqs

 

-1 means either no quota or an error.

 

If it still gives -1 check the application event log on the server, it should write the errors out to that

Posted

Hi Nick,

 

Two entries are logged for both UNC or local path:

 

If local path specified:

 

System.Runtime.InteropServices.COMException (0x80045306): Exception from HRESULT: 0x80045306

at Microsoft.Storage.FsrmQuotaManagerClass.GetQuota(String Path)

at HAP.Data.Quota.WCFService.GetQuotaFromPath(String path) in h:\Documents\Visual Studio 2010\Projects\CHS Extranet\HAP.Data.Quota\WCFService.cs:line 47

 

Exception from HRESULT: 0x80045306

 

at Microsoft.Storage.FsrmQuotaManagerClass.GetQuota(String Path)

at HAP.Data.Quota.WCFService.GetQuotaFromPath(String path) in h:\Documents\Visual Studio 2010\Projects\CHS Extranet\HAP.Data.Quota\WCFService.cs:line 47

 

System.ArgumentException: Value does not fall within the expected range.

at Microsoft.Storage.FsrmQuotaManagerClass.GetQuota(String Path)

at HAP.Data.Quota.WCFService.GetQuotaFromPath(String path) in h:\Documents\Visual Studio 2010\Projects\CHS Extranet\HAP.Data.Quota\WCFService.cs:line 34

 

Value does not fall within the expected range.

 

at Microsoft.Storage.FsrmQuotaManagerClass.GetQuota(String Path)

at HAP.Data.Quota.WCFService.GetQuotaFromPath(String path) in h:\Documents\Visual Studio 2010\Projects\CHS Extranet\HAP.Data.Quota\WCFService.cs:line 34

 

 

If UNC path specified:

 

System.Runtime.InteropServices.COMException (0x80045306): Exception from HRESULT: 0x80045306

at Microsoft.Storage.FsrmQuotaManagerClass.GetQuota(String Path)

at HAP.Data.Quota.WCFService.GetQuotaFromPath(String path) in h:\Documents\Visual Studio 2010\Projects\CHS Extranet\HAP.Data.Quota\WCFService.cs:line 47

 

Exception from HRESULT: 0x80045306

 

at Microsoft.Storage.FsrmQuotaManagerClass.GetQuota(String Path)

at HAP.Data.Quota.WCFService.GetQuotaFromPath(String path) in h:\Documents\Visual Studio 2010\Projects\CHS Extranet\HAP.Data.Quota\WCFService.cs:line 47

 

System.ArgumentException: Value does not fall within the expected range.

at Microsoft.Storage.FsrmQuotaManagerClass.GetQuota(String Path)

at HAP.Data.Quota.WCFService.GetQuotaFromPath(String path) in h:\Documents\Visual Studio 2010\Projects\CHS Extranet\HAP.Data.Quota\WCFService.cs:line 34

 

Value does not fall within the expected range.

 

at Microsoft.Storage.FsrmQuotaManagerClass.GetQuota(String Path)

at HAP.Data.Quota.WCFService.GetQuotaFromPath(String path) in h:\Documents\Visual Studio 2010\Projects\CHS Extranet\HAP.Data.Quota\WCFService.cs:line 34

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...