You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When starting the client process, Assembly.GetExecutingAssembly().Location in ProcessStarter constructor is used for getting directory of the assembly.
Problem is that when using shadow copy, assembly is cached and location is not the same.
Maybe it should be possible to override the directory in ChildProcessFactory ?
The text was updated successfully, but these errors were encountered:
I'm having a similar problem, but I'm not using shadow copy. I'm working on an SSMS add-in using the RedGate SIP framework and trying to use RedGate.AppHost to launch the add-in in its own process at the suggestion of @mauvo . This should theoretically allow me to run T-SQL Flex in its own process that is .NET 4 but allow the add-in to work in SSMS 2008.
Say, for example, all of my add-in DLLs live in C:\Extension. In that folder, I have TSqlFlex.dll (.NET 2.0 "server"), TSqlFlex.Core.dll (.NET 4.0 "client"), and all the required references to get AppHost to work.
When I wire up an event handler in TSqlFlex.Core.dll, I get an exception within RedGate.AppHost that it can't find TSqlFlex.Core.dll, but when I use ProcessMonitor, it is looking for TSqlFlex.Core.dll in the same folder where SSMS lives - NOT where TSqlFlex.dll, TSqlFlex.Core.dll, and the RedGate client/server DLLs are.
This should be reproducible using https://github.com/nycdotnet/TSqlFlex branch reestablish-net-35. I also think if there were a way to override the directory for where to search for the DLLs, that would be very helpful. Thanks.
PS: I would just fix this myself, but of course AppHost isn't buildable without your encryption key. :-)
amaitland
added a commit
to amaitland/RedGate.AppHost
that referenced
this issue
Dec 16, 2015
When starting the client process, Assembly.GetExecutingAssembly().Location in ProcessStarter constructor is used for getting directory of the assembly.
Problem is that when using shadow copy, assembly is cached and location is not the same.
Maybe it should be possible to override the directory in ChildProcessFactory ?
The text was updated successfully, but these errors were encountered: