Click here to Skip to main content
15,923,142 members
Home / Discussions / C#
   

C#

 
AnswerRe: FTP a Text file to an OpenVMS Ser ver [modified] Pin
Garth J Lancaster9-Jan-09 19:02
professionalGarth J Lancaster9-Jan-09 19:02 
GeneralRe: FTP a Text file to an OpenVMS Ser ver Pin
#realJSOP10-Jan-09 0:06
professional#realJSOP10-Jan-09 0:06 
GeneralRe: FTP a Text file to an OpenVMS Ser ver Pin
Garth J Lancaster10-Jan-09 0:21
professionalGarth J Lancaster10-Jan-09 0:21 
GeneralRe: FTP a Text file to an OpenVMS Ser ver Pin
#realJSOP10-Jan-09 3:09
professional#realJSOP10-Jan-09 3:09 
GeneralRe: FTP a Text file to an OpenVMS Ser ver Pin
Garth J Lancaster10-Jan-09 17:35
professionalGarth J Lancaster10-Jan-09 17:35 
AnswerRe: FTP a Text file to an OpenVMS Ser ver Pin
Garth J Lancaster9-Jan-09 19:29
professionalGarth J Lancaster9-Jan-09 19:29 
GeneralRe: FTP a Text file to an OpenVMS Ser ver Pin
#realJSOP10-Jan-09 0:06
professional#realJSOP10-Jan-09 0:06 
QuestionWindows Service Config File and loading assemblies dynamically Pin
gamerdrew9-Jan-09 10:21
gamerdrew9-Jan-09 10:21 
Hi,
I apologize if this question is in the wrong place.

I inherited a C# windows service from a previous developer but I am having some trouble with his code. It is a windows service that can have classes loaded into it without having to recompile the service. I am assuming this is done by the windowsservice.exe.config file, specifically the
<runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="currencyworker" culture="neutral" publicKeyToken="null"/>
      <codeBase version="1.1.0.0" href="currencyworker.dll"/>
    </dependentAssembly>
  </assemblyBinding>
</runtime>



A second config file gives the name of the class and its namespace. The windows service takes that info and uses the Type.GetType(typeName); function on it and then instantiates it. The problem I am having is that the .GetType function keeps returning null when I start the service leading me to believe that my syntax or something else is wrong with the windowsservice.exe.config file and that the class(currencyworker.currency in my case) is not being loaded. I have gotten it to work before but its rather random and not consistent so I can't seem to locate what is going wrong. Any help on this would be great, my understanding of this is not high so I am sorry if this doesn't make sense or is confusing.
AnswerRe: Windows Service Config File and loading assemblies dynamically Pin
howlettt9-Jan-09 11:34
howlettt9-Jan-09 11:34 
AnswerRe: Windows Service Config File and loading assemblies dynamically Pin
Jon Rista9-Jan-09 11:58
Jon Rista9-Jan-09 11:58 
Questionrunning application Pin
abu rakan9-Jan-09 10:21
abu rakan9-Jan-09 10:21 
AnswerCP IGNORE THIS USER; has asked this SEVERAL times. Pin
leckey9-Jan-09 10:22
leckey9-Jan-09 10:22 
JokeRe: running application PinPopular
Colin Angus Mackay9-Jan-09 10:30
Colin Angus Mackay9-Jan-09 10:30 
GeneralRe: running application Pin
abu rakan9-Jan-09 10:34
abu rakan9-Jan-09 10:34 
GeneralRe: running application Pin
EliottA9-Jan-09 10:50
EliottA9-Jan-09 10:50 
GeneralRe: running application Pin
abu rakan9-Jan-09 10:56
abu rakan9-Jan-09 10:56 
GeneralRe: running application Pin
EliottA9-Jan-09 11:02
EliottA9-Jan-09 11:02 
GeneralHere's your "reply" Pin
leckey9-Jan-09 11:10
leckey9-Jan-09 11:10 
AnswerRe: running application Pin
#realJSOP9-Jan-09 11:02
professional#realJSOP9-Jan-09 11:02 
AnswerRe: running application Pin
DaveyM699-Jan-09 12:32
professionalDaveyM699-Jan-09 12:32 
Generalyou asked for it Pin
Luc Pattyn9-Jan-09 13:07
sitebuilderLuc Pattyn9-Jan-09 13:07 
QuestionText.Length Command Pin
asquaredtech9-Jan-09 8:51
asquaredtech9-Jan-09 8:51 
AnswerRe: Text.Length Command Pin
JByrd20069-Jan-09 8:58
JByrd20069-Jan-09 8:58 
GeneralRe: Text.Length Command Pin
asquaredtech9-Jan-09 9:15
asquaredtech9-Jan-09 9:15 
GeneralRe: Text.Length Command Pin
Colin Angus Mackay9-Jan-09 10:19
Colin Angus Mackay9-Jan-09 10:19 

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.