User bio
404 bio not found
Member since Sep 3, 2021
Posts:
cy has not published any posts yet.
Replies:

Hi, Peter, i see this must need .net framwork 2,3or 4, but how it support for .net 5 on centos, when i using  InterSystems.Data.CacheClient.dll   and the write this code it makes error 

the code is here

public System.Data.DataSet exeSqlForDataSet(string QueryString)
        {

           string strConnection = "Server=" + "192.168.102.87" + ";Port=1972; Namespace=" + "IMEDPACS" + "; Password=" + "sys" + "; User ID = " + "_system" + ";Pooling=true;"; ;

           var conn = new CacheConnection(strConnection);
            try
            {
                if (conn.State != ConnectionState.Open)
                {
                    conn.Open();
                }
                CacheCommand cmd = new CacheCommand();
                cmd.Connection = this.conn;
                if (inTransaction)
                    cmd.Transaction = trans;
                DataSet ds = new DataSet();
                CacheDataAdapter ad = new CacheDataAdapter();
                cmd.CommandText = QueryString;
                //CLogger._log.Debug(QueryString);
                ad.SelectCommand = cmd;
                ad.Fill(ds);
                ad.Dispose();
                return ds;
            }
            catch (Exception e2)
            {
                throw e2;
            }
        }

this exception is here 

System.UnauthorizedAccessException: Access to the path '/root/0000/00/Debug/dbnet5.0' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.Enumeration.FileSystemEnumerator1.CreateDirectoryHandle(String path, Boolean ignoreNotFound) at System.IO.Enumeration.FileSystemEnumerator1.Init()
at System.IO.Enumeration.FileSystemEnumerator1..ctor(String directory, Boolean isNormalized, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerable1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
at System.IO.Enumeration.FileSystemEnumerableFactory.UserFiles(String directory, String expression, EnumerationOptions options)
at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
at System.IO.Directory.GetFiles(String path, String searchPattern)
at Microsoft.DotNet.CommandFactory.ProjectFactory.GetMSBuildProjPath(String projectDirectory)
at Microsoft.DotNet.CommandFactory.ProjectFactory.GetMSBuildProj(String projectDirectory, NuGetFramework framework, String configuration, String outputPath)
at Microsoft.DotNet.CommandFactory.ProjectToolsCommandResolver.ResolveFromProjectTools(CommandResolverArguments commandResolverArguments)
at Microsoft.DotNet.CommandFactory.ProjectToolsCommandResolver.Resolve(CommandResolverArguments commandResolverArguments)
at Microsoft.DotNet.CommandFactory.CompositeCommandResolver.Resolve(CommandResolverArguments commandResolverArguments)
at Microsoft.DotNet.CommandFactory.CommandResolver.TryResolveCommandSpec(ICommandResolverPolicy commandResolverPolicy, String commandName, IEnumerable1 args, NuGetFramework framework, String configuration, String outputPath, String applicationName) at Microsoft.DotNet.CommandFactory.CommandFactoryUsingResolver.Create(ICommandResolverPolicy commandResolverPolicy, String commandName, IEnumerable1 args, NuGetFramework framework, String configuration, String outputPath, String applicationName)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)

what can I do for this?

Certifications & Credly badges:
cy has no Certifications & Credly badges yet.
Global Masters badges:
cy has no Global Masters badges yet.
Followers:
cy has no followers yet.
Following:
cy has not followed anybody yet.