Click here to Skip to main content
15,844,673 members
Home / Discussions / C#
   

C#

 
GeneralRe: ToolTip for TreeView nodes Pin
Patrick Lassalle17-Oct-02 14:06
Patrick Lassalle17-Oct-02 14:06 
GeneralRe: ToolTip for TreeView nodes Pin
kavehdr17-Oct-02 16:57
kavehdr17-Oct-02 16:57 
GeneralDelete files that are in use Pin
Ola Carlsson17-Oct-02 9:57
Ola Carlsson17-Oct-02 9:57 
GeneralRe: Delete files that are in use Pin
Paul Riley17-Oct-02 10:54
Paul Riley17-Oct-02 10:54 
GeneralRe: Delete files that are in use Pin
JasonSmith18-Oct-02 14:21
JasonSmith18-Oct-02 14:21 
GeneralRe: Delete files that are in use Pin
Paul Riley18-Oct-02 14:39
Paul Riley18-Oct-02 14:39 
GeneralExibiting more control over remote assembly download Pin
Richard Smith17-Oct-02 5:25
Richard Smith17-Oct-02 5:25 
GeneralRe: Exibiting more control over remote assembly download Pin
Russell Morris17-Oct-02 8:54
Russell Morris17-Oct-02 8:54 
>>
Richard Smith wrote:
It then proceeds to load these assemblies using the System.Reflection.Assembly.LoadFrom() static method.
<<

I'm not sure about the actual question you ask - but this isn't the preferred method for handling that scenario. I beleive the preferred method for doing this is to use a .config file for your thin client app that uses the <assemblybinding> tag to redirect the assembly loader to a URL when it looks for certain assemblies (as long as those assemblies have strong names). This will allow you to link directly to your assemblies that are to be deployed on the server, instead of having to use reflection.

So if your thin client linked to MyServerSideAssembly.dll, version=1.0.0.0, culture = neutral, public key token = 012345 , you would have a 'yourthinclient.config' file that contained something along the lines of:

<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <dependentAssembly>
            <assemblyIdentity name="MyServerSideAssembly"
                              publicKeyToken="012345"
                              culture="neutral" />
            <codeBase version="1.0.0.0"
                      href="http://your.server.com/MyServerSideAssembly.dll"/>
         </dependentAssembly>
      </assemblyBinding>
   </runtime>
</configuration>


You would then deploy MyServerSideAssembly.dll to a the 'your.server.com' web server.
The assembly loader will take care of downloading the assembly, caching it, and proceeding from there when the thin client tries to reference a type defined in 'MyServerSideAssembly.dll'.

Take a look at the '.Configuration file schema' in MSDN help to get a good idea of all the nifty things you can do with .config files.

--
Russell Morris

"Have you gone mad Frink? Put down that science pole!"
GeneralRe: Exibiting more control over remote assembly download Pin
Richard Smith17-Oct-02 12:37
Richard Smith17-Oct-02 12:37 
GeneralClickety Police! Pin
David Stone17-Oct-02 13:04
sitebuilderDavid Stone17-Oct-02 13:04 
QuestionMFC to C# ?? Pin
-Dy17-Oct-02 3:44
-Dy17-Oct-02 3:44 
AnswerRe: MFC to C# ?? Pin
Michael P Butler17-Oct-02 3:48
Michael P Butler17-Oct-02 3:48 
GeneralRe: MFC to C# ?? Pin
-Dy17-Oct-02 3:54
-Dy17-Oct-02 3:54 
GeneralRe: MFC to C# ?? Pin
Paul Riley17-Oct-02 4:07
Paul Riley17-Oct-02 4:07 
GeneralRe: MFC to C# ?? Pin
Michael P Butler17-Oct-02 4:24
Michael P Butler17-Oct-02 4:24 
AnswerRe: MFC to C# ?? Pin
Stephane Rodriguez.17-Oct-02 4:48
Stephane Rodriguez.17-Oct-02 4:48 
GeneralRe: MFC to C# ?? Pin
KaЯl17-Oct-02 12:14
KaЯl17-Oct-02 12:14 
GeneralRe: MFC to C# ?? Pin
Stephane Rodriguez.17-Oct-02 21:23
Stephane Rodriguez.17-Oct-02 21:23 
GeneralRe: MFC to C# ?? Pin
KaЯl18-Oct-02 0:00
KaЯl18-Oct-02 0:00 
GeneralRe: MFC to C# ?? Pin
Russell Morris17-Oct-02 13:16
Russell Morris17-Oct-02 13:16 
GeneralRe: MFC to C# ?? Pin
James T. Johnson17-Oct-02 15:54
James T. Johnson17-Oct-02 15:54 
GeneralRe: MFC to C# ?? Pin
Stephane Rodriguez.17-Oct-02 21:06
Stephane Rodriguez.17-Oct-02 21:06 
Generalvirtual computers Pin
plextoR16-Oct-02 10:11
plextoR16-Oct-02 10:11 
GeneralRe: virtual computers Pin
Philip Fitzsimons17-Oct-02 1:17
Philip Fitzsimons17-Oct-02 1:17 
GeneralRe: virtual computers Pin
JasonSmith18-Oct-02 14:19
JasonSmith18-Oct-02 14: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.