Click here to Skip to main content
15,893,668 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# and DLL calling Pin
Stephane Rodriguez.18-Oct-02 1:19
Stephane Rodriguez.18-Oct-02 1:19 
GeneralNeed help on this issue with WebBrowser control Pin
GriffonRL17-Oct-02 22:28
GriffonRL17-Oct-02 22:28 
GeneralRe: Need help on this issue with WebBrowser control Pin
Sijin18-Oct-02 0:53
Sijin18-Oct-02 0:53 
GeneralRe: Need help on this issue with WebBrowser control Pin
GriffonRL18-Oct-02 1:05
GriffonRL18-Oct-02 1:05 
GeneralRe: Need help on this issue with WebBrowser control Pin
Stephane Rodriguez.18-Oct-02 1:16
Stephane Rodriguez.18-Oct-02 1:16 
GeneralRe: Need help on this issue with WebBrowser control Pin
GriffonRL18-Oct-02 1:20
GriffonRL18-Oct-02 1:20 
GeneralRe: Need help on this issue with WebBrowser control Pin
Stephane Rodriguez.18-Oct-02 1:31
Stephane Rodriguez.18-Oct-02 1:31 
GeneralRe: Need help on this issue with WebBrowser control Pin
Sijin18-Oct-02 4:37
Sijin18-Oct-02 4:37 
QuestionIn COM+ environment, my value-object needs support strongly named assembly and others? Pin
17-Oct-02 16:18
suss17-Oct-02 16:18 
QuestionHow can I detect when a context menu is displayed Pin
Darryl Borden17-Oct-02 10:46
Darryl Borden17-Oct-02 10:46 
AnswerRe: How can I detect when a context menu is displayed Pin
Wjousts17-Oct-02 16:27
Wjousts17-Oct-02 16:27 
GeneralRe: How can I detect when a context menu is displayed Pin
Darryl Borden18-Oct-02 5:11
Darryl Borden18-Oct-02 5:11 
GeneralToolTip for TreeView nodes Pin
kavehdr17-Oct-02 10:40
kavehdr17-Oct-02 10:40 
GeneralRe: ToolTip for TreeView nodes Pin
Russell Morris17-Oct-02 12:23
Russell Morris17-Oct-02 12:23 
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 

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.