Click here to Skip to main content
15,881,742 members
Home / Discussions / C#
   

C#

 
GeneralRe: ToolTip for TreeView nodes Pin
Patrick Lassalle17-Oct-02 13:06
Patrick Lassalle17-Oct-02 13:06 
GeneralRe: ToolTip for TreeView nodes Pin
kavehdr17-Oct-02 15:57
kavehdr17-Oct-02 15:57 
GeneralDelete files that are in use Pin
Ola Carlsson17-Oct-02 8:57
Ola Carlsson17-Oct-02 8:57 
GeneralRe: Delete files that are in use Pin
Paul Riley17-Oct-02 9:54
Paul Riley17-Oct-02 9:54 
GeneralRe: Delete files that are in use Pin
JasonSmith18-Oct-02 13:21
JasonSmith18-Oct-02 13:21 
GeneralRe: Delete files that are in use Pin
Paul Riley18-Oct-02 13:39
Paul Riley18-Oct-02 13:39 
GeneralExibiting more control over remote assembly download Pin
Richard Smith17-Oct-02 4:25
Richard Smith17-Oct-02 4:25 
GeneralRe: Exibiting more control over remote assembly download Pin
Russell Morris17-Oct-02 7:54
Russell Morris17-Oct-02 7: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 11:37
Richard Smith17-Oct-02 11:37 
GeneralClickety Police! Pin
David Stone17-Oct-02 12:04
sitebuilderDavid Stone17-Oct-02 12:04 
QuestionMFC to C# ?? Pin
-Dy17-Oct-02 2:44
-Dy17-Oct-02 2:44 
AnswerRe: MFC to C# ?? Pin
Michael P Butler17-Oct-02 2:48
Michael P Butler17-Oct-02 2:48 
GeneralRe: MFC to C# ?? Pin
-Dy17-Oct-02 2:54
-Dy17-Oct-02 2:54 
GeneralRe: MFC to C# ?? Pin
Paul Riley17-Oct-02 3:07
Paul Riley17-Oct-02 3:07 
GeneralRe: MFC to C# ?? Pin
Michael P Butler17-Oct-02 3:24
Michael P Butler17-Oct-02 3:24 
AnswerRe: MFC to C# ?? Pin
Stephane Rodriguez.17-Oct-02 3:48
Stephane Rodriguez.17-Oct-02 3:48 
GeneralRe: MFC to C# ?? Pin
KaЯl17-Oct-02 11:14
KaЯl17-Oct-02 11:14 
GeneralRe: MFC to C# ?? Pin
Stephane Rodriguez.17-Oct-02 20:23
Stephane Rodriguez.17-Oct-02 20:23 
GeneralRe: MFC to C# ?? Pin
KaЯl17-Oct-02 23:00
KaЯl17-Oct-02 23:00 
GeneralRe: MFC to C# ?? Pin
Russell Morris17-Oct-02 12:16
Russell Morris17-Oct-02 12:16 
GeneralRe: MFC to C# ?? Pin
James T. Johnson17-Oct-02 14:54
James T. Johnson17-Oct-02 14:54 
GeneralRe: MFC to C# ?? Pin
Stephane Rodriguez.17-Oct-02 20:06
Stephane Rodriguez.17-Oct-02 20:06 
Generalvirtual computers Pin
plextoR16-Oct-02 9:11
plextoR16-Oct-02 9:11 
GeneralRe: virtual computers Pin
Philip Fitzsimons17-Oct-02 0:17
Philip Fitzsimons17-Oct-02 0:17 
GeneralRe: virtual computers Pin
JasonSmith18-Oct-02 13:19
JasonSmith18-Oct-02 13: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.