Click here to Skip to main content
15,505,380 members
Home / Discussions / C#
   

C#

 
AnswerRe: Plotting serial port data using zedgraph (data vs time) Pin
Garth J Lancaster8-Mar-17 3:15
professionalGarth J Lancaster8-Mar-17 3:15 
GeneralRe: Plotting serial port data using zedgraph (data vs time) Pin
Ram _Varman8-Mar-17 3:17
Ram _Varman8-Mar-17 3:17 
AnswerRe: Plotting serial port data using zedgraph (data vs time) Pin
Gerry Schmitz8-Mar-17 7:39
mveGerry Schmitz8-Mar-17 7:39 
GeneralRe: Plotting serial port data using zedgraph (data vs time) Pin
Ram _Varman9-Mar-17 3:59
Ram _Varman9-Mar-17 3:59 
GeneralRe: Plotting serial port data using zedgraph (data vs time) Pin
Gerry Schmitz9-Mar-17 7:08
mveGerry Schmitz9-Mar-17 7:08 
Questionreferencing a dll available in a different folder from a Windows Service without copying the dll Pin
govindarajan k8-Mar-17 1:24
govindarajan k8-Mar-17 1:24 
AnswerRe: referencing a dll available in a different folder from a Windows Service without copying the dll Pin
Pete O'Hanlon8-Mar-17 1:40
mvaPete O'Hanlon8-Mar-17 1:40 
AnswerRe: referencing a dll available in a different folder from a Windows Service without copying the dll Pin
Alan N8-Mar-17 4:58
Alan N8-Mar-17 4:58 
You can specify the location of strongly named assemblies in an application configuration file. I think doing so creates a maintenance nightmare but if you want to try it here are the details.

Add a application configuration file to the project and add the following
XML
<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <!-- specify the assembly name -->
        <assemblyIdentity name="MetraTech.Account.ClientProxies"
                          publicKeyToken="a0f5c26dbec45a75"/>
        <!-- specify the absolute location for this assembly -->
        <codeBase version="0.0.0.0"
               href="D:\MetraTech\RMP\Extensions\Account\Bin\MetraTech.Account.ClientProxies.dll"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>


The location of the assembly is hard coded which is less than ideal and a slight improvement is possible by specifying a relative path in the codeBase href attribute. If application base directory is D:\MetraTech\RMP\BIN then this should be correct.
XML
<codeBase version="0.0.0.0"
          href="..\Extensions\Account\Bin\MetraTech.Account.ClientProxies.dll"/>


If the ClientProxies.dll relies upon other assemblies within ..\Extensions\Account\Bin then a dependentAssembly element must be added for each one otherwise the assembly loader will only look in the GAC or the application base directory.

Good luck and remember that all the xml is case sensitive. If you enter PublicKeyToken instead of publicKeyToken then the loader won't complain and will just quietly ignore the whole dependentAssembly element.

Alan.
GeneralRe: referencing a dll available in a different folder from a Windows Service without copying the dll Pin
govindarajan k9-Mar-17 1:27
govindarajan k9-Mar-17 1:27 
QuestionLINQ error string matching? Pin
Member 28240516-Mar-17 5:41
Member 28240516-Mar-17 5:41 
AnswerRe: LINQ error string matching? Pin
Richard Deeming6-Mar-17 6:36
mveRichard Deeming6-Mar-17 6:36 
GeneralRe: LINQ error string matching? Pin
Member 28240516-Mar-17 21:28
Member 28240516-Mar-17 21:28 
QuestionWorking with .resx Files / C#, WinForms [Closed] Pin
HobbyProggy5-Mar-17 22:44
professionalHobbyProggy5-Mar-17 22:44 
AnswerRe: Working with .resx Files / C#, WinForms Pin
Gerry Schmitz6-Mar-17 10:42
mveGerry Schmitz6-Mar-17 10:42 
GeneralRe: Working with .resx Files / C#, WinForms Pin
HobbyProggy6-Mar-17 20:27
professionalHobbyProggy6-Mar-17 20:27 
GeneralRe: Working with .resx Files / C#, WinForms Pin
Gerry Schmitz6-Mar-17 21:08
mveGerry Schmitz6-Mar-17 21:08 
GeneralRe: Working with .resx Files / C#, WinForms Pin
HobbyProggy6-Mar-17 21:24
professionalHobbyProggy6-Mar-17 21:24 
GeneralRe: Working with .resx Files / C#, WinForms Pin
Gerry Schmitz6-Mar-17 21:41
mveGerry Schmitz6-Mar-17 21:41 
GeneralRe: Working with .resx Files / C#, WinForms Pin
HobbyProggy6-Mar-17 22:45
professionalHobbyProggy6-Mar-17 22:45 
GeneralRe: Working with .resx Files / C#, WinForms Pin
Gerry Schmitz6-Mar-17 23:02
mveGerry Schmitz6-Mar-17 23:02 
GeneralRe: Working with .resx Files / C#, WinForms Pin
HobbyProggy6-Mar-17 23:13
professionalHobbyProggy6-Mar-17 23:13 
GeneralRe: Working with .resx Files / C#, WinForms Pin
Gerry Schmitz6-Mar-17 23:30
mveGerry Schmitz6-Mar-17 23:30 
Questionwebrequest sent twice Pin
Forest44734-Mar-17 23:32
Forest44734-Mar-17 23:32 
AnswerRe: webrequest sent twice Pin
Michael_Davies4-Mar-17 23:59
Michael_Davies4-Mar-17 23:59 
GeneralRe: webrequest sent twice Pin
Forest44735-Mar-17 0:15
Forest44735-Mar-17 0:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.