Error running Sample Application

Aug 6, 2009 at 10:11 AM

Hi all,

 

I got the following error in running sample application. At the SqlRemoteBlobContext blobContext = new SqlRemoteBlobContext(conn);

 

Running Remote Blob Storage Sample Application
Successfully created Application test tables.
Running the Store Simple Sample
An error occurred when running the Application sample.
System.ArgumentException: Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path)
   at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str)
   at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
   at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccessaccess, String path)
   at System.Reflection.Assembly.LoadFile(String path)
   at Microsoft.Data.SqlRemoteBlobs.ProviderClass.Initialize()
   at Microsoft.Data.SqlRemoteBlobs.Global.Initialize()
   at Microsoft.Data.SqlRemoteBlobs.SqlRemoteBlobContext..ctor(SqlConnection connection, BlobStoreCredentialsList credentialsList)
   at Microsoft.Data.SqlRemoteBlobs.SqlRemoteBlobContext..ctor(SqlConnection connection)
   at Microsoft.Samples.RemoteBlobStorage.StoreSimple.RunStoreSimple(String connectionString)
   at Microsoft.Samples.RemoteBlobStorage.Application.Main(String[] args)

 

Aug 10, 2009 at 5:14 AM

Looks like an invalid path was specified at some time, perhaps while installing the File Blob Store. Can you tell us what path you used for the file blob store? You can get this from the database from the view mssqlrbs.rbs_blob_stores. Please give the complete listing of this view.