-
-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Description
Hi,
When I open a SDF file I immediately get the following error:
System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Temp\SQL Compact Query Analyzer 1.0.2.25483\SqlCe40\SqlCeDatabase40.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///C:\Temp\SQL Compact Query Analyzer 1.0.2.25483\SqlCe40\SqlCeDatabase40.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at ChristianHelle.DatabaseTools.SqlCe.SqlCeDatabaseFactory.LoadSqlCe40()
at ChristianHelle.DatabaseTools.SqlCe.SqlCeDatabaseFactory.GetImplementation(SupportedVersions version)
at ChristianHelle.DatabaseTools.SqlCe.SqlCeDatabaseFactory.GetImplementation(String connectionString)
at ChristianHelle.DatabaseTools.SqlCe.SqlCeDatabaseFactory.Create(String connectionString)
at ChristianHelle.DatabaseTools.SqlCe.QueryAnalyzer.ViewModel.MainViewModel.<AnalyzeDatabase>b__2()
`
I have confirmed that the SqlCeDatabase40.dll file it is looking for are in the C:\Temp\SQL Compact Query Analyzer 1.0.2.25483\SqlCe40\ folder.
How can that be corrected?
martindelisle
Metadata
Metadata
Assignees
Labels
No labels