mobybrick Posted August 9, 2012 Posted August 9, 2012 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
nickbro Posted August 9, 2012 Posted August 9, 2012 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
mobybrick Posted August 9, 2012 Posted August 9, 2012 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
nickbro Posted August 10, 2012 Posted August 10, 2012 Give http://sdrv.ms/OWrnGt a try, I think I've gotten it working now :-) When using the WCF Test, you need to escape the backslashes, so \\server\share becomes \\\\server\\share I've tested it on one of my servers and it seems to work
mobybrick Posted August 10, 2012 Posted August 10, 2012 Hi Nick, All looks good on the latest. Thanks - let me know if you want me to test anything else Moby
nickbro Posted August 10, 2012 Posted August 10, 2012 Thanks for the info @mobybrick, have you had a chance to try the full ALPHA release yet? I'm hoping to release it this month
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now