Network shares troubles
RC 4.0 RC2 installed (copy) on a Windows Storage Server 2016 drive. Shortcut to the app in a parent folder. We will call this machine "Server".
Remote desktop session opened on server with an admin account. Execute RC with the shortcut. The log indicate a database connection failure. Same thing if I execute as admin.
Works ok if I don't use the shortcut and NOT with the "run as admin" option.
<log4j:event logger="Romcenter" level="ERROR" timestamp="1529625778953" thread="5"><log4j:message>RomCenter.DataAccess.Firebird.EF5.Ef/.ctor : The underlying provider failed on Open.</log4j:message><log4j:throwable>System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> FirebirdSql.Data.FirebirdClient.FbException: Unable to complete network request to host ".". Failed to establish a connection. ---> FirebirdSql.Data.Common.IscException: Unable to complete network request to host ".". Failed to establish a connection. à FirebirdSql.Data.Client.Native.FesDatabase.ProcessStatusVector(IntPtr[] statusVector) à FirebirdSql.Data.Client.Native.FesDatabase.Attach(DatabaseParameterBuffer dpb, String dataSource, Int32 port, String database, Byte[] cryptKey) à FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect() --- Fin de la trace de la pile d'exception interne --- à FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect() à FirebirdSql.Data.FirebirdClient.FbConnection.Open() à System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.<Open>b__36(DbConnection t, DbConnectionInterceptionContext c) à System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) à System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext) à System.Data.Entity.Core.EntityClient.EntityConnection.<Open>b__2() à System.Data.Entity.Infrastructure.DefaultExecutionStrategy.Execute(Action operation) à System.Data.Entity.Core.EntityClient.EntityConnection.Open() --- Fin de la trace de la pile d'exception interne --- à System.Data.Entity.Core.EntityClient.EntityConnection.Open() à System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions) à System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) à System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass3.<GetResults>b__1() à System.Data.Entity.Infrastructure.DefaultExecutionStrategy.Execute[TResult](Func`1 operation) à System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) à System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0() à System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() à System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source) à System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.<GetElementFunction>b__1[TResult](IEnumerable`1 sequence) à System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.ExecuteSingle[TResult](IEnumerable`1 query, Expression queryRoot) à System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.System.Linq.IQueryProvider.Execute[TResult](Expression expression) à System.Data.Entity.Internal.Linq.DbQueryProvider.Execute[TResult](Expression expression) à System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source) à RomCenter.DataAccess.Firebird.EF5.Ef..ctor(String fileName, IProgressTracking progressPack, IPauseAndCancellationToken pauseAndCancellationToken, Boolean validatedb) dans C:\Projects\Romcenter\DataAccess\Firebird\EF5\EF.cs:ligne 107</log4j:throwable><log4j:NDC /><log4j:throwable><![CDATA[System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> FirebirdSql.Data.FirebirdClient.FbException: Unable to complete network request to host ".". Failed to establish a connection. ---> FirebirdSql.Data.Common.IscException: Unable to complete network request to host ".". Failed to establish a connection. à FirebirdSql.Data.Client.Native.FesDatabase.ProcessStatusVector(IntPtr[] statusVector) à FirebirdSql.Data.Client.Native.FesDatabase.Attach(DatabaseParameterBuffer dpb, String dataSource, Int32 port, String database, Byte[] cryptKey) à FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect() --- Fin de la trace de la pile d'exception interne --- à FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect() à FirebirdSql.Data.FirebirdClient.FbConnection.Open() à System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.<Open>b__36(DbConnection t, DbConnectionInterceptionContext c) à System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) à System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext) à System.Data.Entity.Core.EntityClient.EntityConnection.<Open>b__2() à System.Data.Entity.Infrastructure.DefaultExecutionStrategy.Execute(Action operation) à System.Data.Entity.Core.EntityClient.EntityConnection.Open() --- Fin de la trace de la pile d'exception interne --- à System.Data.Entity.Core.EntityClient.EntityConnection.Open() à System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions) à System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) à System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass3.<GetResults>b__1() à System.Data.Entity.Infrastructure.DefaultExecutionStrategy.Execute[TResult](Func`1 operation) à System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) à System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0() à System.Data.Entity.Internal.LazyEnumerator`1.MoveNext() à System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source) à System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.<GetElementFunction>b__1[TResult](IEnumerable`1 sequence) à System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.ExecuteSingle[TResult](IEnumerable`1 query, Expression queryRoot) à System.Data.Entity.Core.Objects.ELinq.ObjectQueryProvider.System.Linq.IQueryProvider.Execute[TResult](Expression expression) à System.Data.Entity.Internal.Linq.DbQueryProvider.Execute[TResult](Expression expression) à System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source) à RomCenter.DataAccess.Firebird.EF5.Ef..ctor(String fileName, IProgressTracking progressPack, IPauseAndCancellationToken pauseAndCancellationToken, Boolean validatedb) dans C:\Projects\Romcenter\DataAccess\Firebird\EF5\EF.cs:ligne 107]]></log4j:throwable><log4j:locationInfo class="RomCenter.Global.BaseLog" method="Void Error(System.String, System.Exception)" file="C:\Projects\Romcenter\Global\RcLog.cs" line="230" /><nlog:eventSequenceNumber>21</nlog:eventSequenceNumber><nlog:locationInfo assembly="RomCenter.Global, Version=4.0.0.40018, Culture=neutral, PublicKeyToken=null" /><nlog:properties /><log4j:properties><log4j:data name="log4japp" value="true" /><log4j:data name="log4jmachinename" value="SRVR-PLEX" /></log4j:properties></log4j:event>
Comments (14)
-
reporter -
Just trying to understand. You basically installed RC on a Windows Storage Server 2016, and you are trying to launch RC after logging into the server through an RDP session as an administrator. If yes, did try launching it by physically logging on to server first to see if that works?
-
reporter You understood correctly. You seems to think the RDP session influence the execution of the program? I don't think so. I installed and ran RC the same way before, but in "program filles" folder and it was working correctly through RDP. At this point, it can be two things : (a) The folder location have an impact. (b) The RC configuration files are corrupted.
I am downloading a fresh version of RC to replace the one I was trying to use.
-
reporter Installed a fresh version, cleared programData\romcenter folder. I have the exception "Value does not fall within the expected range". I think this is possibly because RC is installed on the D drive of the server. Another copy in "C:\Program Files (x86)" work correctly in the same conditions.
-
I have not worked with RDP recently but RDP sessions do affect execution of apps. Which is the reason why MS had the option of putting the server in "Install Mode" in order to install apps that will be ran through an RDP connection. As far as I know RDP sessions are different from Remote Control Sessions like VNC for example. If that were not the case it would show as a local connection when you bring up task manager but it doesn't. Also reason why when you are using RDP, someone can still log in locally without affecting your session unlike when you are using something like VNC. Hence me asking you if you tried it by physically logging into the server locally or using a remote control app instead of RDP.
-
reporter Never experienced an RDP problem yet. I suppose I have been lucky. Still, it works ok when installed on the C drive on the same machine, even with RDP, so RDP is not responsible in this case.
-
In case your install drive or part of it is a removable one, there is a security policy in windows that prevents access to removable drives (CD-ROM, USB etc.) when logged in from an RDP session. You can turn it off through your local server policies. Maybe that would help.
-
reporter No, the D drive is an internal hard disk.
-
repo owner I often tested romcenter on a RDP system with no problems, but I don't have a windows storage server... The 'Value does not fall within the expected range.' error is strange. I will check the source code to try to understand the problem.
-
reporter The windows storage server should make no difference. I wanted to be clear on the OS. The disk is local and formated in NTFS.
-
repo owner Issue
#146was marked as a duplicate of this issue. -
repo owner - changed title to Network shares troubles
-
repo owner - removed version
Removing version: 4.0.0rc2 (automated comment)
-
reporter Any news? After about 5 years, I am trying version 4.1.1 and it gives me the following when I try to launch the program from a SNB share where my roms are :
<log4j:event logger="Romcenter" level="ERROR" timestamp="1653257025957" thread="1"><log4j:message>RomCenter.Global.BaseLog/Error : La méthode spécifiée n'est pas prise en charge.</log4j:message><log4j:throwable>System.NotSupportedException: La méthode spécifiée n'est pas prise en charge. à RomCenter.DataAccess.Firebird.FbTools.DbNeedUpgrade(String dbFilePath) à RomCenter.DataAccess.Firebird.EF5.Ef..ctor(String fileName, IProgressTracking progressPack, IPauseAndCancellationToken pauseAndCancellationToken, Boolean validatedb)</log4j:throwable><log4j:NDC /><log4j:throwable><![CDATA[System.NotSupportedException: La méthode spécifiée n'est pas prise en charge. à RomCenter.DataAccess.Firebird.FbTools.DbNeedUpgrade(String dbFilePath) à RomCenter.DataAccess.Firebird.EF5.Ef..ctor(String fileName, IProgressTracking progressPack, IPauseAndCancellationToken pauseAndCancellationToken, Boolean validatedb)]]></log4j:throwable><log4j:locationInfo class="RomCenter.Global.BaseLog" method="Void Error(System.String, System.Exception)" file="" line="0" /><nlog:eventSequenceNumber>20</nlog:eventSequenceNumber><nlog:locationInfo assembly="RomCenter.Global, Version=4.1.1.51, Culture=neutral, PublicKeyToken=null" /><nlog:properties /><log4j:properties><log4j:data name="log4japp" value="true" /><log4j:data name="log4jmachinename" value="STEVE-DESKTOP" /></log4j:properties></log4j:event>
The translation of the error is “The specified method is not supported”.
- Log in to comment
It fail later on. If I go to options and enter the mame executable path and click on "get data from...", it crash with this :
and sometimes, I have this :