Click here to Skip to main content
15,917,174 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataGrid "logical" row from HitTest Pin
ABean20-May-04 20:17
ABean20-May-04 20:17 
GeneralRe: DataGrid "logical" row from HitTest Pin
Heath Stewart21-May-04 3:24
protectorHeath Stewart21-May-04 3:24 
GeneralDLL Pin
Snowjim20-May-04 11:11
Snowjim20-May-04 11:11 
GeneralRe: DLL Pin
Heath Stewart20-May-04 11:25
protectorHeath Stewart20-May-04 11:25 
GeneralRe: DLL Pin
Snowjim20-May-04 11:28
Snowjim20-May-04 11:28 
GeneralRe: DLL Pin
Heath Stewart20-May-04 11:29
protectorHeath Stewart20-May-04 11:29 
GeneralRe: DLL Pin
Snowjim20-May-04 12:39
Snowjim20-May-04 12:39 
GeneralRe: DLL Pin
Heath Stewart21-May-04 3:14
protectorHeath Stewart21-May-04 3:14 
You should re-read it. There's two ways of doing this. One is a publisher policy that gets installed into the Global Assembly Cache (GAC; which I assume you meant by "global Assembly", of which there is no such thing). This is a specially named assembly (among other things) that redirects the assembly binding.

The other is a section in your application's .config file, which is what we used. They both accomplish the same thing. AssemblyInfo.cs is not a config file, either. It simply defines assembly-level attributes (which could go anywhere).

The .config file has the same name as your executable, only with .config appended. So, if your application is MyApp.exe, then your .config file is MyApp.exe.config. The bottom of that article discusses all of this, and even shows you an example of what such entries look like.

So if you upgrade your Transfer.dll from version 1.0.0.0 to version 1.1.0.0, your .config file would look something like this:
<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Transfer"
          publicKeyToken="0123456789abcdef"
          culture="neutral" />
        <bindingRedirect oldVersion="1.0.0.0"
          newVersion="1.1.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>
This would go into the .config file for your client and server. Nothing needs installed into the GAC.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: DLL Pin
Snowjim21-May-04 4:35
Snowjim21-May-04 4:35 
GeneralRe: DLL Pin
Heath Stewart21-May-04 4:38
protectorHeath Stewart21-May-04 4:38 
GeneralRe: DLL Pin
Snowjim21-May-04 4:42
Snowjim21-May-04 4:42 
GeneralRe: DLL Pin
Heath Stewart21-May-04 4:44
protectorHeath Stewart21-May-04 4:44 
GeneralRe: DLL Pin
Snowjim21-May-04 5:07
Snowjim21-May-04 5:07 
GeneralRe: DLL Pin
Heath Stewart21-May-04 5:11
protectorHeath Stewart21-May-04 5:11 
GeneralRe: DLL Pin
Snowjim22-May-04 0:44
Snowjim22-May-04 0:44 
GeneralRe: DLL Pin
Heath Stewart22-May-04 2:37
protectorHeath Stewart22-May-04 2:37 
GeneralRe: DLL Pin
Snowjim22-May-04 8:15
Snowjim22-May-04 8:15 
GeneralRe: DLL Pin
Heath Stewart22-May-04 8:53
protectorHeath Stewart22-May-04 8:53 
GeneralRe: DLL Pin
Snowjim22-May-04 9:36
Snowjim22-May-04 9:36 
QuestionHow to create Installer that user can checked item he wannt to install (I have more 59 item whether user will install. Pin
god4k20-May-04 9:55
god4k20-May-04 9:55 
AnswerRe: How to create Installer that user can checked item he wannt to install (I have more 59 item whether user will install. Pin
Heath Stewart20-May-04 10:09
protectorHeath Stewart20-May-04 10:09 
GeneralRe: How to create Installer that user can checked item he wannt to install (I have more 59 item whether user will install. Pin
god4k20-May-04 23:52
god4k20-May-04 23:52 
GeneralRe: How to create Installer that user can checked item he wannt to install (I have more 59 item whether user will install. Pin
Heath Stewart21-May-04 3:33
protectorHeath Stewart21-May-04 3:33 
GeneralListBox with ComboBox embedded Pin
yipan20-May-04 9:44
yipan20-May-04 9:44 
GeneralRe: ListBox with ComboBox embedded Pin
Heath Stewart20-May-04 10:05
protectorHeath Stewart20-May-04 10:05 

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.