Hash Storage Problem
-
Hi All, Am creating a hash storage on the system using the following code. The following line actually creates the virtual directory with the guid name in the Documents and Settings/Administrators/LocalSettings/ApplicationData/IsolatedStorage directory... IsolatedStorageFile isoStore = IsolatedStorageFile.GetStore( IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null ); Further, I create a hash.dat file in the above directory. This was working fine in the previous server. Currently, the server is changed and am facing this. Must have something to do with the system / machine settings. Have pasted the error below. Please help! Many thanks in advance, Susmitha. ERROR: Server Error in '/WeddingWarehouse' Application. -------------------------------------------------------------------------------- Unable to create the store directory.[The system cannot find the file specified. ] Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.IsolatedStorage.IsolatedStorageException: Unable to create the store directory.[The system cannot find the file specified. ] Source Error: Line 291: private void LoadData() Line 292: { Line 293: IsolatedStorageFile isoStore = IsolatedStorageFile.GetStore( IsolatedStorageScope.User Line 294: | IsolatedStorageScope.Assembly |IsolatedStorageScope.Domain , null, null ); Line 295: if ( isoStore.GetFileNames( settingsFileName ).Length == 0 ) Source File: c:\inetpub\wwwroot\weddingwarehouse\productpage.aspx.cs Line: 293 Stack Trace: [IsolatedStorageException: Unable to create the store directory.[The system cannot find the file specified. ]] System.IO.IsolatedStorage.IsolatedStorageFile.nGetRootDir(IsolatedStorageScope scope) +0 System.IO.IsolatedStorage.IsolatedStorageFile.InitGlobalsNonRoaming(IsolatedStorageScope scope) +42 System.IO.IsolatedStorage.IsolatedStorageFile.GetRootDir(IsolatedStorageScope scope) +98 System.IO.IsolatedStorage.IsolatedStorageFile.GetGlobalFileIOPerm(IsolatedStorageScope scope) +208 System.IO.IsolatedStorage.IsolatedStorageFile.Init(IsolatedStorageScope scope) +37 System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope s
-
Hi All, Am creating a hash storage on the system using the following code. The following line actually creates the virtual directory with the guid name in the Documents and Settings/Administrators/LocalSettings/ApplicationData/IsolatedStorage directory... IsolatedStorageFile isoStore = IsolatedStorageFile.GetStore( IsolatedStorageScope.User | IsolatedStorageScope.Assembly, null, null ); Further, I create a hash.dat file in the above directory. This was working fine in the previous server. Currently, the server is changed and am facing this. Must have something to do with the system / machine settings. Have pasted the error below. Please help! Many thanks in advance, Susmitha. ERROR: Server Error in '/WeddingWarehouse' Application. -------------------------------------------------------------------------------- Unable to create the store directory.[The system cannot find the file specified. ] Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.IsolatedStorage.IsolatedStorageException: Unable to create the store directory.[The system cannot find the file specified. ] Source Error: Line 291: private void LoadData() Line 292: { Line 293: IsolatedStorageFile isoStore = IsolatedStorageFile.GetStore( IsolatedStorageScope.User Line 294: | IsolatedStorageScope.Assembly |IsolatedStorageScope.Domain , null, null ); Line 295: if ( isoStore.GetFileNames( settingsFileName ).Length == 0 ) Source File: c:\inetpub\wwwroot\weddingwarehouse\productpage.aspx.cs Line: 293 Stack Trace: [IsolatedStorageException: Unable to create the store directory.[The system cannot find the file specified. ]] System.IO.IsolatedStorage.IsolatedStorageFile.nGetRootDir(IsolatedStorageScope scope) +0 System.IO.IsolatedStorage.IsolatedStorageFile.InitGlobalsNonRoaming(IsolatedStorageScope scope) +42 System.IO.IsolatedStorage.IsolatedStorageFile.GetRootDir(IsolatedStorageScope scope) +98 System.IO.IsolatedStorage.IsolatedStorageFile.GetGlobalFileIOPerm(IsolatedStorageScope scope) +208 System.IO.IsolatedStorage.IsolatedStorageFile.Init(IsolatedStorageScope scope) +37 System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope s
your problem is prob. related to permissions - applicatations don't get IsolatedStorage by default http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconsecurefiledataaccessinwindowsforms.asp[^]
"When the only tool you have is a hammer, a sore thumb you will have."